-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Buggy Code in Advance of Python 3 Update #3457
Merged
Merged
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
ea9ea10
save changes to model so that they propagate to tests
ilan-gold 83ebc9a
remove uniquify in favor of list of set
ilan-gold 7af0804
add travis debugging
ilan-gold c043529
revert travis debugging
ilan-gold 4235b78
add more travis debugging
ilan-gold 339852a
fix formatting issue
ilan-gold 297e650
convert logger arguments
ilan-gold f71f036
format code properly
ilan-gold 68382fd
app more debugging on default_app
ilan-gold c294e2e
final formatting change for logging
ilan-gold 7470c9d
remove flake from tavis.yml
ilan-gold 92a9ef4
update sorting to be specified by rank field is solr
ilan-gold a14f5bb
Merge branches 'develop' and 'ilan-gold/fix_problematic_python2_code'…
ilan-gold 1812fa6
pass request in to the ToolSerializer for getting ownership
ilan-gold 8a8aef2
revert debugging changes for celery
ilan-gold 8a20abb
revert debugging changes for celery
ilan-gold f000d91
update user logout handling for data sets
ilan-gold 4d15b37
test bam indexing for python3 package update
ilan-gold e682be6
test bam indexing for python3 package update
ilan-gold d9485e9
fix formatting issues
ilan-gold 6adcad8
remove pysam testing
ilan-gold ad1d0cd
revert uniquify change
ilan-gold c209f97
remove sorting
ilan-gold eb4917f
remove try-catch on has_perm
ilan-gold c8ee5bc
re-insert space
ilan-gold File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user is not logged in, they are the anon user. What's throwing the exception exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this has to do with the way in which the logged-in user is held in browser vs. what is happening on the backend - the browser still has everything it needs to have the permission/User but the User has been logged out already in the backend so when the cached user in the browser comes through, Django uses the load of it from the cache but can then not find it once inside the application logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this is indeed what appears to be happening in the Authentication middleware (i imagine little changed from 1.8 to 1.9 regarding this - check out the get_user function: https://github.com/django/django/blob/1.9/django/contrib/auth/middleware.py)