[
https://issues.apache.org/jira/browse/JCRVLT-602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated JCRVLT-602:
-----------------------------------
Description:
Currently the
[JcrNodeTypeInstaller|https://github.com/apache/jackrabbit-filevault/blob/5489b1f13e38f92a737fdb87a3b3dba860136c22/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/spi/impl/jcr20/JcrNodeTypeInstaller.java#L63]
does not fail in case
# a node type with the same name is already installed but differs in its
definition
# a namespace mapping towards a URI is already defined with a different prefix
As both situations usually lead to errors (sometimes only visible after package
installation) the package installation should fail in those cases.
was:
Currently the
[JcrNodeTypeInstaller|https://github.com/apache/jackrabbit-filevault/blob/5489b1f13e38f92a737fdb87a3b3dba860136c22/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/spi/impl/jcr20/JcrNodeTypeInstaller.java#L63]
does not fail in case
#. a node type with the same name is already installed but differs in its
definition
#. a namespace mapping towards a URI is already defined with a different prefix
As both situations usually lead to errors (sometimes only visible after package
installation) the package installation should fail in those cases.
> Optionally fail installation with conflicting nodetypes or namespaces
> ---------------------------------------------------------------------
>
> Key: JCRVLT-602
> URL: https://issues.apache.org/jira/browse/JCRVLT-602
> Project: Jackrabbit FileVault
> Issue Type: Improvement
> Reporter: Konrad Windszus
> Priority: Major
>
> Currently the
> [JcrNodeTypeInstaller|https://github.com/apache/jackrabbit-filevault/blob/5489b1f13e38f92a737fdb87a3b3dba860136c22/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/spi/impl/jcr20/JcrNodeTypeInstaller.java#L63]
> does not fail in case
> # a node type with the same name is already installed but differs in its
> definition
> # a namespace mapping towards a URI is already defined with a different prefix
> As both situations usually lead to errors (sometimes only visible after
> package installation) the package installation should fail in those cases.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)