I finally nailed this issue down to mapping kit, every time I display a page node with a map code like
[map context="node/12/context" layers="a" a="georss|http://sparcs-vm/sparcs/weather/stationlist/georss|Weather Stations|http://sparcs-vm/sparcs/misc/16x16_blocks.png"/]
it ends the drupal session or logs the user out. the map display fine, but the next click is made as anonymous. This has been driving me nuts, because I could not tell what was doing it until I rebuilt the entire drupal site from scratch. it never happend once until I started using mapping kit. then I realized it was map related, I tested my contexts nodes, they did not do it. only a node with the map code in the body does this. Its also killing my application and making it unusable.
this occurs in firefox, IE, on windows and on linux.
John, what can I give you to help you debug this issue? The logs show what one expects, the authed user views the map, the next click is anonymous and is access denied.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | proxy.php_.patch | 1 KB | jpulles |
Comments
Comment #1
spydmobile commentedMore info:
If the map code does not refernce a map context, it does not cause the problem. a map such as this:
Is not a problem
Comment #2
spydmobile commentedeven more info.
If I then add an rss feed to this perfectly fine map,
like so:
it logs me out on viewing it.
If I use this code, it works just as well, but does not log me out.
Also I just confirmed, if a map contrext is used, but a full URL is not used in the code, it does not log you out.
In Summary, if you I use a full URL to the georss feed within the local drupal it logs me out.
F
Comment #3
jpulles commentedI was indeed able to reproduce it at http://aardbodem.nl/?q=node/34 by giving the rss feed a full url instead of the relative one.
It might be a problem in the proxy script (see /?q=admin/mappingkit/mapclient), but that needs to be investigated further.
Comment #4
jpulles commentedThe proxy script is only used for full url's. If it makes a call to a page that is made available by your drupal site, it does not use the same session, but instead starts a new anonymous one and effectively logs you out.
A workaround is to use relative url's where possible, and a solution would be to modify the proxy script to use the same drupal session for the requested url, but i didn't manage to do this sofar.
Comment #5
jpulles commentedPlease try this patch for the proxy script. It forwards the drupal session cookies to the requested page.
Comment #6
jpulles commentedPatch submitted to cvs.
Comment #7
spydmobile commentedCode: Reviewed - All ok!
Ok, that solved it as far as I can tell, I manually patched the proxy.php file and afterword created a map code with full url to the georss feed and viewed the map in IE and FF and no logout, thanks John that awesome ;-)
Franco