Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 33ee072a8963effdf53836300dbfc5a71fcc034e
https://github.com/openSUSE/open-build-service/commit/33ee072a8963effdf53836...
Author: Marvin Friedrich
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
M src/api/app/controllers/person/token_controller.rb
Log Message:
-----------
Improve token creation error message
Change response code to 400 Bad Request if either "project" or "package" parameters are missing in the `POST /person/<login>/token` request. Also provided a more meaningful response message to the user.
Fixes #14828
Commit: 765e92741425af422a18c0dd7eb42cd740fd0313
https://github.com/openSUSE/open-build-service/commit/765e92741425af422a18c0...
Author: Marvin Friedrich
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
M src/api/spec/controllers/person/token_controller_spec.rb
Log Message:
-----------
Add TokenController test for only one parameter
Create tests for either only "project" or "package" parameters.
Both expect the result 400 Bad Request because either both or none must be provided.
Commit: 706491c638c091215247657a06ea5c043741922f
https://github.com/openSUSE/open-build-service/commit/706491c638c09121524765...
Author: Marvin Friedrich <144036628+mfriedrichgh@users.noreply.github.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
M src/api/app/controllers/person/token_controller.rb
M src/api/spec/controllers/person/token_controller_spec.rb
Log Message:
-----------
Merge pull request #14906 from mfriedrichgh/fix/issue_14828
Improve token creation error message
Compare: https://github.com/openSUSE/open-build-service/compare/e46fddd3569f...706491...