jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edouard Hue (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-2984) JCR2SPI NamespaceRegistryImpl.unregisterNamespace passes prefix to storage when uri is expected
Date Wed, 08 Jun 2011 09:29:59 GMT
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


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

Mime
View raw message