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

        Aysegul Aydin Isiktekin created issue -
        Hide
        Aysegul Aydin Isiktekin added a comment -

        SVN Patch for fixing the error.

        Show
        Aysegul Aydin Isiktekin added a comment - SVN Patch for fixing the error.
        Aysegul Aydin Isiktekin made changes -
        Field Original Value New Value
        Attachment patch.txt [ 12412163 ]
        Ate Douma made changes -
        Fix Version/s 2.2.1 [ 12313443 ]
        Ate Douma made changes -
        Assignee Ate Douma [ adouma ]
        Hide
        Ate Douma added a comment -

        Patch applied.
        Good catch, thanks Aysegul!

        Show
        Ate Douma added a comment - Patch applied. Good catch, thanks Aysegul!
        Ate Douma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ate Douma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          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