-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 13.5.0, 13.5.1, 13.5.2, 14.0.0, 14.1.0, 14.1.1, 14.5.0, 14.5.1, 5.5.1, 14.1.1.1, 14.1.1.2, 14.1.1.3, 6.0.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4, 14.1.1.4, 6.0.0.5, 14.1.1.5, 14.1.2.2, 6.5.0, 6.0.0.6, 6.5.0.1, 6.0.0.7, 14.1.2.3, 6.5.1, 6.5.0.2, 14.1.2.4, 6.5.2, 6.5.2.1, 6.5.2.2, 14.1.2.5, 14.1.2.11
-
Fix Version/s: None
-
Component/s: other
-
Labels:
-
Environment:Oracle JDK 1.8.0_201
Apache Tomcat/9.0.8
AM 6.0.0.6
-
Rank:1|hzzfhb:
-
Support Ticket IDs:
Bug description
NullPointerException is happening when no QueryId is present
How to reproduce the issue
- Perform a search with null value , e.g. AMIdentityRepository.searchIdentities(IdType.USER, null, idsc);
Expected behaviour
NullPointerException must not be thrown
Current behaviour
NPE happens
Code analysis
com.sun.identity.idm.server.IdCachedServicesImpl.java
... @Override public IdSearchResults search(SSOToken token, IdType type, IdSearchControl ctrl, String orgName, CrestQuery crestQuery) throws IdRepoException, SSOException { ... if (crestQuery.hasQueryId()) { String pattern = crestQuery.getQueryId(); // in legacy mode we must do search in order // to get the AMSDKDN component added to AMIdentity's uvid. // otherwise unix and anonymous login will fail. // if ((pattern.indexOf('*') == -1)) { ...
- is related to
-
OPENAM-15668 AM withholds NullPointerException during authentication - troubleshooting difficult
-
- Open
-
- relates to
-
OPENAM-15670 DeviceIdSave auth module initialization fails if username is null
-
- Resolved
-