Duplicate permissions in roles setup

Hello,

if I try to create or modify roles from the web ui, all permissions are
displayed twice.
So, there are always 2 view_architectures, create_architectures etc. for
every permission.
I have attached a screenshot [1].

I already had a look at the database in the "roles" table, the actual
permissions are only stored once.

But for some roles, the stored permission format differs:

  • !ruby/sym view_architectures
    vs
  • :view_architectures

Setup:
OS: Ubuntu 12.04
Foreman 1.4.1 (Recent upgrade vom 1.3.x) from packages, foreman-rake
db:migrate && foreman-rake db:seed have been run during upgrade process
DB: PostgreSQL 9.2

Somebody got an idea about this issue?

Regards,
Stefan

[1] https://www.desy.de/~sdietric/foreman_duplicate.png

··· -- ------------------------------------------------------------------------ Stefan Dietrich Deutsches Elektronen-Synchrotron (IT-Systems) Ein Forschungszentrum der Helmholtz-Gemeinschaft Notkestr. 85 phone: +49-40-8998-4696 22607 Hamburg e-mail: stefan.dietrich@desy.de Germany ------------------------------------------------------------------------

Ok, found the issue on myself.
This seems to be a ruby 1.8 vs 1.9 thing.

Running foreman under passenger with ruby 1.9 on Ubuntu fixes the
problem.

Too bad, that the foreman packages still default to ruby 1.8 on Ubuntu
12.04.

Regards,
Stefan

··· On Mo, 2014-03-17 at 15:36 +0000, Dietrich, Stefan wrote: > Hello, > > if I try to create or modify roles from the web ui, all permissions are > displayed twice. > So, there are always 2 view_architectures, create_architectures etc. for > every permission. > I have attached a screenshot [1]. > > I already had a look at the database in the "roles" table, the actual > permissions are only stored once. > > But for some roles, the stored permission format differs: > - !ruby/sym view_architectures > vs > - :view_architectures > > Setup: > OS: Ubuntu 12.04 > Foreman 1.4.1 (Recent upgrade vom 1.3.x) from packages, foreman-rake > db:migrate && foreman-rake db:seed have been run during upgrade process > DB: PostgreSQL 9.2 > > Somebody got an idea about this issue? > > Regards, > Stefan > > [1] https://www.desy.de/~sdietric/foreman_duplicate.png >

> Ok, found the issue on myself.
> This seems to be a ruby 1.8 vs 1.9 thing.
>
> Running foreman under passenger with ruby 1.9 on Ubuntu fixes the
> problem.
>
> Too bad, that the foreman packages still default to ruby 1.8 on Ubuntu
> 12.04.
>
> patches welcome!! :slight_smile:

Ohad

··· On Tue, Mar 18, 2014 at 4:38 PM, Dietrich, Stefan wrote:

Regards,
Stefan

On Mo, 2014-03-17 at 15:36 +0000, Dietrich, Stefan wrote:

Hello,

if I try to create or modify roles from the web ui, all permissions are
displayed twice.
So, there are always 2 view_architectures, create_architectures etc. for
every permission.
I have attached a screenshot [1].

I already had a look at the database in the “roles” table, the actual
permissions are only stored once.

But for some roles, the stored permission format differs:

  • !ruby/sym view_architectures
    vs
  • :view_architectures

Setup:
OS: Ubuntu 12.04
Foreman 1.4.1 (Recent upgrade vom 1.3.x) from packages, foreman-rake
db:migrate && foreman-rake db:seed have been run during upgrade process
DB: PostgreSQL 9.2

Somebody got an idea about this issue?

Regards,
Stefan

[1] https://www.desy.de/~sdietric/foreman_duplicate.png


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

>>
>> Ok, found the issue on myself.
>> This seems to be a ruby 1.8 vs 1.9 thing.
>>
>> Running foreman under passenger with ruby 1.9 on Ubuntu fixes the
>> problem.
>>
>> Too bad, that the foreman packages still default to ruby 1.8 on Ubuntu
>> 12.04.

Be warned, changing the default ruby on Ubuntu is non-trivial, and the
Ruby patch-level of 1.9 in 12.04 (-p0) is known to be buggy with
Puppet - you're safer sticking with 1.8

> patches welcome!! :slight_smile:

Indeed, patches to fix the graphical glitch would be awesome :slight_smile:

Greg

··· On 18 March 2014 14:39, Ohad Levy wrote: > On Tue, Mar 18, 2014 at 4:38 PM, Dietrich, Stefan > wrote: