Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1055

Query verification is too stringent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.4.0.Final, 2.2.1.GA
    • 2.3.0.Final
    • JCR, Query
    • None

    Description

      executing select * from nt:base where jcr:path like '/demo-project/%' AND (mgnl:template = 'stkEvent')
      results in

      javax.jcr.RepositoryException: Column 'mgnl:template' does not exist on the table 'nt:base'
      	at org.modeshape.jcr.query.qom.JcrAbstractQuery.checkForProblems(JcrAbstractQuery.java:133)
      	at org.modeshape.jcr.query.JcrQuery.execute(JcrQuery.java:104)
      

      It is true that nt:base doesn't explicitly define such property, however since it doesn't restrict it's existence any of the node types based on nt:base can do so and therefore this query should be valid and JCR implementation should search through all the nodes based on the nt:base for those that define the property and have search value.

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch (Inactive)
              jan.haderka@magnolia-cms.com Jan Haderka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: