Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-921

ldap session list throws an error if the attribute does not exist on the server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.1.4
    • 2.1.3
    • API
    • None

    Description

      ----Original Message----
      From: grouper-dev-request grouper-dev-request On Behalf Of Jeff McCullough
      Sent: Wednesday, July 24, 2013 7:10 PM
      To: Grouper Dev
      Cc: calnet-admin Administration
      Subject: [grouper-dev] LdapSession.list bug

      In the LdapSession.list method there is small bug that throws an error if the ldap attribute in question does not exist for the user. There should be a check for a null value before the for loop.

      if (attribute != null) {
      for (int i=0;i<attribute.size();i++) {

      Object attributeValue = attribute.get;
      attributeValue = GrouperUtil.typeCast(attributeValue, returnType);
      if (attributeValue != null)

      { result.add((R)attributeValue); }

      }
      }

      Cheers,
      Jeff

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: