sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] DominikSuess closed pull request #7: SLING-8105 - checking for filelenght to skip truncated files and allo…
Date Tue, 13 Nov 2018 22:07:15 GMT
DominikSuess closed pull request #7: SLING-8105 - checking for filelenght to skip truncated
files and allo…

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/main/java/org/apache/sling/feature/extension/content/
index 8986d41..d85b083 100644
--- a/src/main/java/org/apache/sling/feature/extension/content/
+++ b/src/main/java/org/apache/sling/feature/extension/content/
@@ -57,7 +57,7 @@ private static ExecutionPlanBuilder buildExecutionPlan(Collection<Artifact>
         for (final Artifact a : artifacts) {
             final File file = prepareContext.getArtifactFile(a.getId());
-            if (file.exists()) {
+            if (file.exists() && file.length() > 0) {
@@ -125,7 +125,6 @@ public boolean handle(Extension extension, LauncherPrepareContext prepareContext
             installationContext.addConfiguration(initcfg.getPid(), initcfg.getFactoryPid(),
          // Workaround for too bold relocation mechanism - corresponding details at

             final Configuration registrycfg = new Configuration("org.UNSHADE.apache.jackrabbit.vault.packaging.registry.impl.FSPackageRegistry");
-            registrycfg.getProperties().put("homePath", REGISTRY_FOLDER);
             installationContext.addConfiguration(registrycfg.getPid(), registrycfg.getFactoryPid(),
             return true;


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message