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

Fix navigation to document whose URL contains newline

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF30, 11.2, 2021.0
    • Component/s: Web UI
    • Release Notes Summary:
      Ability to navigate to document when URL contains newline
    • Backlog priority:
      800
    • Team:
      UI
    • Sprint:
      UI - 2020-07 2

      Description

      When a document is created with a document name containing a newline, the Web UI is unable to navigate to the document. E.g. http://localhost:8080/nuxeo/ui/#!/browse/default-domain/workspaces/ws%0A.

      How to reproduce:

      • create a workspace with the following command:
        node - <<EOF
        var Nuxeo = require('nuxeo');
        var nuxeo = new Nuxeo({
          auth: {
            method: 'basic',
            username: 'Administrator',
            password: 'Administrator'
          }
        });
        var newDoc = {
            'entity-type': 'document',
            type: 'Workspace',
            name: 'ws\n',
            properties: {"dc:title":"ws"}
        };
        nuxeo.repository().create("/default-domain/workspaces", newDoc);
        EOF
        
      • in the Web UI, navigate to /default-domain/workspaces/ws%0A

      Expected result: the Web UI renders the document.
      Actual result: the Web UI renders an error page with error 404 NOT FOUND.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.