Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-1039

OutOfMemoryError when trying to add a role to a user, if the user has already that role

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1
    • Security
    • None
    • Windows XP, Jre 1.6.0.11, Tomcat 6.0.18, LDAP integrated to Apache DS 1.5.4

    Description

      When trying to add a role to a user, if the user already has that role, OutOfMemoryError occurs. Error is caused by org.apache.jetspeed.security.mapping.model.impl.AttributeImpl toString method. It causes an infinite loop is the attribute is multi-valued.

      PS: j2-admin user management portlet does not let you to add the role to the user more than once, but programmatically one can add the role to the user.

      Attachments

        1. patch.txt
          0.7 kB
          Aysegul Aydin Isiktekin

        Activity

          People

            ate Ate Douma
            ayzegul Aysegul Aydin Isiktekin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment