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

Fix adding a relation to a document with special characters in title

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.6-RC1, 5.6
    • Component/s: Relations, Seam / JSF UI
    • Environment:
      Ubuntu lucid

      Description

      It seems some generated javascript in relation listing is badly escaped.
      Some utf8 chars seem to cause a problem, but using a single quote in a document title always causes it.

      Steps to reproduce:
      1. create a Note titled "Ted's stuff"
      2. Open a second document
      3. go to relations tab
      4. Search for "Ted" and click the result's title

      Expected:
      the popup should close and fill appropriate form fields in the relation form

      Actual Result:
      Nothing visually happens. Under firefox, the following javascript error is raised
      missing ) after argument list
      updateParent('5817a599-ca8e-4523-8995-33ed8261bf2f', 'Ted/'s stuff');

      Also I guess JSF seems to be doing some double escaping javascript-breaking, escaping on those links which results in things such as this:
      <a href="javascript:updateParent('15c8b1cb-f3eb-455a-bca1-0dd5b45093fe',%20'R%E9gie%20des%20rentes');">RĂ©gie des rentes</a>
      those javascript expressions won't work until the urlescaped elements are removed or unescaped

      Reproduced under firefox and chrome

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: