[java-plugin-shibd] 01/02: Remove HTTP constraints from message decoder.

Scott Cantor cantor.2 at osu.edu
Wed Jul 3 17:53:51 UTC 2024


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-shibd.git;a=commit;h=92e95ba337ff24b171afd7d8187521d37106de8f

commit 92e95ba337ff24b171afd7d8187521d37106de8f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jul 3 13:53:02 2024 -0400

    Remove HTTP constraints from message decoder.
---
 .../net/shibboleth/sp/profile/impl/DecodeAgentRequest.java     | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DecodeAgentRequest.java b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DecodeAgentRequest.java
index 09cb170..09b02c2 100644
--- a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DecodeAgentRequest.java
+++ b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DecodeAgentRequest.java
@@ -65,16 +65,6 @@ public class DecodeAgentRequest extends AbstractAgentRequestAction {
             return;
         }
 
-        if ("GET".equals(request.getMethod())) {
-            log.debug("{} GET request, ignoring request body, if any", getLogPrefix());
-            return;
-        } else if (!"POST".equalsIgnoreCase(request.getMethod())) {
-            log.warn("{} Invalid HTTP request method, only GET or POST supported: ", getLogPrefix(),
-                    request.getMethod());
-            ActionSupport.buildEvent(profileRequestContext, EventIds.INVALID_MESSAGE);
-            return;
-        }
-
         final int contentLength = request.getContentLength();
         if (contentLength != 0) {
             final String contentType = request.getContentType();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list