| This issue has been found while trying to use very long credentials in GeoServer WMS cascading Store settings. GeoTools Simple HTTP Client encodes the credentials using Base64, but the encoder adds newlines. Here's the line: https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/data/ows/SimpleHttpClient.java#L157 New lines are not allowed in Authorization header "Basic" encoding: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html http://www.ietf.org/rfc/rfc2617.txt I think it can be simply fixed passing the Base64.DONT_BREAK_LINES option to the encoder. As a side note, the encoder had some improvements during the years and it is now part of Java8. |