[
https://issues.apache.org/jira/browse/ATLAS-5005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948081#comment-17948081
]
ASF subversion and git services commented on ATLAS-5005:
--------------------------------------------------------
Commit bedcb37a5bc24a724ef0342c93a8ab5257282445 in atlas's branch
refs/heads/dependabot/npm_and_yarn/docs/multi-3350f7ad46 from Aditya Gupta
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=bedcb37a5 ]
ATLAS-5005 : Basic search entity filter validation (#333)
> Basic search entity filter validation
> -------------------------------------
>
> Key: ATLAS-5005
> URL: https://issues.apache.org/jira/browse/ATLAS-5005
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Reporter: Paresh Devalia
> Assignee: Aditya Gupta
> Priority: Major
> Time Spent: 4h
> Remaining Estimate: 0h
>
> When performing a basic search via the Atlas API, the filter with an invalid
> operator (e.g., {{{}"operator": "paresh"{}}}) results in returning all
> entities, instead of applying the filter correctly. In the Atlas UI, however,
> the filtering works as expected.
> h3. Steps to Reproduce:
> # Send a POST request to the {{/api/atlas/v2/search/basic}} endpoint with
> the following payload
> {code:java}
> {
> "excludeDeletedEntities": true,
> "includeSubClassifications": true,
> "includeSubTypes": true,
> "includeClassificationAttributes": true,
> "entityFilters": {
> "condition": "AND",
> "criterion": [
> {
> "attributeName": "name",
> "operator": "paresh",
> "attributeValue": "paresh7"
> }
> ]
> },
> "tagFilters": null,
> "attributes": [],
> "limit": 25,
> "offset": 0,
> "typeName": "hive_table",
> "classification": null,
> "termName": null
> }
> {code}
> 2. Observe that all entities are returned, rather than filtering based
> on the operator provided.
> h3. Expected Behavior:
> * The API should correctly filter entities based on the valid operators
> specified by Atlas (e.g., {{{}={}}}, {{{}!={}}}, {{{}contains{}}},
> {{{}begin_with{}}}, {{{}ends_with{}}}, {{{}is_null{}}}, {{{}not_null{}}}).
> * The filter should only return entities that match the criteria specified
> in the request.
> * Need to validate "{color:#172b4d}condition{color}" paramter in
> FilterCriteria
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)