Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache Sling Testing Clients 2.0.10
-
None
-
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)