You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG.debug("Checking Service policy if updated as user : {}", MiscUtil.getUGILoginUser());
695
-
}
683
+
if (isAuthenticationEnabled()) {
684
+
LOG.debug("Checking Service policy if updated");
696
685
697
686
ret = MiscUtil.executePrivilegedAction((PrivilegedExceptionAction<Response>) () -> get(queryParams, getRelativeURL(true), policyDownloadSessionId));
698
687
} else {
@@ -806,7 +795,7 @@ private ServiceTags getServiceTagsIfUpdatedWithCred(final long lastKnownVersion,
806
795
tagDownloadSessionId = null;
807
796
body = response.readEntity(String.class);
808
797
809
-
LOG.warn("Unexpected: Received status[{}] with body[{}] form url[{}]", httpResponseCode, body, getRelativeURLForTagDownload(isSecureMode()));
798
+
LOG.warn("Unexpected: Received status[{}] with body[{}] form url[{}]", httpResponseCode, body, getRelativeURLForTagDownload(isAuthenticationEnabled()));
810
799
break;
811
800
}
812
801
@@ -893,10 +882,8 @@ private Response getTagsDownloadResponse(final long lastKnownVersion, final long
LOG.debug("Checking Service tags if updated as user : {}", MiscUtil.getUGILoginUser());
899
-
}
885
+
if (isAuthenticationEnabled()) {
886
+
LOG.debug("Checking Service tags if updated");
900
887
901
888
ret = MiscUtil.executePrivilegedAction((PrivilegedExceptionAction<Response>) () -> get(queryParams, getRelativeURLForTagDownload(true), tagDownloadSessionId));
902
889
} else {
@@ -1008,7 +995,7 @@ private RangerRoles getRangerRolesIfUpdatedWithCred(final long lastKnownRoleVers
1008
995
roleDownloadSessionId = null;
1009
996
body = response.readEntity(String.class);
1010
997
1011
-
LOG.warn("Unexpected: Received status[{}] with body[{}] form url[{}]", httpResponseCode, body, getRelativeURLForRoleDownload(isSecureMode()));
998
+
LOG.warn("Unexpected: Received status[{}] with body[{}] form url[{}]", httpResponseCode, body, getRelativeURLForRoleDownload(isAuthenticationEnabled()));
1012
999
1013
1000
break;
1014
1001
}
@@ -1075,7 +1062,7 @@ private RangerRoles getRangerRolesIfUpdatedWithCookie(final long lastKnownRoleVe
1075
1062
isValidRoleDownloadSessionCookie = false;
1076
1063
body = response.readEntity(String.class);
1077
1064
1078
-
LOG.warn("Unexpected: Received status[{}] with body[{}] form url[{}]", httpResponseCode, body, getRelativeURLForRoleDownload(isSecureMode()));
1065
+
LOG.warn("Unexpected: Received status[{}] with body[{}] form url[{}]", httpResponseCode, body, getRelativeURLForRoleDownload(isAuthenticationEnabled()));
1079
1066
1080
1067
break;
1081
1068
}
@@ -1096,10 +1083,8 @@ private Response getRoleDownloadResponse(final long lastKnownRoleVersion, final
// We get date from the policy manager as unix long! This deserializer exists to deal with it. Remove this class once we start send date/time per RFC 3339
0 commit comments