Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4849

Find document feature crashes on non standard date format

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 1.26.1, 1.28.1
    • None
    • None
    • Ubuntu 20.04
    • 5

    Description

      Problem Description

      In the find document section one can type queries like this:

      {delayed_until: new Date("2021-05-25T14:49:29.002Z")}

      This works fine. However, if the format is malformed, the search query can no longer be entered:

      {delayed_until: new Date("202105-25T14:49:29.002Z")} 

      The application inserts a newline instead of running the query once `enter` is hit. Clicking the FIND button works but it is not doing anything.

      Expected Results

      An error should be show that the format is malformed and the FIND button should be disabled.

      Attachments

        Activity

          People

            Unassigned Unassigned
            liara.schaefer@perseus.de Liara Schäfer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: