[ 
https://issues.apache.org/jira/browse/ATLAS-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dharshana M Krishnamoorthy updated ATLAS-4559:
----------------------------------------------
    Summary: Basic search with GET method gives incorrect result when single 
quote is used in the query  (was: Basic search with GET api gives incorrect 
result when single quote is used in the query)

> Basic search with GET method gives incorrect result when single quote is used 
> in the query
> ------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-4559
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4559
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Dharshana M Krishnamoorthy
>            Priority: Major
>         Attachments: image-2022-02-25-15-28-27-518.png, 
> image-2022-02-25-15-30-31-001.png
>
>
> Query: 
> [https://quasar-tiuhte-1.quasar-tiuhte.root.hwx.site:31443/api/atlas/v2/search/basic?typeName=hive_table&query=qualifiedName='default.avbzi_random_table@cm'|https://quasar-tiuhte-1.quasar-tiuhte.root.hwx.site:31443/api/atlas/v2/search/basic?typeName=hive_table&query=qualifiedName=%27default.avbzi_random_table@cm%27]
> Results:
> {code:java}
> {queryType: "BASIC",…}approximateCount: 22entities: [{typeName: 
> "hive_table",…}, {typeName: "hive_table",…},…]queryText: 
> "qualifiedName='default.avbzi_random_table@cm'"queryType: 
> "BASIC"searchParameters: {query: 
> "qualifiedName='default.avbzi_random_table@cm'", typeName: "hive_table",…} 
> {code}
> !image-2022-02-25-15-30-31-001.png|width=1189,height=370!
> But when double quotes is used it gives the right output:
> Query:
> https://quasar-tiuhte-1.quasar-tiuhte.root.hwx.site:31443/api/atlas/v2/search/basic?typeName=hive_table&query=qualifiedName="default.avbzi_random_table@cm";
> {code:java}
> {queryType: "BASIC",…}approximateCount: 1entities: [{typeName: 
> "hive_table",…}]queryText: 
> "qualifiedName=\"default.avbzi_random_table@cm\""queryType: 
> "BASIC"searchParameters: {query: 
> "qualifiedName="default.avbzi_random_table@cm"", typeName: "hive_table",…} 
> {code}
> !image-2022-02-25-15-28-27-518.png|width=869,height=284!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to