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

encodeURL and encodeRedirectURL return null #949

Closed
papegaaij opened this issue Mar 8, 2013 · 7 comments
Closed

encodeURL and encodeRedirectURL return null #949

papegaaij opened this issue Mar 8, 2013 · 7 comments
Labels

Comments

@papegaaij
Copy link

AtmosphereResponse uses a Proxy that always returns null for some methods, like encodeURL and encodeRedirectURL. This causes major problems in rendering Wicket components (https://issues.apache.org/jira/browse/WICKET-5084). These two methods are essential for Wicket to work and I think Atmosphere should implement them correctly.

@jfarcand
Copy link
Member

jfarcand commented Mar 8, 2013

OK sound a like a regression since 1.0.10 right? Was it working before? It happens with WebSocket only, right?

@papegaaij
Copy link
Author

Yes. I can confirm it worked correctly in 1.0.9 and it does not occur when using streaming.

@jfarcand
Copy link
Member

jfarcand commented Mar 8, 2013

OK, will re-add the following (which was doing nothing BTW. I will evaluate how I can implement it properly for websocket. When do you need an official release?

@papegaaij
Copy link
Author

I can work around it quite easily in Wicket (using the same dummy implementation) for now, so no need to rush on your part.

@martin-g
Copy link

martin-g commented Mar 8, 2013

Reverting only encodeURL(String url) and encodeRedirectURL(String url) should be enough.

@jfarcand
Copy link
Member

Working on it, will release 1.0.13 soon with the fix.

jfarcand added a commit that referenced this issue Mar 18, 2013
@jfarcand
Copy link
Member

OK fixed. I've added a new factory called ServletProxyFactory that can be used to customize all the Proxy in Atmosphere. You can do it by doing:

  ServletProxyFactory.getDefault().addMethodName(String, MethodHandler);

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

No branches or pull requests

3 participants