[ 
https://issues.apache.org/jira/browse/JCR-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045877#comment-13045877
 ] 

David Buchmann commented on JCR-2984:
-------------------------------------

the exception is misleading. afaik unregistering a namespace is not supported 
in jackrabbit at all anyways. 
http://www.mail-archive.com/[email protected]/msg17391.html

the exception could be more explicit though.

> JCR2SPI NamespaceRegistryImpl.unregisterNamespace passes prefix to storage 
> when uri is expected
> -----------------------------------------------------------------------------------------------
>
>                 Key: JCR-2984
>                 URL: https://issues.apache.org/jira/browse/JCR-2984
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi
>    Affects Versions: 2.2.5, 2.3.0
>            Reporter: Edouard Hue
>              Labels: namespaces
>
> When trying to unregister a namespace through SPI, Jackrabbit throws a 
> NamespaceException : <prefix>: is not a registered namespace uri.
> javax.jcr.NamespaceRegistry.unregisterNamespace(String prefix) expects the 
> namespace prefix. Though, 
> org.apache.jackrabbit.jcr2spi.NamespaceRegistryImpl.unregisterNamespace(String
>  prefix) calls directly 
> org.apache.jackrabbit.jcr2spi.NamespaceStorage.unregisterNamespace(String 
> uri), which expects the namespace uri.
> The namespace registry should first retrieve the uri for the provided prefix.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to