Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-206

Escape forward slashes in vocabulary entry when deleting or updating an entry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: Browser, Node.js
    • Backlog priority:
      800
    • Sprint:
      UI - 2022-06, nxplatform #66, nxplatform #81

      Description

      Steps to reproduce

      1. Go to Administration > Vocabularies
      2. Choose "nature"
      3. Add an entry with id = https://adress.com/ and label = blabla
      4. Observe the entry is correctly added
      5. Click on the Delete icon for the new entry
      6. Observe an error is displayed
      7. Click on the Edit icon for the new entry, change the label and submit the form
      8. Observe an error is displayed "Failed to fetch"

      The error on Delete could be reproduced with a curl command

      curl -X DELETE http://localhost:8080/nuxeo/api/v1/directory/nature/https%3A/adress.com/?pageSize=0 

       

      The problem seems to be related the forward slash in the entry id which is not encoded.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 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 - 20 minutes
                  20m