[
https://issues.apache.org/jira/browse/UNOMI-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17611607#comment-17611607
]
Kevan Jahanshahi edited comment on UNOMI-485 at 9/30/22 2:06 PM:
-----------------------------------------------------------------
Sorry I could not reproduce the issue you are mentioning.
I tried the following request:
{code:java}
POST /cxs/profiles/search HTTP/1.1
Content-Length: 225
Content-Type: application/json
Host: localhost:8181
User-Agent: HTTPie
{
"condition": {
"type": "profilePropertyCondition",
"parameterValues": {
"propertyName": "properties.firstName",
"comparisonOperator": "invalidComparaisonOp",
"propertyValue": "michel"
}
}
} {code}
And I am correctly receiving this response from the server:
{code:java}
HTTP/1.1 500 Server Error
{
"errorMessage": "internalServerError"
} {code}
Could you please help us by providing more informations ?
* do you have an example of query we can use to reproduce ?
* is it happening on REST end point ? wich one ?
Thank you !
was (Author: jkevan):
Sorry I could not reproduce the issue you are mentioning.
I tried the following request:
{code:java}
POST /cxs/profiles/search HTTP/1.1
Content-Length: 225
Content-Type: application/json
Host: localhost:8181
User-Agent: HTTPie
{
"condition": {
"type": "profilePropertyCondition",
"parameterValues": {
"propertyName": "properties.firstName",
"comparisonOperator": "invalidComparaisonOp",
"propertyValue": "michel"
}
}
} {code}
And I am correctly receiving this response from the server:
{code:java}
HTTP/1.1 500 Server Error
{
"errorMessage": "internalServerError"
} {code}
Could you please help us by providing more informations ?
* do you have an example of query we can use to reproduce ?
* is it happening on REST end point ? witch one ?
Thank you !
> when searching for profiles with an invalid comparisonOperator all profiles
> are returned
> ----------------------------------------------------------------------------------------
>
> Key: UNOMI-485
> URL: https://issues.apache.org/jira/browse/UNOMI-485
> Project: Apache Unomi
> Issue Type: Bug
> Components: unomi(-core)
> Reporter: Sagy
> Assignee: Kevan Jahanshahi
> Priority: Major
> Fix For: unomi-2.0.1, unomi-1.6.2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When executing a search for profiles and providing an unrecognized
> comparisonOperator the expected behaviour would be for the request to fail
> but instead all profiles are returned.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)