Skip to content
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

swarm/api: Fix #18007, missing signature should return HTTP 400 #18008

Merged
merged 1 commit into from
Nov 7, 2018

Conversation

jpeletier
Copy link
Contributor

This PR fixes #18007 in which a HTTP 200 OK is returned when a signature in a feed update POST API call is missing or incomplete.

Tests have been updated to enforce this behavior.

Copy link
Member

@acud acud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@acud
Copy link
Member

acud commented Nov 7, 2018

@jpeletier is this related? ethersphere/swarm#979

@jpeletier
Copy link
Contributor Author

@justelad No, ethersphere#979 was just a CLI issue. This may fix the other issue @xrn mentioned regarding a 200 returned instead of something else.

@nonsense
Copy link
Member

nonsense commented Nov 7, 2018

@jpeletier RespondError was unexported and merged to master a few days ago. We'd have to rebase this PR on master prior to merging. I couldn't merge previously due to a macOS failure, but now that the other PR is fixed, even if it was a flake, we have to fix this one.

@jpeletier
Copy link
Contributor Author

@nonsense Fixed.

@nonsense nonsense merged commit 36ca85f into ethereum:master Nov 7, 2018
@nonsense
Copy link
Member

nonsense commented Nov 7, 2018

@jpeletier thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swarm: Feed update with empty signature returns HTTP 200
4 participants