Tech:Session got mixed up
From Wikitravel Shared
[edit] What happens
The strangest thing happened when I tried to view the Hyderabad page on en. I don't think I can replicate it now, but I am filing a bug report because it might be a potential security issue. Let me see if I can explain the sequence.
- At around 5:30 PM India time (12 Noon UTC) I wanted to view the Hyderabad page on en. Instead of showing me the actual page, what it showed me was the edit page of Get around/By taxi i.e. this page [1]. Please note that I had not clicked on any edit button. Which is more, it was prefilled with an edit summary "which idiot gave the hyderabad std code as 44,changed to 40 ~ Vamsee,Hyderabad"! I tried going to the article in many other ways in the next minute and all those ways brought me to the same edit page.
- Then I tried to save from that edit link and it did not let me, because of loss of session data.
- So I go to the recent changes and there I see that someone else has edited the exact same section of the Hyderabad page [2] with the same edit summary.
- I went back to the Hyderabad page and everything was normal again.
So what seems to have happened is that for that brief moment, Wikitravel went crazy and thought that I was the anonymous user who was editing it. Probably the anon user had previewed his/her change, so the system knew what the edit summary was.
— Ravikiran r 08:20, 28 June 2007 (EDT)
[edit] When it happens
[edit] What should happen
[edit] How to fix it
What I think happened is that the server cached the page in its "edit" action. One of the global variables I used to check for this disappeared in 1.10.0, and apparently the check I put in to replace it didn't work that well. So I've gotten a little more aggressive, and hopefully that will fix the situation. I'm also clearing from the cache all the files that were cached that way; they should be gone in about 10 minutes. --Evan 11:47, 28 June 2007 (EDT)
- Haven't seen anybody else complain since, so I'm assuming the fix worked. Jpatokal 07:11, 16 August 2007 (EDT)

