Path varibles with Special Characters

Hi guys,

I’m try send a post for a Webserver with path variables with User and Password. But
for some reason PostMan didn’t send password with Special Characters “#”.

The endpoint response with User or password is wrong.

Ex:
http://endpoint/eai_PTB/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&Username=XPTO&Password=XPTO#

I ran a test on Soupui with the same URL and ran normally.

This is a problem of Spring: it cuts off the ‘#’ as it thinks its part of the URL, like for page numbering, and does not pass it as part of the parameter to your endpoint.

You’ll see the same behaviour, when you try to pass an email address as a parameter, Spring will cut off the part after the last ‘.’.

Check out https://stackoverflow.com/questions/16332092/spring-mvc-pathvariable-with-dot-is-getting-truncated