Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 1df1c4e27789b04719519f276cb4894975fba5e4
https://github.com/openSUSE/open-build-service/commit/1df1c4e27789b04719519f...
Author: Victor Pereira
Date: 2019-11-04 (Mon, 04 Nov 2019)
Changed paths:
M src/api/app/controllers/webui/comments_controller.rb
M src/api/spec/controllers/webui/comments_controller_spec.rb
Log Message:
-----------
Nil guard for commentable find
Because Enumerable#find could return nil when the
params[:commentable_type] has something different than expected.
Fixes: #8232
Commit: 67c234664300b58735b3694605bf7f10a9c26ee6
https://github.com/openSUSE/open-build-service/commit/67c234664300b58735b369...
Author: Victor Pereira
Date: 2019-11-04 (Mon, 04 Nov 2019)
Changed paths:
M src/api/app/controllers/webui/comments_controller.rb
M src/api/spec/controllers/webui/comments_controller_spec.rb
Log Message:
-----------
Merge pull request #8648 from vpereira/issue_8232
Handle cases where commentable_type parameter is wrong
Compare: https://github.com/openSUSE/open-build-service/compare/0c7572dd333d...67c234...