umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.39k stars 2.66k forks source link

Unable to filter createDate on Content Delivery API #15648

Open tmutero opened 7 months ago

tmutero commented 7 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

Umbraco version 12.3.6

Bug summary

Umbraco version 12.3.6 failing to filter createDate given on the document below

https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api

Specifics

Here is url tested https://localhost:44375/umbraco/delivery/api/v1/content?filter=createDate:>2025-01-01&filter=createDate<2025-01-01

Error response { "type": "Error", "title": "Filter option not found", "status": 400, "detail": "One of the attempted 'filter' options does not exist" }

Steps to reproduce

image

Expected result / actual result

It should filter date ranges added

github-actions[bot] commented 7 months ago

Hi there @tmutero!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

Migaroez commented 7 months ago

hey @tmutero I tried building your query trough the swagger docs and I noticed it html encoded some characters

https://localhost:44375/umbraco/delivery/api/v1/content?filter=createDate%3A%3E2025-01-01&filter=createDate%3C2025-01-01

Could you give that a try?

tmutero commented 7 months ago

Same issue @Migaroez . It is not working as expected.

Migaroez commented 7 months ago

I am going to need some more information then as I can not reproduce this. Could you make a small project with a sqlLite db and make it available somewhere as a zip?