Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Getting Bad Request: Missing or Invalid Token (Do you have any cookies enabled?) Error

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


sneha.shete28 at gmail

Oct 15, 2009, 2:04 AM

Post #1 of 1 (243 views)
Permalink
Getting Bad Request: Missing or Invalid Token (Do you have any cookies enabled?) Error

Hi,

I am getting Bad Request: Missing or Invalid Token (Do you have any
cookies enabled?) Error when tried to login from different browsers
with different credentials simultaneously. But still it is not
consistent. I am using Trac 0.11.2.1 on Windows machine. Other
specifications - Apache 2.2 with Python 2.5.
Also for login I am using LDAP authentication.

I tried to debug the code (main.py and chrome.py) and found that
sometimes the __FORM_TOKEN value is not getting updated when someone
else tries to login at the same time someone is actively using the
Trac.

Steps used to generate this error -
1. Login to Trac from machine 1 with user1 creadentials (it logs in
correctly without giving this error)
2. Login to Trac from some other machine - machine2 with same/other
user - user2

But it is not consistent.

Debug output:
## After step 1
__FORM_TOKEN : 76e8876637eec463ba98779e
req.form_token: 76e8876637eec463ba98779e

## After step2
__FORM_TOKEN : 76e8876637eec463ba98779e
req.form_token: c47df14e2efac9888fd7ffb7

And as the __Form_TOKEN and req.form_token are not matching, the error
is displayed. But I am not getting why the __FORM_TOKEN value is not
getting updated for a new instance.Is this something related to
threads used in Python code?
Can anyone please help me to resolve this issue?

Thanks in advance

-Sneha
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.