You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2023/04/18 13:42:00 UTC

[jira] [Updated] (JCRVLT-698) allow primary nodetype updates that make the node more restrictive

     [ https://issues.apache.org/jira/browse/JCRVLT-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke updated JCRVLT-698:
----------------------------------
    Description: 
Currently, vault allows changing primary types - but this only works in practice when the content after import actually conforms to the new type definition. Thus, using a new type that is more restrictive may fail later on when the session is saved.

A new mode could allow removing or moving away child items that conflict with the new type definition, but this will likely need to be an opt-in.

Furhermore, this would require replicating node type internals from the JCR implementation - instead, we could also consider exposing more information from the JCR implementation, such as listing conflicting child nodes (throug an extension API).



  was:
Currently, vault allows changing primary types - but this only works in practive when the content after import actually conforms to the new type definition. Thus, using a new type that is more restrictive may fail later on when the session is saved.

A new mode could allow removing or moving away child items that conflict with the new type definition, but this will likely need to be an opt-in.

Furhermore, this would require replicating node type internals from the JCR implementation - instead, we could also consider exposing more information from the JCR implementation, such as listing conflicting child nodes (throug an extension API).




> allow primary nodetype updates that make the node more restrictive
> ------------------------------------------------------------------
>
>                 Key: JCRVLT-698
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-698
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: vlt
>            Reporter: Julian Reschke
>            Priority: Major
>
> Currently, vault allows changing primary types - but this only works in practice when the content after import actually conforms to the new type definition. Thus, using a new type that is more restrictive may fail later on when the session is saved.
> A new mode could allow removing or moving away child items that conflict with the new type definition, but this will likely need to be an opt-in.
> Furhermore, this would require replicating node type internals from the JCR implementation - instead, we could also consider exposing more information from the JCR implementation, such as listing conflicting child nodes (throug an extension API).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)