Bug #2689
AuthUtils NPE
100%
Description
I'm getting a null pointer exception when using the newest version of AuthUtils (where 'equivalentIdentities' need not have corresponding 'person' elements). I'm using the latest d1_integration code from trunk and the latest AuthUtils from d1_common.
suspect line:
AuthUtils.findPersonsSubjects(AuthUtils.java:153)
"for (Subject eqId : p.getEquivalentIdentityList()) {"
Probably because the "p" does not have an equivalentIdentity list (getEquivalentIdentityList() returns null)
stacktrace snippet:¶
knb 20120502-16:11:46: [ERROR]: class java.lang.NullPointerException: null [edu.ucsb.nceas.metacat.restservice.D1ResourceHandler]
java.lang.NullPointerException
at org.dataone.service.types.v1.util.AuthUtils.findPersonsSubjects(AuthUtils.java:153)
at org.dataone.service.types.v1.util.AuthUtils.authorizedClientSubjects(AuthUtils.java:86)
at edu.ucsb.nceas.metacat.dataone.D1NodeService.isAuthorized(D1NodeService.java:928)
History
#1 Updated by Ben Leinfelder over 12 years ago
- Status changed from New to In Progress
that's resolved, but I think this might prevent us from getting at equivalentIdenties that don't have corresponding person elements...
#2 Updated by Ben Leinfelder over 12 years ago
- Status changed from In Progress to Closed