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:20 UTC

[sling-org-apache-sling-installer-factory-packages] branch issue/SLING-9313 created (now 02e157a)

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

radu pushed a change to branch issue/SLING-9313
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-packages.git.


      at 02e157a  SLING-9313 - Content Package Installer: do not return an InstallTask if the TaskResource is of an unsupported type

This branch includes the following new commits:

     new 02e157a  SLING-9313 - Content Package Installer: do not return an InstallTask if the TaskResource is of an unsupported type

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[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

Posted by ra...@apache.org.
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;
     }