You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Korat (JIRA)" <ji...@apache.org> on 2007/08/22 15:58:33 UTC

[jira] Created: (JCR-1075) Error with predicate in query with multiple jcr:deref()

Error with predicate in query with multiple jcr:deref()
-------------------------------------------------------

                 Key: JCR-1075
                 URL: https://issues.apache.org/jira/browse/JCR-1075
             Project: Jackrabbit
          Issue Type: Bug
          Components: query
    Affects Versions: 1.3.1
            Reporter: Michael Korat


Using multiple jcr:deref() in a query that ends with jcr:deref() followed by a predicate always returns an empty result. 

Here are some example queries to clarify the scope of the problem:

Empty result:
//jcr:deref()//jcr:deref()[jcr:contains(.,'someValue')]
//jcr:deref()//jdcr:deref()[@prop='someValue']

Right result:
//jcr:deref()[jcr:contains(.,'someValue')]
//jcr:deref()//jcr:deref()/element(*, nt:base)[jcr:contains(.,'someValue'] 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-1075) Error with predicate in query with multiple jcr:deref()

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger resolved JCR-1075.
-----------------------------------

    Resolution: Duplicate

Resolving as duplicate.

> Error with predicate in query with multiple jcr:deref()
> -------------------------------------------------------
>
>                 Key: JCR-1075
>                 URL: https://issues.apache.org/jira/browse/JCR-1075
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.3.1
>            Reporter: Michael Korat
>
> Using multiple jcr:deref() in a query that ends with jcr:deref() followed by a predicate always returns an empty result. 
> Here are some example queries to clarify the scope of the problem:
> Empty result:
> //jcr:deref()//jcr:deref()[jcr:contains(.,'someValue')]
> //jcr:deref()//jdcr:deref()[@prop='someValue']
> Right result:
> //jcr:deref()[jcr:contains(.,'someValue')]
> //jcr:deref()//jcr:deref()/element(*, nt:base)[jcr:contains(.,'someValue'] 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.