Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/sessions
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25558 -- Fixed nondeterministic test failure on ↵Brian Gianforcaro2015-10-171-1/+1
| | | | | | | | Windows: test_clearsessions_command. The test session without an expiration date added in refs #22938 wasn't always deleted on Windows because get_expiry_age() returns zero and the file backend didn't consider that an expired session.
* Fixed #22938 -- Allowed clearsessions to remove ↵Aleksandra Tarkowska2015-10-031-3/+10
| | | | file-based sessions.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+3
|
* Fixed #22634 -- Made the database-backed session ↵Sergey Kolosov2015-08-276-66/+107
| | | | | | | | backends more extensible. Introduced an AbstractBaseSession model and hooks providing the option of overriding the model class used by the session store and the session store class used by the model.
* Fixed DoS possiblity in contrib.auth.views.logout()Tim Graham2015-08-181-1/+1
| | | | | | Thanks Florian Apolloner and Carl Meyer for review. This is a security fix.
* Fixed #19324 -- Avoided creating a session record when ↵Carl Meyer2015-07-084-8/+12
| | | | | | | | | loading the session. The session record is now only created if/when the session is modified. This prevents a potential DoS via creation of many empty session records. This is a security fix; disclosure to follow shortly.
* Fixed #24915 -- Added stricter session key validationDavid Bannon2015-06-071-1/+18
| | | | | | Changed _session_key attribute to a property and implemented basic validation in the setter. The session key must be 'truthy' and at least 8 characters long. Otherwise, the value is set to None.
* Fixed incorrect session.flush() in cached_db session ↵Tim Graham2015-05-201-1/+1
| | | | | | | | backend. This is a security fix; disclosure to follow shortly. Thanks Sam Cooke for the report and draft patch.
* Fixed #24799 -- Fixed session cookie deletion when using ↵Bo Lopker2015-05-151-1/+2
| | | | SESSION_COOKIE_DOMAIN
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-133-3/+3
|
* Updated translations from TransifexClaude Paroz2015-04-302-3/+4
| | | | | Updates for languages: Indonesian, Belarusian, Persian, and Dutch. Forward port of cb370f8510 from stable/1.8.x
* Fixed #24621 -- Fixed and documented SessionBase.pop's ↵Adam Zapletal2015-04-131-2/+2
| | | | | | | | second argument Changed SessionBase.pop's second argument to explicitly be default=None rather than *args since _session is always a dict. Thanks gabor for the report and Tim Graham for the review.
* Fetched updated contrib translations from TransifexClaude Paroz2015-04-01166-719/+222
| | | | Forward port of 5483c66f85 from stable/1.8.x
* Fixed #24468 -- Made signed cookies cache backend ↵Tim Graham2015-03-121-1/+3
| | | | resilient to unpickling exceptions.
* Moved contrib.sessions tests out of contrib.Tim Graham2015-02-111-634/+0
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-0612-32/+33
|
* Fixed #24223 -- Prevented a session test from leaking.Matt2015-01-291-2/+3
|
* Fixed #24153 -- Fixed cookie test compatibility with ↵Tim Graham2015-01-191-2/+3
| | | | Python 3.4.3+
* Updated en translation catalogsClaude Paroz2015-01-171-6/+6
| | | | Forward port of 666c12e52 from stable/1.8.x
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-12/+9
|
* Fixed #23822 -- Added support for serializing model ↵Markus Holtermann2014-12-152-0/+6
| | | | | | | managers in migration Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin, Tim Graham, Carl Meyer, and others for their review and input.
* Fixed #23812 -- Changed django.utils.six.moves.xrange ↵Michael Hall2014-12-131-2/+2
| | | | imports to range
* Removed redundant numbered parameters from str.format().Berker Peksag2014-12-031-1/+1
| | | | Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-1/+1
| | | | Django test suite.
* Updated translations from TransifexClaude Paroz2014-09-3014-22/+27
| | | | Forward port of e9c8aefbcee5 from stable/1.7.x
* Limited lines to 119 characters in django/Tim Graham2014-09-052-4/+13
| | | | refs #23395.
* Fetched translations from TransifexClaude Paroz2014-08-20164-681/+1525
| | | | Forward port of 49280a73ea5 from stable/1.7.x
* Fixed #22849 -- Added Session.__str__()Nick Sandford2014-07-242-0/+16
|
* Fixed #22835 -- Deprecated NoArgsCommand.Maxime Turcotte2014-06-191-3/+3
|
* Added database migration for contrib.sessions.Tim Graham2014-06-163-0/+29
| | | | refs #22170.
* Updated translation catalogsClaude Paroz2014-05-191-6/+10
|
* Fixed #20936 -- When logging out/ending a session, don't ↵Matt Robenolt2014-05-124-23/+58
| | | | | | | | | | | | | create a new, empty session. Previously, when logging out, the existing session was overwritten by a new sessionid instead of deleting the session altogether. This behavior added overhead by creating a new session record in whichever backend was in use: db, cache, etc. This extra session is unnecessary at the time since no session data is meant to be preserved when explicitly logging out.
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Fixed #22070 -- Changed verbose_name for apps in ↵James Jenkins2014-03-071-1/+1
| | | | | | django.contrib to use title case Thanks bendavis78 for the report.
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-251-0/+1
| | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Fixed #21675 -- Added app configs for contrib apps.Aymeric Augustin2014-01-051-0/+8
|
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+2
|
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-1/+1
|
* Fixed E125 pep8 warningsChristopher Medrela2013-11-281-1/+1
|
* Fixed #21012 -- New API to access cache backends.Curtis Maloney2013-11-233-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
* Fixed #21388 -- Corrected language code for FrisianBouke Haarsma2013-11-112-0/+0
|
* Fixed all E261 warningscoagulant2013-11-022-2/+2
|
* More attacking E302 violatorsAlex Gaynor2013-11-024-0/+5
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Fixed #21134 -- Prevented queries in broken transactions.Aymeric Augustin2013-09-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 63ddb271a44df389b2c302e421fc17b7f0529755 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 29 22:51:00 2013 +0200 Clarified interactions between atomic and exceptions. commit 2899ec299228217c876ba3aa4024e523a41c8504 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 22 22:45:32 2013 +0200 Fixed TransactionManagementError in tests. Previous commit introduced an additional check to prevent running queries in transactions that will be rolled back, which triggered a few failures in the tests. In practice using transaction.atomic instead of the low-level savepoint APIs was enough to fix the problems. commit 4a639b059ea80aeb78f7f160a7d4b9f609b9c238 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Sep 24 22:24:17 2013 +0200 Allowed nesting constraint_checks_disabled inside atomic. Since MySQL handles transactions loosely, this isn't a problem. commit 2a4ab1cb6e83391ff7e25d08479e230ca564bfef Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Sep 21 18:43:12 2013 +0200 Prevented running queries in transactions that will be rolled back. This avoids a counter-intuitive behavior in an edge case on databases with non-atomic transaction semantics. It prevents using savepoint_rollback() inside an atomic block without calling set_rollback(False) first, which is backwards-incompatible in tests. Refs #21134. commit 8e3db393853c7ac64a445b66e57f3620a3fde7b0 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 22 22:14:17 2013 +0200 Replaced manual savepoints by atomic blocks. This ensures the rollback flag is handled consistently in internal APIs.
* Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor2013-09-101-6/+6
| | | | Thanks joseph at vertstudios.com for the suggestion.
* Fixed a number of flake8 errors -- particularly around ↵Alex Gaynor2013-09-071-4/+0
| | | | unused imports and local variables
* Fixed #21000 -- Made cached_db session backend respect ↵CHI Cheng2013-09-052-6/+14
| | | | SESSION_CACHE_ALIAS
* Fixed #20922 -- Allowed customizing the serializer used ↵Tim Graham2013-08-225-47/+51
| | | | | | | | | by contrib.sessions Added settings.SESSION_SERIALIZER which is the import path of a serializer to use for sessions. Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.