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

Fix file download link when filename holds URI reserved characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.5
    • Fix Version/s: 5.1.6, 5.2 M2
    • Component/s: None
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Code using DocumentModelFunctions#fileUrl (or even #complexFileUrl) should not encode the property name anymore and use / instead of []:
      nxfile/default/e5876d65-df1a-4d18-afc0-1b81fd557e84/files:files/0/file (instead of nxfile/default/e5876d65-df1a-4d18-afc0-1b81fd557e84/files:files[0]file, encoded as nxfile/default/e5876d65-df1a-4d18-afc0-1b81fd557e84/files:files%5B0%5Dfile)

      Show
      Code using DocumentModelFunctions#fileUrl (or even #complexFileUrl) should not encode the property name anymore and use / instead of []: nxfile/default/e5876d65-df1a-4d18-afc0-1b81fd557e84/files:files/0/file (instead of nxfile/default/e5876d65-df1a-4d18-afc0-1b81fd557e84/files:files [0] file, encoded as nxfile/default/e5876d65-df1a-4d18-afc0-1b81fd557e84/files:files%5B0%5Dfile)

      Description

      The [] and ? characters are not properly quoted for instance.

        Attachments

          Activity

            People

            • Assignee:
              atchertchian Anahide Tchertchian
              Reporter:
              atchertchian Anahide Tchertchian
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: