Editing a file with non Latin characters in the name using Microsoft excel leads to errors

XMLWordPrintable

    • 7
    • Severity 3 - Minor
    • 6

      Issue Summary

      When editing a file with non-English characters leads to errors

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Install confluence 8.9.1
      2. Save a file with any name in non-English language (eg. ИЗ_Активности.xls)
      3. Go to Administration   > General Configuration > Office Connector
      1. Enable below options
      2. Create a Page
      3. Upload the mentioned file
      4. Add the Office Excel macro and select the same file
      5. Save the Page
      6. Now click on the Edit Document button

      Expected Results

      Excel files open

      Actual Results

      Below error is observed

      The below exception is thrown in the atlassian-confluence.log file:

      2024-07-04 13:34:21,221 ERROR [http-nio-8090-exec-61 url: /confluence/500page.jsp] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception a79fcbd5-208e-4e30-a915-ae195e346fa4: Cannot invoke \"com.atlassian.confluence.pages.Attachment.getFileName()\" because \"this.attachment\" is null
       -- traceId: 247130c483edccaf
      java.lang.NullPointerException: Cannot invoke "com.atlassian.confluence.pages.Attachment.getFileName()" because "this.attachment" is null
              at com.benryan.servlet.webdav.AttachmentResource.checkEditPermission(AttachmentResource.java:133)
              at com.benryan.servlet.webdav.ResourceBuilder.buildAttachmentResource(ResourceBuilder.java:123)
      

      Workaround

      Rename the file to have English characters and try editing the files

            Assignee:
            Maxim Leizerovich
            Reporter:
            Shivangi Nayak
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: