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

Escape document title on search tab pushState code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF22, 7.10
    • Component/s: Search Tab

      Description

      Steps to reproduce:

      • in workspaces, create a workspace with title "#W/o=rk^s+pa>ce'~Title"
      • click on search tab

      => js console shows error:

      SyntaxError: missing ) after argument list
      

      on code:

      <script type="text/javascript">
                  history.pushState(null, '#W/o=rk^s+pa>ce'~Title', 'https://nightly.nuxeo.com/nuxeo/nxsearch/default/default-domain/workspaces/%23W-o%3Drk%5Es%2Bpa%3Ece'~Title@search?contentViewName=default_search&state=H4sIAAAAAAAAAH2QTUvEMBCG%252F8uciyt77NX1IIgUKnsRCWN2ug2kSZ1MXGvpf3f64YII3jIzz%252FtMkhFsDEJBjo4uT9gRlHCiBrMXkwjZtlBAj2eqOH64E%252FF%252FTO2%252BdLa%252FLcBmZpVW2oRS6%252FdMPFTIGhbiBOXLawFr9hBt7pSFcgQZ%252Bll%252BWOX11c2xJxZHGhynSZOR5SE0cRMxJcUfcYh50YTtjpvZeJfEhbORNndvAZ1Xpzjxv6Dr8AefIcaQPAo9r7RwpgKcflmF0mp6N5%252FT7s%252BmuW32xkafu5CW8qZflKmNl7v6eP%252FZ6xugbNAnmqZvM1Dd9ocBAAA%253D&conversationId=0NXMAIN');
                </script>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

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