Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10225

Files with ".." In Name Throw 400 Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Engine 2.7.4
    • Engine 2.7.6
    • Engine
    • None

    Description

      SLING-9741 and the associated PR introduced a regression where the Sling Engine will return a 400 error on requests based on the presence of ".." in the URL when not preceded by a slash.

      This is an issue as file names may contain multiple periods and it is not obvious that it would cause an issue to upload a file with two periods in the name.

      Reproduction steps:

      • Update a Sling instance to use Engine 2.7.4
      • Upload a file containing .. in the path
      • Attempt to get the file or any path with the file as a suffix
      • Note this returns a 400 error

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              dklco Dan Klco
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m