Konrad Windszus created JCRVLT-524:
--------------------------------------

             Summary: PackageRegistry.register should always register the 
subpackages as well
                 Key: JCRVLT-524
                 URL: https://issues.apache.org/jira/browse/JCRVLT-524
             Project: Jackrabbit FileVault
          Issue Type: Improvement
          Components: vlt
            Reporter: Konrad Windszus
             Fix For: 3.5.2


The {{FSPackageRegistry}} already registers all contained subpackages with a 
call to {{PackageRegistry.register(...)}} 
(https://github.com/apache/jackrabbit-filevault/blob/14615ce5647252005f2271b5f5f0351eb91aa78e/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistry.java#L362)
 both for internal and external files, while 
{{JcrPackageRegistry.register(...)}} does not do that 
(https://github.com/apache/jackrabbit-filevault/blob/14615ce5647252005f2271b5f5f0351eb91aa78e/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/JcrPackageRegistry.java#L348).

The handling should be consolidated so that all implementations always register 
also the contained subpackages and the javadoc of 
{{PackageRegistry.register(...)}} clarified accordingly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to