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

Model name containing comma leads to error

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Template whose model name contains a comma is correctly rendered.
    • Backlog priority:
      500

      Description

      1. install Nuxeo
      2. install nuxeo-template-rendering addon
      3. start server
      4. login to Nuxeo as Administrator
      5. create a workspace testWks
      6. inside testWks create a model named test,test and attach it a docx file (see attached simple-nuxeo-tr.odt)
      7. create a Note document named myNote
      8. bind the test,test template to myNote
      9. head over to Associated Templates
      10. click Render
      11. observe everything works fine and the generated document is downloaded
      12. now click the Summary tab
      13. click the test,test link at the bottom-right part of the page in the Associated Templates zone. (scroll down if necessary). (see link.png)
      14. observe an error is returned

      Expected behavior: the generated file should be downloaded (as it is with the Render button)
      Note: reproduced on 9.10 and master.
      Pre-analysis: observing the generated url:

      http://localhost:8080/nuxeo/nxtemplate/default/default-domain/workspaces/testWks/myNote@test,test?tabIds=%3A&conversationId=0NXMAIN2
      

      the comma is not url encoded.
      Using the following url does indeed download the generated document successfully:

      http://localhost:8080/nuxeo/nxtemplate/default/default-domain/workspaces/testWks/myNote@test%2Ctest?tabIds=%3A&conversationId=0NXMAIN2
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d