Project

General

Profile

Bug #2689

AuthUtils NPE

Added by Ben Leinfelder almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
-
Target version:
-
Start date:
2012-05-02
Due date:
% Done:

100%

Milestone:
CCI-1.0.0
Product Version:
*
Story Points:
Sprint:

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 almost 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 almost 12 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)