You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2021/06/03 09:19:20 UTC

[jackrabbit-filevault] branch master updated: JCRVLT-525 fix corruption of the XML files of the FSPackageRegistry when they are shortened (#142)

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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git


The following commit(s) were added to refs/heads/master by this push:
     new a8ded5b  JCRVLT-525 fix corruption of the XML files of the FSPackageRegistry when they are shortened (#142)
a8ded5b is described below

commit a8ded5b2dd1f10ef8f00fa64b80f311109049876
Author: Dr. Hans-Peter Störr <yu...@techno.ms>
AuthorDate: Thu Jun 3 11:19:14 2021 +0200

    JCRVLT-525 fix corruption of the XML files of the FSPackageRegistry when they are shortened (#142)
---
 .../jackrabbit/vault/packaging/registry/impl/FSInstallState.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSInstallState.java b/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSInstallState.java
index 1946f3f..2b9c58c 100644
--- a/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSInstallState.java
+++ b/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSInstallState.java
@@ -302,7 +302,7 @@ public class FSInstallState {
      */
     public void save(Path file) throws IOException {
         Files.createDirectories(file.getParent());
-        try (OutputStream out = Files.newOutputStream(file, StandardOpenOption.CREATE)) {
+        try (OutputStream out = Files.newOutputStream(file)) {
             save(out);
         }
     }
@@ -493,4 +493,4 @@ public class FSInstallState {
                 + (installTime != null ? "installTime=" + installTime + ", " : "") + "size=" + size + ", "
                 + (filter != null ? "filter=" + filter + ", " : "") + (properties != null ? "properties=" + properties : "") + "]";
     }
-}
\ No newline at end of file
+}