Ticket #4979 (closed defect: worksforme)
Issue w/ cookies and authentication
| Reported by: | eblot | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.10.3.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I'm not sure how to describe this issue.
Error message
Missing or invalid form token. Do you have cookies enabled?
This does not seem to be a duplicate of either #4084 nor #4560, although it is likely related to the cookie management.
Step to reproduce
- As the anonymous user, edit some ticket (or some wiki page) without submitting the changes
- Log in on the system. Trac updates the page, and the web browser keeps the edited content - the ticket is not reset to the unaltered, original content.
- Attempt to commit the changes (with or without other modifications)
Expected behaviour
When the user logs in, the ticket edited fields should either be
- reverted to the original content (unmodified changes would be discarded), or
- preserved and committed without any error
The main trouble is that if the user as 'anonymous' logs in, then starts editing the ticket, he cannot submit any of the changes once he authenticates on the system. In other word, all the editing work is lost if he forgets to log in before starting editing the ticket.
Configuration
It happens at least with Omniweb (the latest version as well as the previous ones) and Trac 0.10.x; for example, on t.e.o.


