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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • 2.1.4
    • Affects Version/s: 2.1.3
    • Component/s: API
    • None

      ----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

            Assignee:
            Chris Hyzer (upenn.edu)
            Reporter:
            Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: