Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » URL Encoding(URL Encoding)
URL Encoding [message #648328] Wed, 12 January 2011 13:24 Go to next message
Ravi Kumar S is currently offline Ravi Kumar SFriend
Messages: 12
Registered: July 2009
Junior Member
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
Re: URL Encoding [message #649051 is a reply to message #648328] Mon, 17 January 2011 12:29 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

sorry, I don't quite get which RAP API you use for passing/encoding
parameters, or to put it another way, in which part of RAP do you suspect
a problem?

BTW, you're passing credentials as URL parameters? This sounds dangerous.

Regards, Ralf

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Compilation demo projects (contact, photos) errors
Next Topic:context and request service lifecycle connundrum
Goto Forum:
  


Current Time: Thu Oct 28 08:47:01 GMT 2021

Powered by FUDForum. Page generated in 0.01988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top