[Bug 457596] New: maintainer role does not work unless setting Admin flag in active_rbac/ user/edit
https://bugzilla.novell.com/show_bug.cgi?id=457596 Summary: maintainer role does not work unless setting Admin flag in active_rbac/user/edit Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: abauer@novell.com ReportedBy: choeger@open-xchange.com QAContact: adrian@novell.com Found By: --- Did a clean install of obs-api-1.0.0-5.1 obs-worker-1.0.0-5.1 obs-server-1.0.0-5.1 Now the maintainer role does not seem to work anymore unless I set the Admin flag in active_rbac/user/edit. When I do not set that flag, I get a 403 Forbidden from the server. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 Carsten Hoeger <choeger@open-xchange.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|abauer@novell.com |froh@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 Carsten Hoeger <choeger@open-xchange.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |froh@novell.com AssignedTo|froh@novell.com |abauer@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User choeger@open-xchange.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c1 Carsten Hoeger <choeger@open-xchange.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major --- Comment #1 from Carsten Hoeger <choeger@open-xchange.com> 2008-12-15 07:12:04 MST --- The bug is also in the latest and greatest packages: obs-api-1.5.rc1.5898-1.1 obs-server-1.5.rc1.5898-1.1 obs-worker-1.5.rc1.5898-1.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User froh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c2 --- Comment #2 from Susanne Oberhauser <froh@novell.com> 2008-12-16 02:20:22 MST --- Andreas, any advice how to proceede here? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User choeger@open-xchange.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c3 --- Comment #3 from Carsten Hoeger <choeger@open-xchange.com> 2009-03-16 09:43:35 MST --- Still in RC2. obs-server-1.5.rc2-1.2 obs-worker-1.5.rc2-1.2 obs-signd-1.5.rc2-1.3 obs-api-1.5.rc2-1.2 Even worse: Not even HOME projects can be created by Home owners. That's a PITA! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User choeger@open-xchange.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c4 Carsten Hoeger <choeger@open-xchange.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Critical --- Comment #4 from Carsten Hoeger <choeger@open-xchange.com> 2009-03-16 09:44:12 MST --- increasing severity -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User jnelson-suse@jamponi.net added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c5 Jon Nelson <jnelson-suse@jamponi.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jnelson-suse@jamponi.net --- Comment #5 from Jon Nelson <jnelson-suse@jamponi.net> 2009-03-16 19:45:02 MST --- Ping! I ran into this recently, too. This is really hitting me right now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User adrian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c6 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |choeger@open-xchange.com --- Comment #6 from Adrian Schröter <adrian@novell.com> 2009-03-17 00:46:31 MST --- Can you please attach the new lines of /srv/www/obs/frontend/log/production_slave.log when this happens ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User choeger@open-xchange.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c7 --- Comment #7 from Carsten Hoeger <choeger@open-xchange.com> 2009-03-17 04:47:25 MST --- Processing PersonController#userinfo (for ::ffff:192.168.32.23 at 2009-03-17 11:46:29) [GET] Parameters: {"action"=>"userinfo", "controller"=>"person", "login"=>"choeger"} Rendering person/userinfo Completed in 0.03258 (30 reqs/sec) | Rendering: 0.01359 (41%) | DB: 0.00000 (0%) | 200 OK [http://buildapi.netline.de/person/choeger] Processing SourceController#project_meta (for ::ffff:192.168.32.23 at 2009-03-17 11:46:29) [PUT] Parameters: {"action"=>"project_meta", "project"=>"home:choeger:test", "controller"=>"source"} Rendering status errorcode 'create_project_no_permission' - not allowed to create new project 'home:choeger:test' Rendering status (403) Completed in 0.31618 (3 reqs/sec) | Rendering: 0.00995 (3%) | DB: 0.00000 (0%) | 403 Forbidden [http://buildapi.netline.de/source/home:choeger:test/_meta] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User choeger@open-xchange.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c8 Carsten Hoeger <choeger@open-xchange.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|choeger@open-xchange.com | --- Comment #8 from Carsten Hoeger <choeger@open-xchange.com> 2009-03-17 04:48:29 MST --- unset NEEDINFO -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User suse-tux@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c9 --- Comment #9 from Marcus Hüwe <suse-tux@gmx.de> 2009-03-18 07:40:23 MST --- Created an attachment (id=280302) --> (https://bugzilla.novell.com/attachment.cgi?id=280302) preliminary workaround Here's a workaround for this bug. I think the problem is that "rel.role.static_permissions" is just a normal array so the :conditions stuff most likely doesn't work. IMHO we should fix this bug and backport the fix _before_ the 1.5 release because it doesn't make sense if every user needs admin rights in order to work on a project/package. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User abauer@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c10 --- Comment #10 from Andreas Bauer <abauer@novell.com> 2009-03-18 12:14:13 MST --- The Array returned by static_permissions is actually an AssociationProxy which has a count method with this :condition stuff, so this is most likely not the problem. I agree on fixing this before the 1.5 release though. Carsten, could I come over some time and have a look at the machine having the problem? So far I wasn't able to reproduce this locally. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User abauer@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c11 --- Comment #11 from Andreas Bauer <abauer@novell.com> 2009-03-23 08:02:48 MST --- Finally I found the reason for this behavior. Marcus nearly found the problem, it's indeed Array#count. Prior to ruby 1.8.7, the standard Array#count didn't exist. From 1.8.7, Array#count is an alias to Array#length. The Rails AssociationProxy, which is returned by association methods as Role#static_permissions, is essentially an enhanced Array that defines its own #count. In Rails versions prior to 2.2.x, the AssociationProxy#count method was only invoked if the Array class had no #count method of it's own. Thus the suddenly changed behavior. It only affects combinations of ruby >= 1.8.7 with rails < 2.2.0 See rails ticket http://rails.lighthouseapp.com/projects/8994/tickets/831-count-on-habtms-bro... for more information For the affected installations I suggest undefining the count method with the following lines in config/environment/production_slave.rb: class ::Array undef_method :count if defined? :count end -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User choeger@open-xchange.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c12 --- Comment #12 from Carsten Hoeger <choeger@open-xchange.com> 2009-03-23 12:05:19 MST --- I just did install 1.5.1 from openSUSE:Tools. After I manually copied /srv/www/obs/frontend/config/environment.rb.rpmnew to /srv/www/obs/frontend/config/environment.rb the error seems to be gone. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457596 User adrian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457596#c13 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #13 from Adrian Schröter <adrian@novell.com> 2009-03-23 12:09:28 MST --- I made these files %config without (noreplace) now. So, the next round of 1.5.1 packages will fix it. Publishing now ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com