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
177011cf
Commit
177011cf
authored
Nov 01, 2015
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-208 Remove n characters in the REST API json response (patel_satya via shwethags)
parent
92490b9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
release-log.txt
release-log.txt
+1
-0
EntityResource.java
...n/java/org/apache/atlas/web/resources/EntityResource.java
+3
-3
TypesResource.java
...in/java/org/apache/atlas/web/resources/TypesResource.java
+1
-1
No files found.
release-log.txt
View file @
177011cf
...
...
@@ -4,6 +4,7 @@ Apache Atlas Release Notes
--trunk - unreleased
INCOMPATIBLE CHANGES:
ATLAS-208 Remove "\n" characters in the REST API json response (patel_satya via shwethags)
ATLAS-58 Make hive hook reliable (shwethags)
ATLAS-54 Rename configs in hive hook (shwethags)
ATLAS-3 Mixed Index creation fails with Date types (sumasai via shwethags)
...
...
webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java
View file @
177011cf
...
...
@@ -118,7 +118,7 @@ public class EntityResource {
JSONObject
response
=
new
JSONObject
();
response
.
put
(
AtlasClient
.
REQUEST_ID
,
Servlets
.
getRequestId
());
response
.
put
(
AtlasClient
.
GUID
,
new
JSONArray
(
guids
));
response
.
put
(
AtlasClient
.
DEFINITION
,
metadataService
.
getEntityDefinition
(
new
JSONArray
(
guids
).
getString
(
0
)));
response
.
put
(
AtlasClient
.
DEFINITION
,
new
JSONObject
(
metadataService
.
getEntityDefinition
(
new
JSONArray
(
guids
).
getString
(
0
)
)));
return
Response
.
created
(
locationURI
).
entity
(
response
).
build
();
...
...
@@ -157,7 +157,7 @@ public class EntityResource {
Response
.
Status
status
=
Response
.
Status
.
NOT_FOUND
;
if
(
entityDefinition
!=
null
)
{
response
.
put
(
AtlasClient
.
DEFINITION
,
entityDefinition
);
response
.
put
(
AtlasClient
.
DEFINITION
,
new
JSONObject
(
entityDefinition
)
);
status
=
Response
.
Status
.
OK
;
}
else
{
response
.
put
(
AtlasClient
.
ERROR
,
...
...
@@ -244,7 +244,7 @@ public class EntityResource {
Response
.
Status
status
=
Response
.
Status
.
NOT_FOUND
;
if
(
entityDefinition
!=
null
)
{
response
.
put
(
AtlasClient
.
DEFINITION
,
entityDefinition
);
response
.
put
(
AtlasClient
.
DEFINITION
,
new
JSONObject
(
entityDefinition
)
);
status
=
Response
.
Status
.
OK
;
}
else
{
response
.
put
(
AtlasClient
.
ERROR
,
Servlets
.
escapeJsonString
(
String
.
format
(
"An entity with type={%s}, "
+
...
...
webapp/src/main/java/org/apache/atlas/web/resources/TypesResource.java
View file @
177011cf
...
...
@@ -123,7 +123,7 @@ public class TypesResource {
JSONObject
response
=
new
JSONObject
();
response
.
put
(
AtlasClient
.
TYPENAME
,
typeName
);
response
.
put
(
AtlasClient
.
DEFINITION
,
typeDefinition
);
response
.
put
(
AtlasClient
.
DEFINITION
,
new
JSONObject
(
typeDefinition
)
);
response
.
put
(
AtlasClient
.
REQUEST_ID
,
Servlets
.
getRequestId
());
return
Response
.
ok
(
response
).
build
();
...
...
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