Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-9813

Disable attachments migration to Filesystem in Cluster

    XMLWordPrintable

Details

    Description

      Attachments cannot be stored on the filesystem in a Clustered instance.
      But in "Attachment Storage", the "Locally in Confluence Home Directory" option is still available.
      Hence, users attempting to migrate attachments from the DB or WebDav to the filesystem, experience the following error:

      [10/22/07 18:10:29:065 EDT]   8e2e94 SystemErr     R java.lang.NullPointerException
      [10/22/07 18:10:29:066 EDT]   8e2e94 SystemErr     R 	at com.atlassian.confluence.pages.DelegatorAttachmentManager.getMigrator(DelegatorAttachmentManager.java:117)
      [10/22/07 18:10:29:066 EDT]   8e2e94 SystemErr     R 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [10/22/07 18:10:29:066 EDT]   8e2e94 SystemErr     R 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [10/22/07 18:10:29:066 EDT]   8e2e94 SystemErr     R 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [10/22/07 18:10:29:066 EDT]   8e2e94 SystemErr     R 	at java.lang.reflect.Method.invoke(Method.java:324)
      [10/22/07 18:10:29:066 EDT]   8e2e94 SystemErr     R 	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
      [10/22/07 18:10:29:067 EDT]   8e2e94 SystemErr     R 	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
      [10/22/07 18:10:29:067 EDT]   8e2e94 SystemErr     R 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      [10/22/07 18:10:29:067 EDT]   8e2e94 SystemErr     R 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      [10/22/07 18:10:29:067 EDT]   8e2e94 SystemErr     R 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      [10/22/07 18:10:29:067 EDT]   8e2e94 SystemErr     R 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
      [10/22/07 18:10:29:067 EDT]   8e2e94 SystemErr     R 	at $Proxy8.getMigrator(Unknown Source)
      [10/22/07 18:10:29:067 EDT]   8e2e94 SystemErr     R 	at com.atlassian.confluence.util.longrunning.AttachmentMigrationLongRunningTask.runInternal(AttachmentMigrationLongRunningTask.java:59)
      [10/22/07 18:10:29:068 EDT]   8e2e94 SystemErr     R 	at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21)
      [10/22/07 18:10:29:068 EDT]   8e2e94 SystemErr     R 	at java.lang.Thread.run(Thread.java:534)
      

      Instead of an exception, a check should be in place, to either disable this migration option or to display a more friendly error message to the user, in case of Clustered instances.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ganand Gurleen Anand [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: