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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 1.1.1
    • Affects Version/s: 1.1
    • Component/s: 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

              Assignee:
              Unassigned
              Reporter:
              Sulka Haro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: