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 of the Issue (and unexpected/desired result)
The Key/Value PUT update in the UI is sent with content-type "application/x-www-form-urlencoded;charset=UTF-8" , but does not encode the body with URL encoding, as per the definition of the content-type. It appears to, instead, treat these packets as content-type 'text/plain'.
In isolation, this does not affect Consul, since it neither encodes or decodes URI encoding nor expects such encoding. However, if Consul is placed behind a reverse proxy, e.g. Zuul, that must parse and reconstruct the message according to its Content-Type, in this case, "application/x-www-form-urlencoded", the packet cannot be appropriately passed on due to not adhering to the specification for the content type.
Reproduction steps
Access the HTTP UI of the Consul Server in a browser.
Access KEY/VALUE tab
Ensure packets are being captured in the packet capture tool of choice
Add a new Key Value. Ensure the value has a character that would be encoded under URI encoding, such as a newline
Packet content-type set to "application/x-www-form-urlencoded;charset=UTF-8"
No URL encoding of characters in the body of the PUT request.
Expected:
Either:
- Packet content-type set to "application/x-www-form-urlencoded"
- URL encoding of characters in the body of the PUT request.
Or:
- Packet content-type set to "text/plain;charset=UTF-8"
- Characters in the body of the PUT request are not encoded.
We are currently doing a rewrite of the web UI so this will be addressed then, though if this is a quick fix we can probably update the old UI in the meantime.
Description of the Issue (and unexpected/desired result)
The Key/Value PUT update in the UI is sent with content-type "application/x-www-form-urlencoded;charset=UTF-8" , but does not encode the body with URL encoding, as per the definition of the content-type. It appears to, instead, treat these packets as content-type 'text/plain'.
In isolation, this does not affect Consul, since it neither encodes or decodes URI encoding nor expects such encoding. However, if Consul is placed behind a reverse proxy, e.g. Zuul, that must parse and reconstruct the message according to its Content-Type, in this case, "application/x-www-form-urlencoded", the packet cannot be appropriately passed on due to not adhering to the specification for the content type.
Reproduction steps
Example:
"Hello
World"
Actual:
Expected:
Second options seems most preferable.
consul version
for both Client and ServerServer:
Consul v1.0.2
consul info
for ServerThe text was updated successfully, but these errors were encountered: