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

java.lang.NullPointerException when try to attach file with non-Latin characters

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Step to Reproduce

      1. Go to a Confluence page.
      2. Click Tools >> Attachment
      3. Click Choose File button
      4. Attach file with the name 'İ ' ( use the İ.txt attached in this ticket)
      5. The following error will appear in the browser and the atlassian-confluence.log file.
        java.lang.NullPointerException
        at com.atlassian.confluence.pages.actions.beans.AttachmentStorer.attachFiles(AttachmentStorer.java:64)
        Stack Trace:[hide]
        
        java.lang.NullPointerException
        at com.atlassian.confluence.pages.actions.beans.AttachmentStorer.attachFiles(AttachmentStorer.java:64)
        at com.atlassian.confluence.pages.actions.AbstractViewAttachmentsAction.execute(AbstractViewAttachmentsAction.java:104)
        at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
        at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
        at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
        at 
        

      Workaround

      Applicable for other non-latin languages except for İ Turkish character

      1. Ensure your database collation settings are able to handle international strings.
        Refer to this comment for a PostgreSQL fix
      2. Refer to this link for more information

        1. İ.txt
          0.0 kB
          Jing Hwa Cheok
        2. server.xml
          2 kB
          Jing Hwa Cheok
        3. server.xml
          2 kB
          Karel Hala
        4. NullPointerException.txt
          31 kB
          Stephan Eisvogel
        5. Antrieb-Übersetzung.png
          60 kB
          Stephan Eisvogel

            [CONFSERVER-31088] java.lang.NullPointerException when try to attach file with non-Latin characters

            Nobuyuki Mukai made changes -
            Link New: This issue relates to CONFSERVER-58657 [ CONFSERVER-58657 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897728 ] New: CONFSERVER Bug Workflow v4 [ 3005830 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789596 ] New: JAC Bug Workflow v3 [ 2897728 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2737815 ] New: JAC Bug Workflow v2 [ 2789596 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2386241 ] New: JAC Bug Workflow [ 2737815 ]
            George Lipatov made changes -
            Link New: This issue duplicates CONFSERVER-20722 [ CONFSERVER-20722 ]
            K. Yamamoto made changes -
            Link New: This issue relates to CONFSERVER-20722 [ CONFSERVER-20722 ]
            Minh Tran made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Awaiting Release [ 11372 ] New: Resolved [ 5 ]
            SET Analytics Bot made changes -
            UIS Original: 10 New: 14

              glipatov George Lipatov
              jcheok Jing Hwa Cheok (Inactive)
              Affected customers:
              65 This affects my team
              Watchers:
              68 Start watching this issue

                Created:
                Updated:
                Resolved: