[
https://issues.apache.org/jira/browse/ATLAS-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sharmadha Sainath updated ATLAS-2164:
-------------------------------------
Description:
1.Created and saved 2 searches - one basic , one Advanced.
Following is the response of /api/atlas/v2/search/saved :
{code}
[
{
"guid":"153e89bb-eabb-4cc6-9cda-07c7ed084bac",
"ownerName":"admin",
"name":"basic_search1",
"searchType":"BASIC",
"searchParameters":{
"query":"default",
"typeName":"Asset",
"classification":"tag3",
"excludeDeletedEntities":true,
"limit":0,
"offset":0
}
},
{
"guid":"19be50af-bba1-424f-80e1-c49681b2bdeb",
"ownerName":"admin",
"name":"dsl_search_1",
"searchType":"ADVANCED",
"searchParameters":{
"query":"where name=\"h1\"",
"typeName":"hdfs_path",
"excludeDeletedEntities":true,
"limit":0,
"offset":0
}
}
]
{code}
2.Fired the following to execute basic saved query using its GUID:
{code}
http://localhost:21000/api/atlas/v2/search/saved/execute/153e89bb-eabb-4cc6-9cda-07c7ed084bac
{code}
Response :
{code}
{
errorCode: "ATLAS-404-00-009",
errorMessage: "Instance __AtlasUserSavedSearch with unique attribute
{uniqueName=admin:153e89bb-eabb-4cc6-9cda-07c7ed084bac:BASIC} does not exist"
}
{code}
Note : Logged in as admin while executing the "execute" query.
was:
1.Created and saved 2 searches - one basic , one Advanced.
Following is the response of /api/atlas/v2/search/saved :
{code}
[
{
"guid":"153e89bb-eabb-4cc6-9cda-07c7ed084bac",
"ownerName":"admin",
"name":"basic_search1",
"searchType":"BASIC",
"searchParameters":{
"query":"default",
"typeName":"Asset",
"classification":"tag3",
"excludeDeletedEntities":true,
"limit":0,
"offset":0
}
},
{
"guid":"19be50af-bba1-424f-80e1-c49681b2bdeb",
"ownerName":"admin",
"name":"dsl_search_1",
"searchType":"ADVANCED",
"searchParameters":{
"query":"where name=\"h1\"",
"typeName":"hdfs_path",
"excludeDeletedEntities":true,
"limit":0,
"offset":0
}
}
]
{code}
2.Fired the following to execute basic saved query using its GUID:
{code}
http://localhost:21000/api/atlas/v2/search/saved/execute/153e89bb-eabb-4cc6-9cda-07c7ed084bac
{code}
Response :
{code}
{
errorCode: "ATLAS-404-00-009",
errorMessage: "Instance __AtlasUserSavedSearch with unique attribute
{uniqueName=admin:153e89bb-eabb-4cc6-9cda-07c7ed084bac:BASIC} does not exist"
}
{code}
> Unable to execute the saved search query using its GUID
> -------------------------------------------------------
>
> Key: ATLAS-2164
> URL: https://issues.apache.org/jira/browse/ATLAS-2164
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 0.9.1
> Reporter: Sharmadha Sainath
> Priority: Critical
>
> 1.Created and saved 2 searches - one basic , one Advanced.
> Following is the response of /api/atlas/v2/search/saved :
> {code}
> [
> {
> "guid":"153e89bb-eabb-4cc6-9cda-07c7ed084bac",
> "ownerName":"admin",
> "name":"basic_search1",
> "searchType":"BASIC",
> "searchParameters":{
> "query":"default",
> "typeName":"Asset",
> "classification":"tag3",
> "excludeDeletedEntities":true,
> "limit":0,
> "offset":0
> }
> },
> {
> "guid":"19be50af-bba1-424f-80e1-c49681b2bdeb",
> "ownerName":"admin",
> "name":"dsl_search_1",
> "searchType":"ADVANCED",
> "searchParameters":{
> "query":"where name=\"h1\"",
> "typeName":"hdfs_path",
> "excludeDeletedEntities":true,
> "limit":0,
> "offset":0
> }
> }
> ]
> {code}
> 2.Fired the following to execute basic saved query using its GUID:
> {code}
> http://localhost:21000/api/atlas/v2/search/saved/execute/153e89bb-eabb-4cc6-9cda-07c7ed084bac
> {code}
> Response :
> {code}
> {
> errorCode: "ATLAS-404-00-009",
> errorMessage: "Instance __AtlasUserSavedSearch with unique attribute
> {uniqueName=admin:153e89bb-eabb-4cc6-9cda-07c7ed084bac:BASIC} does not exist"
> }
> {code}
> Note : Logged in as admin while executing the "execute" query.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)