URL Encoding [message #648328] |
Wed, 12 January 2011 08:24  |
Eclipse User |
|
|
|
Hi,
I have a login dialog which validates the user trying to login to application. External interfaces also try to communicate with this application . An external application will launch browser with RAP application URL with parameter's of credentials.
Surprising thing is the parameter values are decoded but not correctly. For eg '=' must have beeen decoded to '%3D' but it decoded url has '='.
Original value sent from external interface is :
qYZRPb+97K4TVZBFytqJZOuxHwwbLNSvQpJoeqDCWuVuk76eWHE/Hp31Iq1k vvosKDqEAv6AKFZFgEjaqNpjnI0ZRcK8ko5VqcMbt6hQQggsaiGQSc1k2fIG uXEg7GatehlCc2wNvxaxdNFIZWtQnU69dzUT6rwRiJ8eHXY+imE=
Inside login service we get:
qYZRPb 97K4TVZBFytqJZOuxHwwbLNSvQpJoeqDCWuVuk76eWHE/Hp31Iq1kvvosKDq EAv6AKFZFgEjaqNpjnI0ZRcK8ko5VqcMbt6hQQggsaiGQSc1k2fIGuXEg7Ga tehlCc2wNvxaxdNFIZWtQnU69dzUT6rwRiJ8eHXY imE=
'+' in original value is decoded to ' ' ( space ) but '=' is not.
Because of this authentication fails. In debug mode, I changed the value to original (replaced space with +) , then it worked fine.
Any ideas ?
Regards
Ravi
|
|
|
|
Powered by
FUDForum. Page generated in 0.06751 seconds