Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 08a44343c2d40366da3ecb37766269a83c40cd60
https://github.com/openSUSE/open-build-service/commit/08a44343c2d40366da3ecb...
Author: Björn Geuken
Date: 2017-05-04 (Thu, 04 May 2017)
Changed paths:
M src/api/config/routes.rb
Log Message:
-----------
[webui] Set the default format of package routes to html
Fixes #2900
Since Rails 5 the routing changed to support the new API application
feature in Rails. For OBS that meant that packages with a mime-like
suffix, like .yaml, caused Rails to handle the response as "mime-type"
format, eg. yaml, instead of html.
To fix this we have to explicitly set the default format to html to
route properly.
Comment from the rails guys:
https://github.com/rails/rails/issues/28901#event-1060620644
Commit: 2c76bb508444246546a62fca157b5dcfea75246d
https://github.com/openSUSE/open-build-service/commit/2c76bb508444246546a62f...
Author: Björn Geuken
Date: 2017-05-04 (Thu, 04 May 2017)
Changed paths:
A src/api/spec/cassettes/Packages/Viewing_a_package_that/has_a_mime_like_suffix_in_it_s_name.yml
M src/api/spec/features/webui/packages_spec.rb
Log Message:
-----------
[ci] Add test for viewing packages that have a mime type like suffix
Commit: 55dceea3ecbdf54fb3f83907f5fe450128bbaa92
https://github.com/openSUSE/open-build-service/commit/55dceea3ecbdf54fb3f839...
Author: Henne Vogelsang
Date: 2017-05-04 (Thu, 04 May 2017)
Changed paths:
M src/api/config/routes.rb
A src/api/spec/cassettes/Packages/Viewing_a_package_that/has_a_mime_like_suffix_in_it_s_name.yml
M src/api/spec/features/webui/packages_spec.rb
Log Message:
-----------
Merge pull request #3061 from bgeuken/routing
[webui] Set the default format of package routes to html
Compare: https://github.com/openSUSE/open-build-service/compare/6a409b7aa806...55dcee...