We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we send a request to /sql?mode=raw, we can send it in 2 ways: POST and GET.
/sql?mode=raw
When we send a POST request, it works well, and in the logs with Buddy, we can see that the daemon sends proper information.
curl "0:9308/sql?mode=raw" -d "query=show%20queries"
{"type":"unknown sql request","error":{"message":"P01: syntax error, unexpected identifier, expecting VARIABLES near 'queries'","body":{"error":"P01: syntax error, unexpected identifier, expecting VARIABLES near 'queries'"}},"version":3,"user":"","message":{"path_query":"/sql?mode=raw","body":"show queries","http_method":""}}
When we send it as a GET request, the request fails due to different daemon behavior.
curl "0:9308/sql?mode=raw&query=show%20queries"
{"type":"unknown sql request","error":{"message":"P01: syntax error, unexpected identifier, expecting VARIABLES near 'queries'","body":{"error":"P01: syntax error, unexpected identifier, expecting VARIABLES near 'queries'"}},"version":3,"user":"","message":{"path_query":"/sql?mode=raw&query=show querieses","body":"mode=raw&query=show queries","http_method":""}}
We expect that the daemon will send the same information in the GET method as it sends with POST.
Latest dev version
Ubuntu Jammy
None
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
The text was updated successfully, but these errors were encountered:
fixed HTTP query part of the URI parsed wrong; fixed #2840
d0642d2
15a08f1
I've just fixed the issue with wrong URI pass into buddy at 15a08f1
Now sure if the CLT test should be created
Sorry, something went wrong.
@PavelShilin89 let's validate it with new tests
PavelShilin89
No branches or pull requests
Bug Description:
When we send a request to
/sql?mode=raw
, we can send it in 2 ways: POST and GET.When we send a POST request, it works well, and in the logs with Buddy, we can see that the daemon sends proper information.
When we send it as a GET request, the request fails due to different daemon behavior.
We expect that the daemon will send the same information in the GET method as it sends with POST.
Manticore Search Version:
Latest dev version
Operating System Version:
Ubuntu Jammy
Have you tried the latest development version?
None
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
The text was updated successfully, but these errors were encountered: