This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 24dd62fba2 Prepare for automatic formatting 24dd62fba2 is described below commit 24dd62fba2f0154bf8ee577504a8b376c5cad720 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Aug 29 18:54:26 2025 +0100 Prepare for automatic formatting --- .../catalina/authenticator/TestDigestAuthenticator.java | 13 ++++++++----- .../catalina/authenticator/TestFormAuthenticatorA.java | 4 +--- .../catalina/authenticator/TestFormAuthenticatorB.java | 4 +--- .../catalina/authenticator/TestFormAuthenticatorC.java | 4 +--- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java b/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java index 60cf849854..d93550805a 100644 --- a/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java +++ b/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java @@ -318,17 +318,20 @@ public class TestDigestAuthenticator extends TomcatBaseTest { } /* + * @formatter:off + * * Notes from RFC2617 * H(data) = MD5(data) * KD(secret, data) = H(concat(secret, ":", data)) * A1 = unq(username-value) ":" unq(realm-value) ":" passwd * A2 = Method ":" digest-uri-value * request-digest = <"> < KD ( H(A1), unq(nonce-value) - ":" nc-value - ":" unq(cnonce-value) - ":" unq(qop-value) - ":" H(A2) - ) <"> + * ":" nc-value + * ":" unq(cnonce-value) + * ":" unq(qop-value) + * ":" H(A2) + * ) <"> + * @formatter:on */ private static String buildDigestResponse(String user, String pwd, String uri, String realm, String nonce, String opaque, String nc, diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java b/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java index 59ce987580..4d145f0385 100644 --- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java +++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java @@ -348,9 +348,6 @@ public class TestFormAuthenticatorA extends TomcatBaseTest { * Repeatedly access the protected resource after the client has * successfully logged-in to the webapp. The current session attributes * will be used and cannot be changed. - * 3. after successful login, follow the redirect to the original page - * 4. repeatedly access the protected resource to demonstrate - * persistence of the authenticated session * * @param resourceMethod HTTP method for accessing the protected resource * @param protectedUri to access (with or without sessionid) @@ -416,6 +413,7 @@ public class TestFormAuthenticatorA extends TomcatBaseTest { * 1. fully qualified uri. * 2. minimal uri without webapp path. * 3. null - use the default protected resource + * * Cookies are sent if available and supported by the test. Otherwise, the * caller is expected to have provided a session id as a path parameter. */ diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java b/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java index e4705468f0..d182fa8240 100644 --- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java +++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java @@ -240,9 +240,6 @@ public class TestFormAuthenticatorB extends TomcatBaseTest { * Repeatedly access the protected resource after the client has * successfully logged-in to the webapp. The current session attributes * will be used and cannot be changed. - * 3. after successful login, follow the redirect to the original page - * 4. repeatedly access the protected resource to demonstrate - * persistence of the authenticated session * * @param resourceMethod HTTP method for accessing the protected resource * @param protectedUri to access (with or without sessionid) @@ -308,6 +305,7 @@ public class TestFormAuthenticatorB extends TomcatBaseTest { * 1. fully qualified uri. * 2. minimal uri without webapp path. * 3. null - use the default protected resource + * * Cookies are sent if available and supported by the test. Otherwise, the * caller is expected to have provided a session id as a path parameter. */ diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java b/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java index af4bc5818a..d9de179427 100644 --- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java +++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java @@ -242,9 +242,6 @@ public class TestFormAuthenticatorC extends TomcatBaseTest { * Repeatedly access the protected resource after the client has * successfully logged-in to the webapp. The current session attributes * will be used and cannot be changed. - * 3. after successful login, follow the redirect to the original page - * 4. repeatedly access the protected resource to demonstrate - * persistence of the authenticated session * * @param resourceMethod HTTP method for accessing the protected resource * @param protectedUri to access (with or without sessionid) @@ -310,6 +307,7 @@ public class TestFormAuthenticatorC extends TomcatBaseTest { * 1. fully qualified uri. * 2. minimal uri without webapp path. * 3. null - use the default protected resource + * * Cookies are sent if available and supported by the test. Otherwise, the * caller is expected to have provided a session id as a path parameter. */ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org