Mapped attribute generating null value results in Uncaught runtime exception

Losen, Stephen C (scl) scl at virginia.edu
Mon Jan 7 07:42:10 EST 2019


Hi folks,

Just curious, I ran into some unexpected values in our LDAP such that a Mapped attribute generated a null value.  I had a pattern match like this: "prefix:(.*)" with a return value of "$1".  Some LDAP records had the value "prefix:" so then $1 was empty and that raised an uncaught runtime exception. Had to turn logging up to DEBUG to track it down. Would be less harsh if the IDP simply did not add the null value to the result and continued, perhaps logging a warning.

I fixed my problem with "prefix:(.+)".

This is IDP 3.4.2.

Stephen C. Losen
ITS - Systems and Storage
University of Virginia
scl at virginia.edu    434-924-0640




More information about the users mailing list