Source

trac-ticketlinks / trac / web / tests / session.py

Author Commit Message Labels Comments Date
rblank
0.12.3dev: Fixed purging of anonymous sessions to actually purge session attributes as well. Closes #10170.
Branches
0.12-stable
cboos
0.12.2dev: fix comment in test_update_session (r10474)
Branches
0.12-stable
cboos
0.12.2dev: in session handling, split purge transaction in two (#9705). The previous change was probably not enough, as MySQL uses locks at the row level, not at table level. Suppose that a purge transaction A first gets hold on a large number of session_attribute rows for deleting them, then tries to do the same for a large number of rows in the session session. At the same time, another transaction B could well have already locked one of these session rows, and the…
Branches
0.12-stable
rblank
0.12.2dev: Fixed test case failures on PostgreSQL introduced in [10248], due to trying to insert `bool` data into the database.
Branches
0.12-stable
rblank
0.12.2dev: Correctly handle changing the current anonymous session, and avoid carrying over session variables from the previous session. Part of #9658.
Branches
0.12-stable
rblank
0.12.2dev: Improved the session admin commands. * Added "last visit" information to `session list`. * Consistently allow operating on unauthenticated and authenticated sessions. * Removed the possibility to delete all sessions (including authenticated ones), as this is just too dangerous. * Simplified the SQL queries. Closes #9658.
Branches
0.12-stable
rblank
0.12.2dev: Fixed an issue with the session code where restoring an anonymous session with a name of an authenticated session, and setting an attribute, would remove all attributes of the authenticated session. Part of #9658.
Branches
0.12-stable
jhampton
Support for session management in `trac-admin`. See #1347
Branches
trunk
rblank
db: Converted all timestamp columns for resource tables from seconds to microseconds. * Ticket comments can now be added with a shorter interval than one second. * Conversions of datetime objects from / to microsecond timestamps should be done exclusively throught the new `from_utimestamp()` and `to_utimestamp()` functions. '''This changeset requires a database upgrade.''' Closes #6466.
Branches
trunk
rblank
0.12dev: Autumn cleaning using pylint: * Removed unused imports. * Removed unused locals. * Fixed whitespace issues (indentation, spacing, coding conventions). * Removed semicolons at the end of lines (some people around here have been doing too much C ;-). Closes #7518.
Branches
trunk
cboos
0.12dev: merged [8189:8193/sandbox/rework-testing], alternate db backend for unit-tests and Makefile improvements.
Branches
trunk
mgood
add `DetachedSession` for fetching sessions outside the current request
Branches
trunk
cboos
Move some of the trac.util functions in dedicated modules: * trac/util/text.py for the unicode and text formatting utilities * trac/util/datefmt.py for the date formatting and parsing utilities * reorganized a bit the remaining functions in __init__.py 1. algorithmic functions 2. os/sys utilities 3. crypto utilities * adapted all the `import` statements for the above changes * fixed a few remaining !TracError import from `trac.util` (shou…
Branches
trunk
cboos
An authenticated session couldn't be created if there were no corresponding anonymous session. Now the 4 possible situations (auth session already there or not, anonymous session already there or not) are checked for, and correctly handled. Closes bug #3154.
Branches
trunk
jonas
Switching to a more normalized session table schema for better performance.
Branches
trunk
cmlenz
* Under [wiki:TracModPython mod_python], you couldn't have multiple headers with the same name (e.g. `Set-Cookie`), which was the cause for #2843. That is now fixed by using `req.headers_out.add()` instead of dict-style assignment. * Also under mod_python, when using a non-multithreaded MPM, the Trac environment wasn't being reused. * Minor cleanup of session code.
Branches
trunk
cmlenz
Merged WSGI branch into trunk.
Branches
trunk
cmlenz
* Move some stuff from {{{trac.web.main}}} into {{{trac.web.api}}}, such as the interfaces and the {{{Request}}} base class. * The authentication mechanism should now be replacable. Closes #1855. * Moved the quoting of cookie values from {{{trac.util}}} into the {{{Request}}} class.
Branches
trunk
cmlenz
Fix some more PySQLite 2 issues (search still doesn't work though). Attention plugin devs: this changes the {{{to_sql}}} method to yield individual statements. If you're using that method to create custom database tables, you'll need to adapt your code.
Branches
trunk
cmlenz
Another database schema change, this time to make the session table compatible with PostgreSQL. As far as I can tell, the PostgreSQL backend is now fully functional. Please test away :-)
Branches
trunk
cmlenz
TracPluggableModules - Merged from [source:branches/cmlenz-dev/rearch rearch branch]
Branches
trunk
cmlenz
Fix saving of changes to authenticated sessions.
Branches
trunk
cmlenz
Refactoring: Moved {{{Href}}} class to {{{trac.web.href}}}, and made it completely generic.
Branches
trunk
cmlenz
New session policy ('''environment upgrade required'''): * Authenticated users don't get a cookie-based session, rather their settings are stored under the username. This means that authenticated users always have the same settings, independent of the computer/browser they use, and without needing to remember and load a session key. * Settings for anonymous users work like before. These changes are in preparation for supporting changes like an {{{alwa…
Branches
trunk
cmlenz
* Fix session expiry so that sessions that don't get modified for a long time don't expire as easily. * Sessions that no longer have any data now get deleted from the database. * Added comprehensive unit tests for the session code.
Branches
trunk