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

Better handling for invalid URIs when using SlingUri (special characters, spaces)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • API 2.23.0
    • API 2.23.4
    • API
    • None

    Description

      SlingUri should not "have an opinion" about when URIs should be encoded or not. It should be able to deal with invalid URIs in a best effort manner (e.g. URIs containing a space in the path are already invalid) and always try to not change the identity of the URI (means: UriBuilder.parse(inputStr,null).build().toString() should almost always be equal to the original inputStr). This also means if the SlingUri contains escape sequences (e.g. %20), it should keep them, if escape sequences are unescaped already this is also fine when using the builder (when using parse() this can lead to invalid URIs, best effort parsing shall be used for those cases).

      Attachments

        Issue Links

          Activity

            People

              henzlerg Georg Henzler
              henzlerg Georg Henzler
              Votes:
              0 Vote for this issue
              Watchers:
              1 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