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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021.21
    • Fix Version/s: 2021.x
    • Component/s: Rest API

      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

          Activity

            People

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

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m