[ https://issues.apache.org/jira/browse/ATLAS-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225331#comment-17225331
]
ASF subversion and git services commented on ATLAS-3988:
--------------------------------------------------------
Commit 9221eb972c5678bd7ba357b771bd2172862b88f6 in atlas's branch refs/heads/branch-2.0 from
chaitali borole
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=9221eb9 ]
ATLAS-3988 : Fix NPE in entity REST API when passed with type's GUID.
Signed-off-by: nixonrodrigues <nixon@apache.org>
(cherry picked from commit a0474d142c702e75f1820bffa542dc8cf39ba79d)
> REST GET entity API with type's GUID throws NPE
> -----------------------------------------------
>
> Key: ATLAS-3988
> URL: https://issues.apache.org/jira/browse/ATLAS-3988
> Project: Atlas
> Issue Type: Improvement
> Affects Versions: 3.0.0
> Reporter: chaitali borole
> Assignee: chaitali borole
> Priority: Major
> Fix For: 3.0.0
>
>
> GET on /api/atlas/v2/entity/guid/<invalid_GUID> throws invalid GUID exception.
> BUT GET on /api/atlas/v2/entity/guid/<valid_type_GUID> throws NPE.
>
> 2020-01-14 02:19:07,272 ERROR - [pool-2-thread-3 - a0b7457e-d43f-4fca-9581-8db695ef7af3:]
~ graph rollback due to exception (GraphTransactionInterceptor:167)
> java.lang.NullPointerException
> at org.apache.atlas.type.AtlasTypeRegistry.getType(AtlasTypeRegistry.java:94)
> at org.apache.atlas.repository.store.graph.v2.EntityGraphRetriever.mapAttributes(EntityGraphRetriever.java:608)
> at org.apache.atlas.repository.store.graph.v2.EntityGraphRetriever.mapVertexToAtlasEntity(EntityGraphRetriever.java:448)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
|