-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyword fields do not support like
queries
#351
Comments
What shows up in the logs? 403 is not one of registry-api errors. registry-api throws 400, 404, 406, and 500. It probably means it is coming from spring but need log message for it. I can run the query and look at the log if I had access. I think this requires special magic to get the logs from amazon after it is run and I do not have the privs. Run the query and get the full log from start of query to end so that we can see what is generating a 403. |
I wonder if opensearch is returning the 403. Now that would be weird but need the logs files from aws. |
Just in case it's slipped notice, that's a weird error - HTTP403 (Forbidden/Unauthorized), but the text states Bad request |
The other really odd bit is that it is generated by cloudfront -- did we add that to our errors to make it more confusing - and that we ask for JSON which our errors would be returned in that format. We catch nearly all exceptions and stuff in the controller transmutter, unless that changed, and looking there we cannot generate the 403. It looks like amazon likes eq in a url but not like. Ah, such fun. |
@al-niessner I don't recall any changes to exception handling and am 95% sure of that recollection. I'm more suspicious of the Let me test something real quick. |
I take that back - query |
@alexdunnjpl @jordanpadams @tloubrieu-jpl Again, this is not a problem with registry-api but is a problem before you get to registry-api. Need to look at the logs while it is failing or understand the message better (see cloudfront expert). I did notice from other ticket that this is using search-en so changed to search but got same error, When I run locally:
which means not registry-api code. |
The idea is to index the fields as |
like
queries not supported with logical operatorslike
queries
Checked for duplicates
Yes - I've already checked
🐛 Describe the bug
When I tried to perform a query
((x like "foo*") and (y eq "bar"))
, I noticed it throws a 403 error🕵️ Expected behavior
I expected the query to work successfully
📜 To Reproduce
This doesn't work:
This does:
🖥 Environment Info
Registry API 1.2
📚 Version of Software Used
No response
🩺 Test Data / Additional context
No response
🦄 Related requirements
No response
⚙️ Engineering Details
No response
The text was updated successfully, but these errors were encountered: