Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32056

Fix exact date query against Oracle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 2021.0
    • Fix Version/s: None
    • Component/s: Core VCS

      Description

      Steps to reproduce:

      1. add this line to nuxeo.conf
        JAVA_OPTS=$JAVA_OPTS -Duser.timezone="Europe/Paris"
      2. configure Nuxeo to use an Oracle database
      3. remove nxql_search from the ES page providers
      4. start nuxeo
      5. create a Note document
      6. edit the Note and set the "expired" field to July, 14 2023
      7. go to the NXQL search
      8. try this query
        select * from Note where dc:expired = DATE '2023-07-14'
      9. observe that no result is returned

       Expected result : the Note document is returned (this is the behavior in LTS 2029)

      The problem is caused by the changes brought by NXP-26517 where the date literal is parsed by a formatter which converts the time based on the server local time

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: