Radu Cotescu created SLING-9313:
-----------------------------------

             Summary: Content Package Installer: do not return an InstallTask 
if the TaskResource is of an unsupported type
                 Key: SLING-9313
                 URL: https://issues.apache.org/jira/browse/SLING-9313
             Project: Sling
          Issue Type: Bug
          Components: Installer
    Affects Versions: Installer Packages Factory 1.0.0
            Reporter: Radu Cotescu
            Assignee: Konrad Windszus
             Fix For: Installer Packages Factory 1.0.2


The 
{{org.apache.sling.installer.factory.packages.impl.PackageTransformer#createTask}}
 currently returns a {{ChangeStateTask}} for resources that it cannot handle 
[0]. According to the documentation of the 
{{org.apache.sling.installer.api.tasks.InstallTaskFactory}}, a factory should 
return {{null}} "if the factory does not support the resource".

[0] - 
https://github.com/apache/sling-org-apache-sling-installer-factory-packages/blob/org.apache.sling.installer.factory.packages-1.0.0/src/main/java/org/apache/sling/installer/factory/packages/impl/PackageTransformer.java#L241



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to