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

Attachments with plus sign in file name cause an NPE when loaded

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.1.1
    • 1.1
    • None

      If you click on the text+text.txt attachment on

      http://confluence.atlassian.com/display/TEST/Broken+Attachment+support+test

      you get "page not found" error instead of downloading the attachment. On our local Confluence instance, we get the confluence error page without any stack trace. Catalina.out prints the following when the attachment is clicked:

      Jun 10, 2004 4:41:00 PM org.springframework.orm.hibernate.support.OpenSessionInViewFilter lookupSessionFactory
      INFO: Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter
      Jun 10, 2004 4:41:00 PM org.springframework.transaction.support.AbstractPlatformTransactionManager commit
      INFO: Initiating transaction commit
      Jun 10, 2004 4:41:00 PM org.springframework.transaction.support.AbstractPlatformTransactionManager commit
      INFO: Initiating transaction commit
      Jun 10, 2004 4:41:00 PM org.springframework.transaction.interceptor.TransactionInterceptor onThrowable
      INFO: Invoking rollback for transaction on method 'getAttachmentData' in class [com.atlassian.confluence.pages.AttachmentManager] due to throwable [java.lang.NullPointerException]
      Jun 10, 2004 4:41:00 PM org.springframework.transaction.support.AbstractPlatformTransactionManager rollback
      INFO: Initiating transaction rollback

              Unassigned Unassigned
              ec22805fc0e2 Sulka Haro
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: