This is an automated email from the ASF dual-hosted git repository.
amagyar pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new 61b1792 AMBARI-24593. Download client config fails if user running
Ambari server has UID>2097151 (amagyar) (#2246) (#2248)
61b1792 is described below
commit 61b1792e5b974699d39b526e632bf7b86ff065c1
Author: Attila Magyar <[email protected]>
AuthorDate: Wed Sep 5 16:06:44 2018 +0200
AMBARI-24593. Download client config fails if user running Ambari server
has UID>2097151 (amagyar) (#2246) (#2248)
---
.../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) {