Uploaded image for project: '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
    • Status: Closed
    • Priority: 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

        Hide
        ayzegul Aysegul Aydin Isiktekin added a comment -

        SVN Patch for fixing the error.

        Show
        ayzegul Aysegul Aydin Isiktekin added a comment - SVN Patch for fixing the error.
        Hide
        adouma Ate Douma added a comment -

        Patch applied.
        Good catch, thanks Aysegul!

        Show
        adouma Ate Douma added a comment - Patch applied. Good catch, thanks Aysegul!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development