Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behaviour change between alpha and RC - string param passed to serverside isn't being encoded\escaped #1220

Closed
relentlesslyLearning opened this issue Jan 2, 2013 · 4 comments

Comments

@relentlesslyLearning
Copy link

This is almost certainly deliberate behaviour but I'd just like to know how to work around this:

I've got an encrypted string being passed as a param when calling a hub method from my js.

When using the alpha this worked just fine. With the RC the string isn't being escaped (so plus signs appear to be converted to spaces) which obviously causes issues with the decryption.

Here's an example of the encrypted string:

tfL2tUFP5tbNxz0bBJFJHcIJOZV3zcj2ebyvIs7n/4blHrLCPRWbQ16d5h1GKuC0mOEhgiWZoi44HN9JCuB4HFudHjey1jLphaKDW0kl+wmR9tsutKhxthejRb1nhTKAcXGHHfI4cgXVOLbnUuihAOwK3q00vK2heNDWJ8DEWHQ=JkeukSmux1fdF5RdknlLr3WIjufiv1L2BSaWGkQaFajcg1MUKSaBfy43xeVxH5puR6DAOTcY6QmeD6N0x8KxeT5D3Gfq/WvMxukhEuJ4DWRleeU1sGYyaX6IsWfR8bm99+5YaB6Iz0Q/XdhA+QhLiIgo7gePAGPXhUzcfEDmwBA=

Here's what ends up in the server-side hub method:

tfL2tUFP5tbNxz0bBJFJHcIJOZV3zcj2ebyvIs7n/4blHrLCPRWbQ16d5h1GKuC0mOEhgiWZoi44HN9JCuB4HFudHjey1jLphaKDW0kl wmR9tsutKhxthejRb1nhTKAcXGHHfI4cgXVOLbnUuihAOwK3q00vK2heNDWJ8DEWHQ=JkeukSmux1fdF5RdknlLr3WIjufiv1L2BSaWGkQaFajcg1MUKSaBfy43xeVxH5puR6DAOTcY6QmeD6N0x8KxeT5D3Gfq/WvMxukhEuJ4DWRleeU1sGYyaX6IsWfR8bm99 5YaB6Iz0Q/XdhA QhLiIgo7gePAGPXhUzcfEDmwBA=

Assuming this behaviour is deliberate then how would I work around this? If it's not it could be related to issue 94 which is now closed.

@davidfowl
Copy link
Member

It's a bug in the RC that's been fixed #1194. It'll be in the next release.

@relentlesslyLearning
Copy link
Author

Oh that's great, like someone else said, very efficient!

Sorry missed that issue when I looked for it..

I guess I'm going to have to go back to the alpha version for the demo tomorrow. Doubt you'll release this before then! Do you have a schedule for the next release?

Cheers

@davidfowl
Copy link
Member

~2 weeks

@relentlesslyLearning
Copy link
Author

Oooh that's quick. Good to know cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants