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

WebDav returns bad requests with brackets filename

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.2
    • Fix Version/s: 9.10-HF20, 10.3
    • Component/s: WebDAV

      Description

      1. install nuxeo
      2. create user toto
      3. login with toto
      4. go to the personal workspace
      5. import through drag and drop a test.txt file
      6. import through drag and drop a test[1].txt file
      7. now access the personal workspace through WebDAV url in a browser:
        http://127.0.0.1:8080/nuxeo/site/dav/toto
        
      8. observe the files are correctly listed
      9. click the test.txt link
      10. observe the file is correctly downloaded
      11. click the test[1].txt link
      12. observe it returns a Bad Request 400 error
      13. observe there is no error in the logs
      14. observe the link for test[1].txt is actually the following:
        http://127.0.0.1:8080/nuxeo/site/dav/toto/oaizue[1].txt
        
      15. now url encode the filename
      16. try the encoded url:
        http://127.0.0.1:8080/nuxeo/site/dav/toto/oaizue%5B1%5D.txt
        
      17. observe the file is downloaded correctly

        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 - 1 hour
                  1h