You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2015/02/18 21:54:25 UTC
svn commit: r1660724 -
/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/authentication/BrokerCredentials.java
Author: cwiklik
Date: Wed Feb 18 20:54:24 2015
New Revision: 1660724
URL: http://svn.apache.org/r1660724
Log:
UIMA-4254 DUCCs non-daemon processes should not log "Cannot access broker credentials file so will have restricted access" message.
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/authentication/BrokerCredentials.java
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/authentication/BrokerCredentials.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/authentication/BrokerCredentials.java?rev=1660724&r1=1660723&r2=1660724&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/authentication/BrokerCredentials.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/authentication/BrokerCredentials.java Wed Feb 18 20:54:24 2015
@@ -34,8 +34,16 @@ public class BrokerCredentials {
try {
if (!(new File(brokerCredentialsFile)).canRead()) {
DuccLogger logger = DuccLogger.getLogger(BrokerCredentials.class.getName(), null);
- // Default of no name & password => anonymous access
- logger.info("BrokerCredentials.get", null, "Cannot access broker credentials file so will have restricted access");
+ String component = System.getProperty("ducc.deploy.components");
+ if ( component != null ) {
+ if ( !"uima-as".equals(component) &&
+ !"jd".equals(component) &&
+ !"service".equals(component) &&
+ !"job-process".equals(component) ) {
+ // Default of no name & password => anonymous access
+ logger.info("BrokerCredentials.get", null, "Cannot access broker credentials file so will have restricted access");
+ }
+ }
return cr;
}
properties.load(new FileInputStream(brokerCredentialsFile));