Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-998

Fix the Path suggestion element when the current folder name contains a quote

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.11, 3.0.0
    • Component/s: Widgets
    • Release Notes Summary:
      The Path suggestion element handles when the current folder name contains a quote.
    • Backlog priority:
      750
    • Team:
      GANG
    • Sprint:
      nxGang Sprint 11.1.13

      Description

      It makes the request to retrieve the children fail because of an invalid query

      https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-path-suggestion/nuxeo-path-suggestion.html#L223

      Steps to reproduce:

      1. create a Workspace whose title is test's
      2. click on the + icon
      3. observe in the browser tools that a request has the 400 error status with this response
      {"entity-type":"exception","status":400,"message":"Failed to execute query: SELECT * FROM Document WHERE ecm:parentId = '6cd48ae4-b2d1-43a4-aa1f-ede989f8a0e3' AND ecm:name LIKE 'test's%' AND ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isVersion = 0 AND ecm:isTrashed = 0, Syntax error: Invalid token <s> at offset 107"}

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 hours
                  2h