Jetspeed 2
  1. Jetspeed 2
  2. JS2-1039

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1
    • Component/s: Security
    • Labels:
      None
    • Environment:
      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.

      1. patch.txt
        0.7 kB
        Aysegul Aydin Isiktekin

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Ate Douma
            Reporter:
            Aysegul Aydin Isiktekin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development