[jira] [Commented] (JCRVLT-733) Allow to enforce ancestor primary and mixin type

2023-11-24 Thread Konrad Windszus (Jira)


[ 
https://issues.apache.org/jira/browse/JCRVLT-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17789549#comment-17789549
 ] 

Konrad Windszus commented on JCRVLT-733:


Although the proposed format outlined above for a properties file containing 
type information for certain paths works well for validation purposes, it 
shouldn't be necessary to use that within content packages. Instead content 
packages should only consider a new import option for uncovered ancestors (with 
CREATE being the default). The actual types should still be in DocView XML 
files (containing only the properties for {{jcr:primaryType}} and 
{{{}jcr:mixinTypes{}}}).

> Allow to enforce ancestor primary and mixin type
> 
>
> Key: JCRVLT-733
> URL: https://issues.apache.org/jira/browse/JCRVLT-733
> Project: Jackrabbit FileVault
>  Issue Type: Improvement
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
>Priority: Major
>
> Currently it is impossible to enforce a type for an uncovered ancestor node: 
> https://jackrabbit.apache.org/filevault/filter.html#Uncovered_ancestor_nodes.
> Existing nodes are never touched, and therefore might have an incompatible 
> type which prevent the actual child node installation.
> The workaround outlined e.g. at JCRVLT-403 is to leverage include patterns 
> which override the full ancestor node (but not arbitrary children). This 
> might also destroy other properties though (apart from types).
> This is necessary whenever two packages might contribute to subtrees sharing 
> a common ancestor. There is often no dependent package which just provides 
> the common ancestor (as that would also overwrite the full subtree).



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


[jira] [Commented] (JCRVLT-733) Allow to enforce ancestor primary and mixin type

2023-11-24 Thread Konrad Windszus (Jira)


[ 
https://issues.apache.org/jira/browse/JCRVLT-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17789471#comment-17789471
 ] 

Konrad Windszus commented on JCRVLT-733:


Another possibility is to separate that info a dedicated properties file where 
each line consists of
{code}
=type{,}
{code}
This can be referenced from the general package properties and should be part 
of the package metadata.
The same format can then be used for validation during build time.

During installation the following options may be set
# IGNORE (don't consider info at all)
# VALIDATE (just make sure the existing ancestor nodes comply with the given 
node types)
# CREATE (create the ancestor nodes with given types but don't touch existing 
ones)
# CREATEORUPDATE (create or update the ancestor nodes with given types)



> Allow to enforce ancestor primary and mixin type
> 
>
> Key: JCRVLT-733
> URL: https://issues.apache.org/jira/browse/JCRVLT-733
> Project: Jackrabbit FileVault
>  Issue Type: Improvement
>Reporter: Konrad Windszus
>Priority: Major
>
> Currently it is impossible to enforce a type for an uncovered ancestor node: 
> https://jackrabbit.apache.org/filevault/filter.html#Uncovered_ancestor_nodes.
> Existing nodes are never touched, and therefore might have an incompatible 
> type which prevent the actual child node installation.
> The workaround outlined e.g. at JCRVLT-403 is to leverage include patterns 
> which override the full ancestor node (but not arbitrary children). This 
> might also destroy other properties though (apart from types).
> This is necessary whenever two packages might contribute to subtrees sharing 
> a common ancestor. There is often no dependent package which just provides 
> the common ancestor (as that would also overwrite the full subtree).



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


[jira] [Commented] (JCRVLT-733) Allow to enforce ancestor primary and mixin type

2023-11-22 Thread Konrad Windszus (Jira)


[ 
https://issues.apache.org/jira/browse/JCRVLT-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17788724#comment-17788724
 ] 

Konrad Windszus commented on JCRVLT-733:


One possibility is to combine that with the node types used for validation 
outlined at JCRVLT-619. Another one is to extend the filter.xml to allow the 
enforcement of ancestor node types there.

> Allow to enforce ancestor primary and mixin type
> 
>
> Key: JCRVLT-733
> URL: https://issues.apache.org/jira/browse/JCRVLT-733
> Project: Jackrabbit FileVault
>  Issue Type: Improvement
>Reporter: Konrad Windszus
>Priority: Major
>
> Currently it is impossible to enforce a type for an uncovered ancestor node: 
> https://jackrabbit.apache.org/filevault/filter.html#Uncovered_ancestor_nodes.
> Existing nodes are never touched, and therefore might have an incompatible 
> type which prevent the actual child node installation.
> The workaround outlined e.g. at JCRVLT-403 is to leverage include patterns 
> which override the full ancestor node (but not arbitrary children). This 
> might also destroy other properties though (apart from types).
> This is necessary whenever two packages might contribute to subtrees sharing 
> a common ancestor. There is often no dependent package which just provides 
> the common ancestor (as that would also overwrite the full subtree).



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