-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix - No Precise Error Message After Error Due to Password Change #5643
Fix - No Precise Error Message After Error Due to Password Change #5643
Conversation
@nicolas-raoul @sivaraam @whym Please Review this PR |
# Conflicts: # app/src/main/java/fr/free/nrw/commons/review/ReviewImageFragment.java
# Conflicts: # app/src/main/java/fr/free/nrw/commons/notification/NotificationActivity.java
# Conflicts: # app/src/main/java/fr/free/nrw/commons/review/ReviewController.java # app/src/main/java/fr/free/nrw/commons/review/ReviewImageFragment.java
@nicolas-raoul @psh @whym @sivaraam Fixed all merge conflicts Please Review |
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.
Even though the above says
Any idea what might be causing this, or even how to fix the tests? Thanks! :-) |
@nicolas-raoul Seems like this error is due to Unchecked Exception at editDescription() Method that is added later on in another commit, looking into it. |
@nicolas-raoul added a PR fixing this #5685 |
Description (required)
Fixes #5642
What changes did you make and why?
I identified the source of all these Errors (Which is No Accurate Information Provided to the User as to why an operation has failed because of a Single Type Of Exception that is getting lost due to Multiple layers of method calls), Hence I made a separate Exception Class for that Exception called -
IvalidLoginTokenException
so that it is easier to Identify and Propagate it.Then I handled that Exception for each of the cases and since all of these Exceptions are the same their action is also Similar which is to Notify the user that Their Login Session has Expired Due to Password Change and They Must Login Again
Tests performed (required)
Tested on Xiaomi 11 Lite NE with API level 33.