You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The Basic Authentication mechanism is not working as expected, and this behaviour is observed in SI-4.X versions when tested locally.
For example, when we use the http-call sink method with Basic Auth enabled as shown below, the Base64 encoded username and password is getting malformed.
When we checked the wirelogs from the backend service, we observed that the Authorization header value being sent to the backend was incorrect, "Authorization: Basic UnpooledHeapByteBuf(ridx: 0, widx: 11, cap: 11/11)[\r][\n]"
Seems like there is an issue with the Base64 encoding of the Authorization header at [1]. The encoded header is in bytes and it needs to be converted to string through byte methods which causes the incorrect value to get assigned as the Authorization header. Since the encoded username and password value are invalid, the http-call sink method fails.
Description:
The Basic Authentication mechanism is not working as expected, and this behaviour is observed in
SI-4.X
versions when tested locally.For example, when we use the
http-call
sink method with Basic Auth enabled as shown below, the Base64 encoded username and password is getting malformed.When we checked the wirelogs from the backend service, we observed that the Authorization header value being sent to the backend was incorrect,
"Authorization: Basic UnpooledHeapByteBuf(ridx: 0, widx: 11, cap: 11/11)[\r][\n]"
Seems like there is an issue with the Base64 encoding of the Authorization header at [1]. The encoded header is in bytes and it needs to be converted to string through byte methods which causes the incorrect value to get assigned as the Authorization header. Since the encoded username and password value are invalid, the
http-call
sink method fails.[1]
siddhi-io-http/component/src/main/java/io/siddhi/extension/io/http/sink/HttpSink.java
Line 613 in de4e256
Steps to reproduce:
http-call
sink method with Basic Auth.Affected Product Version:
The text was updated successfully, but these errors were encountered: