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

JQOM doesn't support expanded names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.1.0.Final
    • 3.8.0.Final, 4.0.0.Final
    • Query
    • None
    • Hide

      1. Create a JQOM query with expanded name passed to selector:
      qomFactory.selector(javax.jcr.NodeType.NT_UNSTRUCTURED, "selectorName");
      2. Try to execute a query with this selector.

      Show
      1. Create a JQOM query with expanded name passed to selector: qomFactory.selector(javax.jcr.NodeType.NT_UNSTRUCTURED, "selectorName"); 2. Try to execute a query with this selector.

    Description

      JQOM doesn't support expanded names. According to specification point 3.2.6 both expanded and qualified names should be supported whenever a name is passed to JCR method.

      Relevant part of stacktrace:

      Caused by: javax.jcr.query.InvalidQueryException: Table '{http://www.jcp.org/jcr/nt/1.0}unstructured' does not exist.
      Table 'parent' does not exist.
      Table 'parent' does not exist.
      Column '{http://www.jcp.org/jcr/1.0}primaryType' does not exist on the table 'npe'
      
      	at org.modeshape.jcr.query.JcrAbstractQuery.checkForProblems(JcrAbstractQuery.java:109)
      	at org.modeshape.jcr.query.JcrQuery.execute(JcrQuery.java:123)
      	at org.modeshape.jcr.query.JcrQuery.execute(JcrQuery.java:43)
      	at de.tesis.dynaware.argon.server.application.data.jcr.service.NodeLoadHandler.loadFromPrivateSpace(NodeLoadHandler.java:227)
      	... 64 more
      

      Attachments

        Issue Links

          Activity

            People

              hchiorean Horia Chiorean (Inactive)
              rstachowiak_jira Radosław Stachowiak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: