You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by mp...@apache.org on 2018/06/19 11:31:40 UTC

[sling-org-apache-sling-distribution-core] branch master updated: SLING-7747: send http response error code when package cannot be opened - more logging

This is an automated email from the ASF dual-hosted git repository.

mpetria pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 4981256  SLING-7747: send http response error code when package cannot be opened - more logging
4981256 is described below

commit 49812566c89093f06b0d32c46ae267ee53d8f95c
Author: Marius Petria <mp...@adobe.com>
AuthorDate: Tue Jun 19 14:31:32 2018 +0300

    SLING-7747: send http response error code when package cannot be opened - more logging
---
 .../distribution/packaging/impl/FileDistributionPackageBuilder.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/sling/distribution/packaging/impl/FileDistributionPackageBuilder.java b/src/main/java/org/apache/sling/distribution/packaging/impl/FileDistributionPackageBuilder.java
index 3248e88..5175aa8 100644
--- a/src/main/java/org/apache/sling/distribution/packaging/impl/FileDistributionPackageBuilder.java
+++ b/src/main/java/org/apache/sling/distribution/packaging/impl/FileDistributionPackageBuilder.java
@@ -166,6 +166,7 @@ public class FileDistributionPackageBuilder extends AbstractDistributionPackageB
     protected DistributionPackage getPackageInternal(@Nonnull ResourceResolver resourceResolver, @Nonnull String id) {
         File file = new File(tempDirectory, id);
         if (!file.exists()) {
+            log.warn("file package does not exist", file.getAbsolutePath());
             return null;
         }
         return new FileDistributionPackage(file, getType(), null, null);