cschneider commented on PR #467:
URL: 
https://github.com/apache/jackrabbit-filevault/pull/467#issuecomment-7021313877

   @kwin Thanks. I agree it shouldn't silently fall back to an unrestricted 
generic aggregate. One concern before removing `nodetype` from `Registry`: 
`DefaultMetaInf` parses `META-INF/vault/config.xml` for every package, and 
packages exported with FileVault < 3.5.4 carry the old default config with 
`<aggregate type="nodetype"/>` and `<handler type="nodetype"/>`. Four fixtures 
in this repo do too (`referenceable.zip`, `referenceable-dup.zip`, 
`principalbased_nopolicy.zip`, `principalbasedstashing.zip`). With the entries 
removed, `VaultFsConfig11` fails with "Aggregator of type nodetype is not 
registered", so those existing packages could no longer be opened or installed.
   
   Alternative: keep `nodetype` known but stop mapping it to 
`GenericAggregator`/`GenericArtifactHandler`. `VaultFsConfig11` would log a 
deprecation warning and skip such entries. Old packages stay readable, and a 
config that still lists `nodetype` no longer gets a catch-all aggregate. Would 
that work for you, or do you prefer failing hard (and updating the fixtures)?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to