David Ormsbee
40e1e1e59e
Improve SafeCookieData Error Logging
...
1. Use request.session instead of request.user, since request.user
won't necessarily be properly set.
2. Be extra paranoid by putting logging after session cookie deletion,
so that even if there is some error related to logging, the important
work will complete and the browser won't get left in a broken state.
3. Write out the full contents of the Cookie header (up to 4096 bytes)
in the log as a base64 encoded string. This way we can look at broken
cookie states and diagnose what's breaking them (the Python parser will
just silently skip anything past a corrupted cookie entry). We base64
encode mostly to prevent people from maliciously injecting garbage into
our logs.
2019-02-24 13:57:19 -05:00
David Ormsbee
fc52fcccab
Log when SafeSessionMiddleware deletes cookies
2019-02-22 17:12:18 -05:00
Matthew Piatetsky
f294b1a374
fix unicode strings in openedx/ part 1
2019-02-13 10:47:35 -05:00
Michael Youngstrom
4bbd1dee0b
Remove shards from commonlib-unit tests
2019-02-12 14:28:35 -05:00
Ned Batchelder
59d78031d8
Fix trailing-comma-tuple warnings
2018-11-02 11:06:59 -04:00
Michael Youngstrom
8aed0ff719
Clean up after any get_mock_request or set_current_request calls
2018-08-22 17:23:39 -04:00
Jeremy Bowman
380a24f7ef
TE-2689 Remove useless pylint suppressions part 6
2018-08-21 13:54:34 -04:00
Jeremy Bowman
c290bf8a07
TE-2524 Stop using nose.plugins - openedx
2018-08-02 14:54:50 -04:00
Jeremy Bowman
5289c7e828
PLAT-1915 Stop using deprecated BaseException.message
2018-01-31 17:22:01 -05:00
Ned Batchelder
e23e3a0486
Fix a number of unused-import pylint violations
2017-11-21 19:57:06 -05:00
John Eskew
947e814216
Remove deprecated django.utils.importlib.
2017-06-29 12:08:21 -04:00
Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
J. Cliff Dyer
9366c43a83
Fix issues with RequestFactory used as Request.
...
* Centralize creation of quick request objects.
* Isolate caches to individual tests to prevent test ordering
dependencies.
TNL-5811
2016-11-07 10:51:04 -05:00
Calen Pennington
bc20a37c2b
Simplify how shards are selected in CI
2016-08-03 16:23:02 -04:00
Ben Patterson
c504029b39
Create a third shard for lms unit tests.
...
This will leverage the nose attrib plugin to allow us
to break tests apart on our build system to run
in parallel on separate nodes.
2016-03-17 12:01:42 -04:00
Nimisha Asthagiri
de3fca35be
Quiet the safe sessions logging for expected use case
2016-03-02 14:47:44 -05:00
Qubad786
faf3a64e36
Bypass unnecessary logs on loging out
2016-02-17 13:42:01 +05:00
Nimisha Asthagiri
e76e05fa77
Specially handle login redirect for mobile apps
2016-01-26 17:23:04 -05:00
Nimisha Asthagiri
f3cb692472
Safe Session Cookies Middleware
2016-01-26 17:23:03 -05:00