You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2020/03/31 15:13:21 UTC
[sling-org-apache-sling-installer-factory-packages] 01/01:
SLING-9313 - Content Package Installer: do not return an InstallTask if the
TaskResource is of an unsupported type
This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch issue/SLING-9313
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-packages.git
commit 02e157a8532a59e2b75919d4d3f0aaa5c9efb9ae
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Mar 31 17:11:59 2020 +0200
SLING-9313 - Content Package Installer: do not return an InstallTask if the TaskResource is of an unsupported type
* return null if the TaskResource is of an unsupported type
* corrected typo and log cases where a TaskResource is unsupported on the debug level
---
.../sling/installer/factory/packages/impl/PackageTransformer.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/sling/installer/factory/packages/impl/PackageTransformer.java b/src/main/java/org/apache/sling/installer/factory/packages/impl/PackageTransformer.java
index 3717033..46818ba 100644
--- a/src/main/java/org/apache/sling/installer/factory/packages/impl/PackageTransformer.java
+++ b/src/main/java/org/apache/sling/installer/factory/packages/impl/PackageTransformer.java
@@ -236,9 +236,8 @@ public class PackageTransformer implements ResourceTransformer, InstallTaskFacto
}
break;
default:
- String message = MessageFormat.format("Unupported type of {0}: {1}.", resource, resource.getType());
- logger.error(message);
- task = new ChangeStateTask(toActivate, ResourceState.IGNORED, message);
+ String message = MessageFormat.format("Unsupported type of {0}: {1}.", resource, resource.getType());
+ logger.debug(message);
}
return task;
}