[
https://issues.apache.org/jira/browse/ATLAS-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Madhan Neethiraj resolved ATLAS-1615.
-------------------------------------
Resolution: Not A Problem
Fix Version/s: (was: 0.8-incubating)
(was: trunk)
Per documentation at https://help.ubuntu.com/community/Locale, following
environment variables should be set for Ubuntu:
{code}
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
{code}
> Regression: UTF8 characters are not handled properly
> ----------------------------------------------------
>
> Key: ATLAS-1615
> URL: https://issues.apache.org/jira/browse/ATLAS-1615
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: trunk, 0.8-incubating
> Reporter: Ayub Khan
> Priority: Blocker
>
> *When UTF8 characters are used in the entity definition, the GET response for
> that entity contains extra characters resulting in test failure. 4 tests are
> affected due to this.*
> *HDP: 2.6.0.0-571*
> {noformat}
> 2017-03-01 09:19:04,780 INFO - [main:] ~ Testing going to start for:
> org.apache.atlas.regression.tests.EntityResourceTest.createEntityValidValues([namewithutf])
> (TestNGListener:44)
> 2017-03-01 09:19:04,782 INFO - [main:createEntityValidValues] ~ Request Url:
> http://ctr-e129-1487033772569-30322-01-000005.hwx.site:21000/api/atlas/entities?user.name=hrt_qa
> (BaseRequest:165)
> 2017-03-01 09:19:04,782 INFO - [main:createEntityValidValues] ~ Request
> Method: POST (BaseRequest:166)
> 2017-03-01 09:19:04,782 INFO - [main:createEntityValidValues] ~ Request
> Header: Name=Content-Type Value=application/json; charset=UTF-8
> (BaseRequest:169)
> 2017-03-01 09:19:04,782 INFO - [main:createEntityValidValues] ~ Request
> Header: Name=Authorization Value=Basic YWRtaW46YWRtaW4= (BaseRequest:169)
> 2017-03-01 09:19:04,831 INFO - [main:createEntityValidValues] ~ Response
> Status: HTTP/1.1 201 Created (BaseRequest:196)
> 2017-03-01 09:19:04,831 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Date Value=Wed, 01 Mar 2017 09:19:04 GMT (BaseRequest:198)
> 2017-03-01 09:19:04,831 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Set-Cookie
> Value=ATLASSESSIONID=151oawneky5y68lo7ebvyrukk;Path=/;HttpOnly
> (BaseRequest:198)
> 2017-03-01 09:19:04,831 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Expires Value=Thu, 01 Jan 1970 00:00:00 GMT (BaseRequest:198)
> 2017-03-01 09:19:04,832 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=X-Frame-Options Value=DENY (BaseRequest:198)
> 2017-03-01 09:19:04,832 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Location
> Value=http://ctr-e129-1487033772569-30322-01-000005.hwx.site:21000/api/atlas/entities/e5ccb8e8-c442-4650-a572-d0b3bd41014c
> (BaseRequest:198)2017-03-01 09:19:04,832 INFO -
> [main:createEntityValidValues] ~ Response Header: Name=Content-Type
> Value=application/json; charset=UTF-8 (BaseRequest:198)
> 2017-03-01 09:19:04,832 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Transfer-Encoding Value=chunked (BaseRequest:198)
> 2017-03-01 09:19:04,832 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:198)
> 2017-03-01 09:19:04,832 INFO - [main:createEntityValidValues] ~ Response is:
> {"requestId":"pool-2-thread-10 -
> fdd09295-71ba-4876-b9c3-a2005529c5bf","entities":{"created":["e5ccb8e8-c442-4650-a572-d0b3bd41014c"]},"definition":{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference","id":{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id","id":"e5ccb8e8-c442-4650-a572-d0b3bd41014c","version":0,"typeName":"TypeForEntityTestse62vuwh3xz","state":"ACTIVE"},"typeName":"TypeForEntityTestse62vuwh3xz","values":{"name":"UTF8Chars?????????
> ????????? ????????? ????????? ????????? ????????? ?????????
> ?????????","collection":["collectionValue1","collectionValue2"],"float":5.5,"short":9,"set":["setValue1","setValue2"],"optional":null,"double":4.5,"long":7,"biginteger":2,"boolean":false,"date":"2017-03-01T09:19:02.769Z","bigdecimal":1.4,"int":6,"byte":3},"traitNames":[],"traits":{},"systemAttributes":{"createdBy":"admin","modifiedBy":"admin","createdTime":"2017-03-01T09:19:04.784Z","modifiedTime":"2017-03-01T09:19:04.784Z"}},"guidAssignments":{"-17482895987711097":"e5ccb8e8-c442-4650-a572-d0b3bd41014c"}}
> (EntityResourceTest:385)
> 2017-03-01 09:19:04,833 INFO - [main:createEntityValidValues] ~ Request Url:
> http://ctr-e129-1487033772569-30322-01-000005.hwx.site:21000/api/atlas/entities/e5ccb8e8-c442-4650-a572-d0b3bd41014c/audit?user.name=hrt_qa
> (BaseRequest:165)
> 2017-03-01 09:19:04,833 INFO - [main:createEntityValidValues] ~ Request
> Method: GET (BaseRequest:166)
> 2017-03-01 09:19:04,833 INFO - [main:createEntityValidValues] ~ Request
> Header: Name=Authorization Value=Basic YWRtaW46YWRtaW4= (BaseRequest:169)
> 2017-03-01 09:19:04,842 INFO - [main:createEntityValidValues] ~ Response
> Status: HTTP/1.1 200 OK (BaseRequest:196)
> 2017-03-01 09:19:04,842 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Date Value=Wed, 01 Mar 2017 09:19:04 GMT (BaseRequest:198)
> 2017-03-01 09:19:04,842 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Set-Cookie
> Value=ATLASSESSIONID=1r9arac9wx1n21atuo740cg1g7;Path=/;HttpOnly
> (BaseRequest:198)
> 2017-03-01 09:19:04,843 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Expires Value=Thu, 01 Jan 1970 00:00:00 GMT (BaseRequest:198)
> 2017-03-01 09:19:04,843 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=X-Frame-Options Value=DENY (BaseRequest:198)
> 2017-03-01 09:19:04,843 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Content-Type Value=application/json; charset=UTF-8
> (BaseRequest:198)
> 2017-03-01 09:19:04,843 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Transfer-Encoding Value=chunked (BaseRequest:198)
> 2017-03-01 09:19:04,843 INFO - [main:createEntityValidValues] ~ Response
> Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:198)
> Query done.Returning
> 2017-03-01 09:19:04,846 ERROR - [main:createEntityValidValues] ~
> java.lang.AssertionError: The following asserts failed:
> name value mismatch expected [UTF8Chars??? ??? ??? ??? ??? ??? ??? ???] but
> found [UTF8Chars????????? ????????? ????????? ????????? ????????? ?????????
> ????????? ?????????]
> at org.testng.asserts.SoftAssert.assertAll(SoftAssert.java:38)
> at
> org.apache.atlas.regression.tests.EntityResourceTest.createEntityValidValues(EntityResourceTest.java:406)
> at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:659)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:845)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1153)
> at
> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
> at org.testng.TestRunner.privateRun(TestRunner.java:771)
> at org.testng.TestRunner.run(TestRunner.java:621)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)