You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dirk Rudolph (JIRA)" <ji...@apache.org> on 2018/01/07 09:45:00 UTC
[jira] [Created] (SLING-7358) FileDistributionPackageBuilder fails
with no temp directory configured
Dirk Rudolph created SLING-7358:
-----------------------------------
Summary: 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
Priority: Minor
When no temp directory is configured for the package builder [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)