[
https://issues.apache.org/jira/browse/JCR-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045887#comment-13045887
]
Michael Dürig commented on JCR-2984:
------------------------------------
While Jackrabbit core might not support unregistering namespaces, jcr2spi
should do so.
>From the call sequence of calls described this seems to be a bug.
> 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