huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Cookie handling FacebookWebappHelper when using the root context (internet explorer 6) #181

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. make a canvas iframe app
2. deploy it on the root context of your app server (I'm using tomcat 6.0.18)
3. use FacebookWebappHelper.newInstanceXml(httpReq, httpRes, _apiKey,
_secretKey);
4. cookies are not retrieved with internet explorer 6 because
request.getContextPath() is an empty String (works with firefox 3 and chrome)

What is the expected output? What do you see instead?
Normally the cookies should be retrieved by any subsequent request, but
this is not the case with internet explorer 6. If the context path is empty
the cookie path should be "/". (workaround -> don't deploy in the root context)

What version of the product are you using? On what operating system?
internet explorer 6 with apache tomcat 6.0.18.
facebook-java-api version 2.1.0.

offending line: cookie.setPath( request.getContextPath() ); (line 235 of
FacebookWebappHelper)

Original issue reported on code.google.com by gregory....@gmail.com on 16 Mar 2009 at 3:17

GoogleCodeExporter commented 8 years ago
Is this a known issue with Internet Explorer 6? If so, please post a link to it.

Original comment by david.j....@googlemail.com on 20 Mar 2009 at 9:23

GoogleCodeExporter commented 8 years ago

Original comment by david.j....@googlemail.com on 20 Mar 2009 at 9:24

GoogleCodeExporter commented 8 years ago
well, I don't know if it's a known issue, but this could easily be fixed by 
setting
the path as follows: cookie.setPath( request.getContextPath() + "/");

cheers

Original comment by gregory....@gmail.com on 20 Mar 2009 at 9:53

GoogleCodeExporter commented 8 years ago
Sure. I've added this to SVN and will push a snapshot version soon.

Original comment by david.j....@googlemail.com on 3 Apr 2009 at 3:23

GoogleCodeExporter commented 8 years ago
2.1.1 coming soon.

Original comment by david.j....@googlemail.com on 1 May 2009 at 7:06