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

HTTP code should be set to 400 in case of improper payload sent to the licence_recommender endpoint #169

Open
tisnik opened this issue Jan 10, 2019 · 0 comments
Labels

Comments

@tisnik
Copy link
Member

tisnik commented Jan 10, 2019

Currently, the license-recommender endpoint does not contain any check if the payload sent to this endpoint is correct. It means that the service fail later with HTTP code 500, and not with HTTP code 400.

Possible fix:

  1. check payload right after it is received
  2. respond accordingly

Report made by BAF can be seen here:
https://fabric8-analytics.github.io/fuzz-tests/recommender_licence_recommender_issue_169.htm

@tisnik tisnik added the bug label Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant