Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29452

Cannot preview a file in a ZIP when filename contains non-ASCII characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021
    • Fix Version/s: 2021.x, 2023.x
    • Component/s: Preview
    • Backlog priority:
      700
    • Sprint:
      nxplatform #52
    • Story Points:
      5

      Description

      A binary in a ZIP file whose filename contains non-ASCII chars (e.g. "é") returns HTTP 404

      Take a 10.10-HF-ed release

      • Create a ZIP file containing a PDF with a name such as "Plan Salles Réunion - Rue Damrémont.pdf"
      • Create a File document with the ZIP as file:content
      • Preview the ZIP file: it lists the files in the ZIP as links
      • Click on the link "Plan Salles Re\u0301union - Rue Damre\u0301mont.pdf" : it returns
        {"entity-type":"exception","status":404,"message":"com.sun.jersey.api.NotFoundException: null for uri: http://localhost:8080/nuxeo/site/api/v1/repo/default/id/2553f8da-4632-4f63-a800-0a115f1645c6/@preview/Plan%20Salles%20Re/u0301union%20-%20Rue%20Damre/u0301mont.pdf"}
        

      Expected result in 10.10: PDF with filename containing non-ASCII characters in the ZIP file displayed as PDF file

      In nightly.nuxeo.com, the ZIP preview is currently failing in attempting to display the ZIP as a PDF, which is also wrong

      Expected result on nightly: Preview of the ZIP listing the content of the ZIP and then PDF displayed as PDF, even if filename of PDF contains non-ASCII characters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pabgrall Patrick Abgrall
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: