Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
6fb7b82a
Commit
6fb7b82a
authored
Dec 05, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1305 Fix potential NPEs in instance conversion code(sumasai)
parent
c413975a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
release-log.txt
release-log.txt
+1
-0
EntityREST.java
...p/src/main/java/org/apache/atlas/web/rest/EntityREST.java
+1
-1
TypedefsJerseyResourceIT.java
.../apache/atlas/web/resources/TypedefsJerseyResourceIT.java
+1
-1
No files found.
release-log.txt
View file @
6fb7b82a
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ALL CHANGES:
ATLAS-1305 Fix potential NPEs in instance conversion code (sumasai)
ATLAS-1349 Reduce excessive exception logging (apoorvnaik via svimal2106)
ATLAS-1349 Reduce excessive exception logging (apoorvnaik via svimal2106)
ATLAS-1343 CTAS query is not captured by Atlas with Hive2 (svimal2106)
ATLAS-1343 CTAS query is not captured by Atlas with Hive2 (svimal2106)
ATLAS-1337 fixed FalconHookIT (ayubpathan via mneethiraj)
ATLAS-1337 fixed FalconHookIT (ayubpathan via mneethiraj)
...
...
webapp/src/main/java/org/apache/atlas/web/rest/EntityREST.java
View file @
6fb7b82a
...
@@ -393,7 +393,7 @@ public class EntityREST {
...
@@ -393,7 +393,7 @@ public class EntityREST {
*/
*/
private
void
validateUniqueAttribute
(
AtlasEntityType
entityType
,
String
attributeName
)
throws
AtlasBaseException
{
private
void
validateUniqueAttribute
(
AtlasEntityType
entityType
,
String
attributeName
)
throws
AtlasBaseException
{
AtlasStructDef
.
AtlasAttributeDef
attribute
=
entityType
.
getAttributeDef
(
attributeName
);
AtlasStructDef
.
AtlasAttributeDef
attribute
=
entityType
.
getAttributeDef
(
attributeName
);
if
(!
attribute
.
getIsUnique
())
{
if
(
attribute
!=
null
&&
!
attribute
.
getIsUnique
())
{
throw
new
AtlasBaseException
(
AtlasErrorCode
.
ATTRIBUTE_UNIQUE_INVALID
,
entityType
.
getTypeName
(),
attributeName
);
throw
new
AtlasBaseException
(
AtlasErrorCode
.
ATTRIBUTE_UNIQUE_INVALID
,
entityType
.
getTypeName
(),
attributeName
);
}
}
}
}
...
...
webapp/src/test/java/org/apache/atlas/web/resources/TypedefsJerseyResourceIT.java
View file @
6fb7b82a
...
@@ -337,7 +337,7 @@ public class TypedefsJerseyResourceIT extends BaseResourceIT {
...
@@ -337,7 +337,7 @@ public class TypedefsJerseyResourceIT extends BaseResourceIT {
}
else
if
(
typeDef
.
getCategory
()
==
TypeCategory
.
ENTITY
)
{
}
else
if
(
typeDef
.
getCategory
()
==
TypeCategory
.
ENTITY
)
{
byGuid
=
clientV2
.
getEntityByGuid
(
typeDef
.
getGuid
());
byGuid
=
clientV2
.
getEntityByGuid
(
typeDef
.
getGuid
());
}
else
if
(
typeDef
.
getCategory
()
==
TypeCategory
.
CLASSIFICATION
)
{
}
else
if
(
typeDef
.
getCategory
()
==
TypeCategory
.
CLASSIFICATION
)
{
byGuid
=
clientV2
.
getClassificationByGuid
(
typeDef
.
get
Name
());
byGuid
=
clientV2
.
getClassificationByGuid
(
typeDef
.
get
Guid
());
}
else
if
(
typeDef
.
getCategory
()
==
TypeCategory
.
STRUCT
)
{
}
else
if
(
typeDef
.
getCategory
()
==
TypeCategory
.
STRUCT
)
{
byGuid
=
clientV2
.
getStructByGuid
(
typeDef
.
getGuid
());
byGuid
=
clientV2
.
getStructByGuid
(
typeDef
.
getGuid
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment