-
Notifications
You must be signed in to change notification settings - Fork 697
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
deleted journalist causes 500 on GET /replies API endpoint #5176
Labels
Comments
FYI: in my testing, the SecureDrop Client will not currently handle it gracefully if the journalist-related JSON keys are missing from the API response, or if the value is NULL. If the values are empty strings, it will create an empty record in its USERS table, but apparently operate as expected. |
kushaldas
added a commit
that referenced
this issue
Apr 1, 2020
We can safely return a reply by a journalist who is deleted from the system. This patch also includes a test case, and dev-data generation script also now adds a reply and then deletes the journalist.
9 tasks
kushaldas
added a commit
that referenced
this issue
Apr 1, 2020
We can safely return a reply by a journalist who is deleted from the system. This patch also includes a test case, and dev-data generation script also now adds a reply and then deletes the journalist.
kushaldas
added a commit
that referenced
this issue
Apr 1, 2020
We can safely return a reply by a journalist who is deleted from the system. This patch also includes a test case, and dev-data generation script also now adds a reply and then deletes the journalist.
redshiftzero
pushed a commit
that referenced
this issue
Apr 1, 2020
We can safely return a reply by a journalist who is deleted from the system. This patch also includes a test case, and dev-data generation script also now adds a reply and then deletes the journalist.
redshiftzero
added a commit
that referenced
this issue
Apr 1, 2020
Fixes #5176 Adds code+test to return replies without a journalist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Deleted journalist causes GET /replies endpoint to 500 if there are any replies from that deleted journalist.
Steps to Reproduce
GET /api/v1/replies
Expected Behavior
200 OK
Actual Behavior
Comments
We should handle where the
journalist
isNone
hereIt would be wise to also add test data to
create-dev-data.py
for the deleted journalist scenario (since that is used for development of securedrop-client).The text was updated successfully, but these errors were encountered: