Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-186

Fix saving search containing slash ('/') character

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.44, 3.0.3, 3.1.x
    • Component/s: UI
    • Release Notes Summary:
      The slash character is not allowed in the saved search name.
    • Backlog priority:
      600
    • Sprint:
      nxApps 2021 Cycle 2, nxApps 2021 Cycle 3

      Description

      Steps to reproduce:

      Scenario 1:

      1. Navigate to Search menu in the left panel
      2. Create Search by entering any text
      3. Now click on Save AS
      4. Enter the saved search name in the  “Save Search” modal using slash( 
        /) operator and click on Save

      The popup modal stays up and no error is displayed.  Checking the browser console shows the following error:

      Resource request failed: java.lang.IllegalArgumentException: Invalid name 'test10/new'. A DocumentModel's name cannot contain slash character. Use the parentPath to specificy the document's path.

       

      And the following is shown in the response:

      {"entity-type":"exception","status":400,"message":"java.lang.IllegalArgumentException: Invalid name 'test10/new'. A DocumentModel's name cannot contain slash character. Use the parentPath to specificy the document's path."}

       

      Expected Behavior:

      Either an error is shown saying that a '/' is not allowed in the saved search name or the search is successfully saved.

       

        Attachments

          Issue Links

            Activity

              People

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