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.

CommentFileSizeAuthor
#5 proxy.php_.patch1 KBjpulles

Comments

spydmobile’s picture

More info:

If the map code does not refernce a map context, it does not cause the problem. a map such as this:

[map baselayers="google-physical|opacity=0.4|MIN_ZOOM_LEVEL=4,google|opacity=0.8|MIN_ZOOM_LEVEL=4,yahoo" center="82,23" width="400" height="400" restrictedextent="65,5,100,40"/]

Is not a problem

spydmobile’s picture

even more info.

If I then add an rss feed to this perfectly fine map,

[map baselayers="google-physical|opacity=0.4|MIN_ZOOM_LEVEL=4,google|opacity=0.8|MIN_ZOOM_LEVEL=4,yahoo" center="82,23" width="400" height="400" restrictedextent="65,5,100,40"/]

like so:

[map baselayers="google-physical|opacity=0.4|MIN_ZOOM_LEVEL=4,google|opacity=0.8|MIN_ZOOM_LEVEL=4,yahoo" center="82,23" width="400" height="400" restrictedextent="65,5,100,40"
layers="a" a="georss|http://sparcs-vm/sparcs/weather/stationlist/georss|Weather Stations|http://sparcs-vm/sparcs/misc/16x16_blocks.png"/]

it logs me out on viewing it.

If I use this code, it works just as well, but does not log me out.

[map baselayers="google-physical|opacity=0.4|MIN_ZOOM_LEVEL=4,google|opacity=0.8|MIN_ZOOM_LEVEL=4,yahoo" center="82,23" width="400" height="400" restrictedextent="65,5,100,40"
layers="a" a="georss|weather/stationlist/georss|Weather Stations|http://sparcs-vm/sparcs/misc/16x16_blocks.png"/]

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

jpulles’s picture

Assigned: Unassigned » jpulles

I 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.

jpulles’s picture

The 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.

jpulles’s picture

Status: Active » Needs review
StatusFileSize
new1 KB

Please try this patch for the proxy script. It forwards the drupal session cookies to the requested page.

jpulles’s picture

Status: Needs review » Fixed

Patch submitted to cvs.

spydmobile’s picture

Code: 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.