[ 
https://issues.apache.org/jira/browse/JCR-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Dürig closed JCR-1658.
------------------------------


> Executing query throws 
> UnsupportedRepositoryOperationException(LEVEL_2_SUPPORTED) for a level 1 only 
> implementation 
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-1658
>                 URL: https://issues.apache.org/jira/browse/JCR-1658
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi
>            Reporter: Michael Dürig
>             Fix For: 1.5
>
>
> Executing a query  throws 
> UnsupportedRepositoryOperationException(LEVEL_2_SUPPORTED) it the spi 
> implementation is not level 2. This is because 
> org.apache.jackrabbit.jcr2spi.query.execute() calls session.getValueFactory() 
> which - by contract - throws if level 2 is not supported. A quick fix would 
> be to call getJcrValueFactory() (available from the ManagerProvider interface 
> implemented by SessionImpl) instead of getValueFactory(). However, I think a 
> better fix might be to pass the ManagerProvider to the QueryImpl constructor 
> instead of the session, all the managers and providers separately.

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

Reply via email to