You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2018/01/09 10:25:01 UTC
[jira] [Resolved] (SLING-7358) FileDistributionPackageBuilder fails
with no temp directory configured
[ https://issues.apache.org/jira/browse/SLING-7358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tommaso Teofili resolved SLING-7358.
------------------------------------
Resolution: Fixed
> FileDistributionPackageBuilder fails with no temp directory configured
> ----------------------------------------------------------------------
>
> Key: SLING-7358
> URL: https://issues.apache.org/jira/browse/SLING-7358
> Project: Sling
> Issue Type: Bug
> Components: Content Distribution
> Affects Versions: Content Distribution Core 0.2.10
> Reporter: Dirk Rudolph
> Assignee: Dirk Rudolph
> Priority: Minor
> Fix For: Content Distribution Core 0.2.12
>
>
> When no temp directory is configured the [FileDistributionPackageBuilder|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/packaging/impl/FileDistributionPackageBuilder.java#L86] uses null to create a new temp file which, according to the java docs will use the default temp directory.
> On the other hand [reading the file internally|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/packaging/impl/FileDistributionPackageBuilder.java#L160] uses the {{File}} constructor passing {{null}} as directory to it. This causes a non-existing file to be returned.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)