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

OsgiConsoleClient breaks if response Location header is an absolute URL

    XMLWordPrintableJSON

Details

    • Patch

    Description

      OsgiConsoleClient.editConfiguration() breaks if the HTTP response has an absolute URL in the Location header.

       

      The extra characters break the logic of the return statement:

      return locationHeader[0].getValue().substring(URL_CONFIGURATION.length() + 1);
      

      This can be easily accounted for:

                  int urlPathStart = locationHeader[0].getValue().indexOf(URL_CONFIGURATION);
                  return locationHeader[0].getValue().substring(urlPathStart + URL_CONFIGURATION.length() + 1)
      

      Attachments

        Activity

          People

            angela Angela Schreiber
            gatopardo Jose Antonio Insua
            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 - 0h
                0h
                Logged:
                Time Spent - 40m
                40m