[obs-commits] [openSUSE/open-build-service] 67cfb0: Fix saving of project meta if containing current u...
![](https://seccdn.libravatar.org/avatar/9181eb84f9c35729a3bad740fb7f9d93.jpg?s=120&d=mm&r=g)
Branch: refs/heads/2.10 Home: https://github.com/openSUSE/open-build-service Commit: 67cfb0b8ec544f3bbcef59f97c12f1d56b99ef9b https://github.com/openSUSE/open-build-service/commit/67cfb0b8ec544f3bbcef59... Author: Stephan Kulow <coolo@suse.de> Date: 2019-07-03 (Wed, 03 Jul 2019) Changed paths: M src/api/app/controllers/source_project_meta_controller.rb Log Message: ----------- Fix saving of project meta if containing current user as maintainer If the uploaded XML contains the same relationship that the source controller wants to create (current user as maintainer), we get an invalid project and active record aborts the save!. It took quite a while to debug this as we expected save! to throw an exception for invalid projects. As this behaviour started with rails 5.2.1 to trigger, we believe it is a Rails bug. Fixes #7844 Co-authored-by: Ana María Martínez Gómez <anamaria@martinezgomez.name> Commit: 56449ffc4e6feb809cc87b7361bba90fe11220c1 https://github.com/openSUSE/open-build-service/commit/56449ffc4e6feb809cc87b... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2019-07-03 (Wed, 03 Jul 2019) Changed paths: M src/api/app/controllers/source_project_meta_controller.rb Log Message: ----------- Merge pull request #7854 from hennevogel/backport/fix_7844 Fix saving of project meta if containing current user as maintainer Compare: https://github.com/openSUSE/open-build-service/compare/eddb168cc29e...56449f...
participants (1)
-
Henne Vogelsang