tickets: 8457
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8457 | 2008-08-20 20:25:49 | 2011-09-28 16:12:17 | 2022-03-06 03:42:19.640586 | Unreviewed | closed | Uncategorized | dev | fixed | typo in sessions file backend can cause NameError | In django/contrib/sessions/backends/file.py, SessionStore.save() refers to "errno.EEXIST" when it means "os.errno.EEXIST". If using the file session backend and set SESSION_FILE_PATH to an unwritable directory (or if there is any other error condition on creating a new session file), this causes a NameError to be raised instead of the correct OSError. It also prevents the correct handling of the (rare) case of a duplicate session ID being generated. Attached patch fixes the typo. | nobody | carljm | 0 | 1 | 0 | 0 | 0 | 0 |