kwin commented on code in PR #66:
URL:
https://github.com/apache/sling-org-apache-sling-distribution-core/pull/66#discussion_r975027331
##########
src/main/java/org/apache/sling/distribution/serialization/impl/vlt/FileVaultContentSerializer.java:
##########
@@ -131,7 +133,7 @@ public void importFromStream(ResourceResolver
resourceResolver, InputStream inpu
Archive archive = null;
try {
session = getSession(resourceResolver);
- ImportOptions importOptions =
VltUtils.getImportOptions(aclHandling, cugHandling, importMode,
autosaveThreshold, strict);
+ ImportOptions importOptions =
VltUtils.getImportOptions(aclHandling, cugHandling, importMode,
autosaveThreshold, strict, idConflictPolicy);
ErrorListener errorListener = new ErrorListener();
importOptions.setListener(errorListener);
Importer importer = new Importer(importOptions);
Review Comment:
There is no method you can use to access the high level configuration object
from
https://github.com/apache/jackrabbit-filevault/blob/ffe9984bd965b276f93eb776374f5dde63cb0a30/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/PackagingImpl.java#L116,
but you can use the OSGi configuration admin to get the keys and values:
https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.cm.html#org.osgi.service.cm.ConfigurationAdmin.getConfiguration-String-
--
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]