-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error when enter none existing filed name in filtering #3
Comments
This is an issue. I think if we can catch the Doctrine exception and modify the error as part of laminas-api-tools/api-tools-doctrine that's a good solution. |
TomHAnderson
added a commit
to TomHAnderson/api-tools-doctrine
that referenced
this issue
Mar 7, 2020
TomHAnderson
added a commit
to TomHAnderson/api-tools-doctrine
that referenced
this issue
Mar 7, 2020
TomHAnderson
added a commit
to TomHAnderson/api-tools-doctrine
that referenced
this issue
Mar 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
I am using your moduel and first of all I must say that it is great. Today I encountered situation that I cannot handle so please direct me the right way, if it is a bug or just my lack of knowlage. I am using ZF3 with:
The reason why I am doing this is that my app has a API module but most of it has normal UI. When I try to filter like this:
domain.com/api/transaction?filter[0][type]=eq&filter[0][field]=name&filter[0][value]=test
Everything is fine. But when I try to do something like this:
domain.com/api/transaction?filter[0][type]=eq&filter[0][field]=fdsafdsafds&filter[0][value]=test
I get this message:
Which is 100% true, but I would like to hide application information like namespaces etc and not show them to the world. Also when I try this:
domain.com/api/transaction?filter[0][type]=eq&filter[0][fieldName]=fdsafdsafds&filter[0][value]=test
I get this message:
Which is also not very nice from secutiry point of view. I red your documentation and crawled the code and I cannot find a solution how to change the output when someone will try to break my application adding incorrect URL params. Thank you.
Originally posted by @dominikhalvonik at zfcampus/zf-doctrine-querybuilder#49
The text was updated successfully, but these errors were encountered: