Followup to r1087416:
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 3 Apr 2011 22:38:23 +0000 (22:38 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 3 Apr 2011 22:38:23 +0000 (22:38 +0000)
Correct typos in messages and remove one e.printStackTrace() call.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1088430 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/realm/LocalStrings.properties
java/org/apache/catalina/realm/RealmBase.java
webapps/docs/config/valve.xml

index c248501..71af6b2 100644 (file)
@@ -65,7 +65,7 @@ memoryRealm.readXml=Exception while reading memory database file
 memoryRealm.xmlFeatureEncoding=Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported.
 realmBase.algorithm=Invalid message digest algorithm {0} specified
 realmBase.alreadyStarted=This Realm has already been started
-realmBase.delegatedCredentialFail=Unable to obtain delegated credentials for user [{0}
+realmBase.delegatedCredentialFail=Unable to obtain delegated credentials for user [{0}]
 realmBase.digest=Error digesting user credentials
 realmBase.forbidden=Access to the requested resource has been denied
 realmBase.hasRoleFailure=Username {0} does NOT have role {1}
index f14847f..7b56532 100644 (file)
@@ -471,7 +471,6 @@ public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
                     try {
                         gssCredential = gssContext.getDelegCred();
                     } catch (GSSException e) {
-                        e.printStackTrace();
                         if (log.isDebugEnabled()) {
                             log.debug(sm.getString(
                                     "realmBase.delegatedCredentialFail", name),
@@ -830,7 +829,7 @@ public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
             if (roles.length == 0 && !constraint.getAllRoles()) {
                 if(constraint.getAuthConstraint()) {
                     if( log.isDebugEnabled() )
-                        log.debug("No role)s ");
+                        log.debug("No roles");
                     status = false; // No listed roles means no access at all
                     denyfromall = true;
                     break;
index 23b5bff..2939d99 100644 (file)
         the user Principal. If available, the delegated credential will be
         available to applications (e.g. for onward authentication to external
         services) via the <code>org.apache.catalina.realm.GSS_CREDENTIAL</code>
-        request attribute.If not set, the default value of <code>true</code>
+        request attribute. If not set, the default value of <code>true</code>
         will be used.</p>
       </attribute>