Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-3513

Local Entity Creation Fails due to rules applying invalid privileges

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5.53
    • 2.5.52
    • UI
    • None

    Description

      Upon submitting the form to add a local entity through the UI or the API, The following message is returned:

      Error creating local entity: Cannot assign membership for field: readers for typeOfGroup: entity, Problem in HibernateSession: HibernateSession (54a5086e): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (2ff30e18), Problem in HibernateSession: HibernateSession (1529cc13): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (2ff30e18), Problem in HibernateSession: HibernateSession (794d4ad4): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (2ff30e18), Problem in HibernateSession: HibernateSession (2e45762f): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (2ff30e18), Problem saving group:

      The problem does not occur when the type of the addition is changed back to group.  It seems to be specific to localEntity objects as they have a reduced set of privileges which can be assigned.

      Per testing, it seems to be related to rules that are being executed as part of the addition of the local entity which are applying privileges inherited from higher-level stems.  Editing the configuration and setting rules.enable to false allows the addition to complete.

      My setup has executed the GDG template at the root of the project, so there are permissions assigned which cascade through the entire tree.  (Just the ones created by the GDG template.)

      Full stack trace of the failure is attached.

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            jonathan.keller@at.internet2.edu Jonathan Keller (ucdavis.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: