Attempting to upload a global logo results in an error similar to this:

      java.lang.IllegalArgumentException: Content must not be null
      at org.springframework.util.Assert.notNull(Assert.java:112)
      at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.getLatestAttachment(CachingAttachmentDao.java:59)
      at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:41)
      at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:68)
      at sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy18.getAttachment(Unknown Source)
      
      Workaround

      Insert the Global Description manually into your database as suggested in the related issue CONF-13767 and then restart your Confluence server.

            [CONFSERVER-21439] Content must not be null error when uploading global logo

            ^ we got this notice today in Confluence 7.19.4

            Adam Johnson added a comment - ^ we got this notice today in Confluence 7.19.4

            We see this in Confluence 7.19.4

            Jakob F. Gormsen added a comment - We see this in  Confluence  7.19.4

            Reviewed changeset and verified upload action (debugger).

            Stefan Saasen (Inactive) added a comment - Reviewed changeset and verified upload action (debugger).

            Don Willis added a comment -

            Fixed by creating the global description when it doesn't exist and is required by the ConfigureGlobalLogoAction.

            Don Willis added a comment - Fixed by creating the global description when it doesn't exist and is required by the ConfigureGlobalLogoAction.

            Don Willis added a comment -

            It seems the problem here is that in some cases the GlobalDescription has not been created. I'm not sure whether this has been due to the setup failing or the upgrade task failing.

            I'm uploading a patch for this issue. It makes the configure logo action create the globaldescription if it's missing.

            The patch should work for 3.4.x and probably earlier (tested on 3.4.7).

            Unzip the zip file into confluence/WEB-INF

            Don Willis added a comment - It seems the problem here is that in some cases the GlobalDescription has not been created. I'm not sure whether this has been due to the setup failing or the upgrade task failing. I'm uploading a patch for this issue. It makes the configure logo action create the globaldescription if it's missing. The patch should work for 3.4.x and probably earlier (tested on 3.4.7). Unzip the zip file into confluence/WEB-INF

              don.willis@atlassian.com Don Willis
              mseager Michael S
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: