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

aonishuk 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 9d4dec9  AMBARI-25444. Deploy fails with 401:Unauthorized on HDP-GPL; 
whereas url is actually accessible with credentials supplied by Releng team 
(aonishuk)
9d4dec9 is described below

commit 9d4dec96387b863dfae1aaa8724db8c4f350d73f
Author: Andrew Onishuk <aonis...@hortonworks.com>
AuthorDate: Mon Dec 9 15:23:48 2019 +0200

    AMBARI-25444. Deploy fails with 401:Unauthorized on HDP-GPL; whereas url is 
actually accessible with credentials supplied by Releng team (aonishuk)
---
 .../ambari/server/controller/internal/RepositoryResourceProvider.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryResourceProvider.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryResourceProvider.java
index b844495..bba9331 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryResourceProvider.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryResourceProvider.java
@@ -179,11 +179,11 @@ public class RepositoryResourceProvider extends 
AbstractControllerResourceProvid
         setResourceProperty(resource, REPOSITORY_REPO_NAME_PROPERTY_ID, 
response.getRepoName(), requestedIds);
         setResourceProperty(resource, REPOSITORY_DISTRIBUTION_PROPERTY_ID, 
response.getDistribution(), requestedIds);
         setResourceProperty(resource, REPOSITORY_COMPONENTS_PROPERTY_ID, 
response.getComponents(), requestedIds);
-        setResourceProperty(resource, REPOSITORY_BASE_URL_PROPERTY_ID, 
URLCredentialsHider.hideCredentials(response.getBaseUrl()), requestedIds);
+        setResourceProperty(resource, REPOSITORY_BASE_URL_PROPERTY_ID, 
response.getBaseUrl(), requestedIds);
         setResourceProperty(resource, REPOSITORY_OS_TYPE_PROPERTY_ID, 
response.getOsType(), requestedIds);
         setResourceProperty(resource, REPOSITORY_REPO_ID_PROPERTY_ID, 
response.getRepoId(), requestedIds);
         setResourceProperty(resource, REPOSITORY_MIRRORS_LIST_PROPERTY_ID, 
response.getMirrorsList(), requestedIds);
-        setResourceProperty(resource, REPOSITORY_DEFAULT_BASE_URL_PROPERTY_ID, 
URLCredentialsHider.hideCredentials(response.getDefaultBaseUrl()), 
requestedIds);
+        setResourceProperty(resource, REPOSITORY_DEFAULT_BASE_URL_PROPERTY_ID, 
response.getDefaultBaseUrl(), requestedIds);
         setResourceProperty(resource, REPOSITORY_UNIQUE_PROPERTY_ID, 
response.isUnique(), requestedIds);
         setResourceProperty(resource, REPOSITORY_TAGS_PROPERTY_ID, 
response.getTags(), requestedIds);
         setResourceProperty(resource, 
REPOSITORY_APPLICABLE_SERVICES_PROPERTY_ID, response.getApplicableServices(), 
requestedIds);

Reply via email to