Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 4c4578fdabccebda63ee106e15d4f741d3021ff5
https://github.com/openSUSE/open-build-service/commit/4c4578fdabccebda63ee10...
Author: Victor Pereira
Date: 2020-05-30 (Sat, 30 May 2020)
Changed paths:
M src/api/app/controllers/source_controller.rb
M src/api/test/functional/source_controller_test.rb
Log Message:
-----------
Always verify an uploaded file in case of a _pattern package
This is just the rework from PR#9554
As of now, if a file is PUTed to a _pattern package, the file is
only verified if the _pattern package was non-existent. Instead, the
the file should be always verified (regardless whether the _pattern
package was created or already existed).
Since @pack is not set in check_permissions_for_file in case of a
_pattern package (which is perfectly fine), it is set up in
update_file (the code also takes a potential race into account).
Hence, @pack is always defined when it is passed to
Package.verify_file!.
The new behavior is documented in a testcase.
Co-authored-by: Marcus Hüwe
Commit: 2c6f8575a9da69ad6052cb323668f3c2d6a9333c
https://github.com/openSUSE/open-build-service/commit/2c6f8575a9da69ad6052cb...
Author: Victor Pereira
Date: 2020-06-02 (Tue, 02 Jun 2020)
Changed paths:
M src/api/app/controllers/source_controller.rb
M src/api/test/functional/source_controller_test.rb
Log Message:
-----------
Merge pull request #9626 from vpereira/verify_uploaded_file
Always verify an uploaded file in case of a _pattern package
Compare: https://github.com/openSUSE/open-build-service/compare/a9e4503f6bd6...2c6f85...