Uploaded image for project: 'cql2pgjson'
  1. cql2pgjson
  2. CQLPG-1

Incorrect diagnostic for unrecognised indexes

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • Core: Platform

    Description

      When a query like materialType="1a54b431-2e4f-452d-9cae-9cee66c9a892" sortby title is submitted to mod-inventory, the query is rejected with a diagnostic:

      CQL State Error for 'materialType="1a54b431-2e4f-452d-9cae-9cee66c9a892" sortby title': org.z3950.zing.cql.cql2pgjson.QueryValidationException: cql.serverChoice requested, but no serverChoiceIndexes defined.

      This message is incorrect. Instead, the specific invalid index should be named in a message along the lines of "invalid index 'materialType'".

      In CQL, there are two ways to use the cql.serverChoice index: explicitly, of course (as in a query like cql.serverChoice=water) and implicitly by including a query term with no index specified (as in a query like water). Since the queries in this example contain no terms that are not directly associated with an index, cql.serverChoice should not come into play at all.

      (This issue came up in connection with, but is distinct from, UIIT-50.)

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mike Mike Taylor
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour
                    1h

                    TestRail: Runs

                      TestRail: Cases