Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-861

Resolver LDAP config search filter empty attribute reference generates Web Login Service - Uncaught Exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2.0
    • Component/s: Attribute Resolver
    • Labels:
      None
    • Environment:

      Linux, Tomcat 8/Java 8

      Description

      Configured LDAP connector with attribute dependency, and set:

      <dc:FilterTemplate>
      <![CDATA[
      (uid=$rawUsername.get(0))
      ]]>
      </dc:FilterTemplate>

      If $rawUsername has no values, that generated error in log and in browser:

      – Log
      2015-11-11 02:41:27,197 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:310] - Attribute Resolver 'ShibbolethAt
      tributeResolver': Resolving data connector myLDAPc14n
      2015-11-11 02:41:27,223 - ERROR [net.shibboleth.idp.saml.profile:-2] - Uncaught runtime exception
      org.apache.velocity.exception.MethodInvocationException: Invocation of method 'get' in class java.util.ArrayList threw exception java.la
      ng.IndexOutOfBoundsException: Index: 0, Size: 0 at ee577e47-5169-4361-b573-7ccabe19032a[line 1, column 19]
      at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243)
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.rangeCheck(ArrayList.java:653)

      — Browser

      Web Login Service - Uncaught Exception

      A software error was encountered that prevents normal operation:

      org.apache.velocity.exception.MethodInvocationException: Invocation of method 'get' in class java.util.ArrayList threw exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at 0a54171e-a569-4cb4-8274-f1867fb1d3db[line 1, column 19]

        Attachments

          Activity

            People

            Assignee:
            rdw@iay.org.uk Rod Widdowson
            Reporter:
            mgrady@unicon.net Michael Grady
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h