You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ashish Chopra (Jira)" <ji...@apache.org> on 2019/12/02 10:31:00 UTC

[jira] [Comment Edited] (SLING-8868) DistributionPackage built using DistributionPackageBuilder.getPackage doesn't contain correct DIstributionPackageInfo

    [ https://issues.apache.org/jira/browse/SLING-8868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985202#comment-16985202 ] 

Ashish Chopra edited comment on SLING-8868 at 12/2/19 10:30 AM:
----------------------------------------------------------------

PR at [0].

_edit:_ PR updated to include tests. It is noteworthy that In-memory-package remote-distribution seems broken to me currently - i.e., its {{.getPackageInternal}} returns {{null}}, consequently any subsequent efforts to retrieve and import the package (as in [1]) will inevitably fail.

[0] https://github.com/apache/sling-org-apache-sling-distribution-core/pull/27
[1] https://github.com/apache/sling-org-apache-sling-distribution-core/blob/deb3d2ae33c4f4678c8503091a9fffdbb141e569/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgentQueueProcessor.java#L123


was (Author: ashishc):
PR at [0]

[0] https://github.com/apache/sling-org-apache-sling-distribution-core/pull/27

> DistributionPackage built using DistributionPackageBuilder.getPackage doesn't contain correct DIstributionPackageInfo
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-8868
>                 URL: https://issues.apache.org/jira/browse/SLING-8868
>             Project: Sling
>          Issue Type: Bug
>          Components: Content Distribution
>    Affects Versions: Content Distribution Core 0.4.0
>            Reporter: Ashish Chopra
>            Priority: Major
>             Fix For: Content Distribution Core 0.4.2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{DIstributionPackage}} as returned by {{DistributionPackageBuilder.createPackage}} contains metadata of the package within it, which can be retrieved via {{DIstributionPackage.getInfo()}}. {{DistributionPackage.getId}} returns the unique identifier for the created package, which can later be retrieved via the ID and {{DistributionPackageBuilder.getPackage}} API.
> However, when the {{DistributionPackage}} is retrieved, the {{DistributionPackageInfo}} returned by {{.getInfo}} method doesn't contain correct metadata of the package.



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