[
https://issues.apache.org/jira/browse/JCR-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Guggisberg resolved JCR-2501.
------------------------------------
Resolution: Invalid
the Repository.QUERY_LANGUAGES descriptor value is defined as an array of
strings.
the descriptor should therefore be queried with the following method:
Value[] Repository#getDescriptorValues(String key);
Repository.getDescriptor and Repository.getDescriptorValue OTOH always return
null for multi-value descriptors.
for more information, please see the jcr 2.0 spec:
- 24.2 Reposiotory Descriptors
- 24.2.5 Query
> Repository descriptor returns null for QUERY_LANGUAGES
> ------------------------------------------------------
>
> Key: JCR-2501
> URL: https://issues.apache.org/jira/browse/JCR-2501
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: query
> Affects Versions: 2.0.0
> Environment: Debian
> Reporter: chad davis
>
> Using the repository descriptor table to check support for query languages, I
> get a null. Here's the code.
> session.getRepository().getDescriptor(Repository.QUERY_LANGUAGES )
> BUT, if I use the queryManager's getter, seen below, I see that the repo does
> indeed support the 4 languages, as it should.
> queryManager.getSupportedQueryLanguages();
> Seems like a simple bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.