[obs-commits] [openSUSE/open-build-service] bc2c49: 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/master Home: https://github.com/openSUSE/open-build-service Commit: bc2c499300f481e6cc22157336199ec9b969f2fd https://github.com/openSUSE/open-build-service/commit/bc2c499300f481e6cc2215... 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: 0195d9b4a71c555c7feb611cec65591baddc9e0c https://github.com/openSUSE/open-build-service/commit/0195d9b4a71c555c7feb61... 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 #7851 from coolo/fix_7844 Fix saving of project meta if containing current user as maintainer Compare: https://github.com/openSUSE/open-build-service/compare/666726f87728...0195d9...
participants (1)
-
Henne Vogelsang