Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-185

[FIX] Removing 'user' role causes data integrity problems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.4b4-dev / CVS
    • None
    • Database
    • None
    • Operating System: Linux
      Platform: PC
    • 15684

    Description

      This appears to be a data-integrity problem where deleting a role
      has not been properly propagated or protected against: Seeking to
      refactor the role of "user" to "member" and "guest", I removed the
      role of "user" and now jetspeed refuses to assign any roles to
      any users returning instead errors like

      Failed update role+permission:
      org.apache.jetspeed.services.security.GroupException: Unjoin group
      'Jetspeed' to user 'anon' failed: : Unknown role 'user'

      Adding the 'user' role back in corrects the problem. My guess is that
      you have to manually ensure that the role is no longer used before you
      remove it, but this should be detected when someone tries to delete
      a role.

      Attachments

        Activity

          People

            Unassigned Unassigned
            garym@canada.com iyahman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: