Skip to content
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

Not able to filter based on Date #13

Open
Mohammad04 opened this issue Sep 15, 2020 · 5 comments
Open

Not able to filter based on Date #13

Mohammad04 opened this issue Sep 15, 2020 · 5 comments

Comments

@Mohammad04
Copy link

Hi Team,

I am trying to use below filter:
GET v1/customers?where=createdAt:GT:'2017-06-12T11:57:00%2B00:00'

But i am getting error message as "A filter has too many argument or is malformed"

Please let me know what is the correct Format of Date ?

@zvonegit
Copy link
Contributor

Try with:

GET v1/customers?where=createdAt:GT:dt'2017-06-12T11:57:00%2B00:00'

@Mohammad04
Copy link
Author

@zvonegit : I tried the above suggestion. But it is also giving me the same error message.
I tried debugging the QueryStringBuilder class in buildFilter() method i am getting this error may be because of the (:) in time part of the above date.

Please let me know which format will work.

Can we use the above condition with filter as well ?

I tried the above condition with filter as well i was again getting the same error.

@osbeorn
Copy link
Member

osbeorn commented Sep 17, 2020

I've written a test to confirm your issue but the test passes without any error. I've also tried the same on an actual live service and it also works as intented.

Which version of the library are you using?

Also, filter is the same as where.

@Mohammad04
Copy link
Author

i am using kumuluzee-rest-core version 1.3.1 maven dependency.

@osbeorn
Copy link
Member

osbeorn commented Sep 17, 2020

Please provide the exact error message you are receiving (the whole message).
It would be helpful if you could also provide a minimal example for reproducing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants