You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by am...@apache.org on 2018/09/05 13:14:33 UTC

[ambari] branch trunk updated: AMBARI-24593. Download client config fails if user running Ambari server has UID>2097151 (amagyar) (#2246)

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

amagyar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new f3f6452  AMBARI-24593. Download client config fails if user running Ambari server has UID>2097151 (amagyar) (#2246)
f3f6452 is described below

commit f3f64528b5583234e58b5ff205d1cb063ce1c97f
Author: Attila Magyar <m....@gmail.com>
AuthorDate: Wed Sep 5 15:14:28 2018 +0200

    AMBARI-24593. Download client config fails if user running Ambari server has UID>2097151 (amagyar) (#2246)
---
 .../ambari/server/controller/internal/ClientConfigResourceProvider.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClientConfigResourceProvider.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClientConfigResourceProvider.java
index 136cb79..ed97b58 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClientConfigResourceProvider.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClientConfigResourceProvider.java
@@ -816,6 +816,8 @@ public class ClientConfigResourceProvider extends AbstractControllerResourceProv
         BufferedOutputStream bOut = new BufferedOutputStream(fOut);
         GzipCompressorOutputStream gzOut = new GzipCompressorOutputStream(bOut);
         TarArchiveOutputStream tOut = new TarArchiveOutputStream(gzOut);
+        tOut.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX);
+        tOut.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_POSIX);
 
         try {
           for (ServiceComponentHostResponse schResponse : serviceComponentHostResponses) {