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

Allow NXQL query with prefix on a complex property schema defined without prefix

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.7.3
    • Component/s: Core VCS

      Description

      With some fields, if we write a where clause using the schema prefix, for example with

      SELECT * FROM Document WHERE file:content/length > 10
      

      we end up with an exception:

      Exception: org.nuxeo.ecm.core.storage.sql.jdbc.QueryMaker$QueryMakerException.
       message: No such property file:content/length
      

      whereas this query will be correct

      SELECT * FROM Document WHERE content/length > 10
      

      This problem seems to happen at least with "file" and "files" schema.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.