tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

AbstractAlfrescoEmbQueryImpl - TO date is always inclusive #87

Open jharkins2 opened 6 years ago

jharkins2 commented 6 years ago

When running a query in AbstractAlfrescoEmbQueryImpl, the TO date is always made to be inclusive. If you pass the following as a date range: 03-03-2018T00:00:00.000 To 03-05-2018T00:00:00.000 The to date is change to 03-05-2018T23:59:00.000 So the date is always made inclusive.

This occurs for FTS and CMIS queries.

gsteimer commented 6 years ago

This is due to how the From/To date controls work from OCMS. I'm guessing the fix for this is to move the logic to change the TO date to be inclusive to the OCMS side vs. OC services.

jharkins2 commented 6 years ago

I did a quick check before, and it looks like OCMS already has the logic. If I do a date range search on 03-03-2018 To 03-05-2018, it will actually send over 03-03-2018T00:00:00.000 To 03-05-2018T23:59:59.999. So maybe we don't need the OC services logic?