This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit 092548e6194a01a061a2d551cdbb5c31f5419d44
Author: Robert Lazarski <[email protected]>
AuthorDate: Mon Apr 6 04:22:49 2026 -1000

    samples: fix AnonRequestMatcher case sensitivity and BigDataH2Service README
    
    - AnonRequestMatcher.matches(): use toLowerCase() so both 
/services/loginService
      and /services/LoginService bypass the JWT filter; Axis2 URL routing is 
case-
      sensitive but callers may vary case
    - springbootdemo-tomcat11/README.md: correct BigDataH2Service curl example 
to use
      required fields datasetId + datasetSize (bytes) instead of numRecords; 
add note
      on processing path thresholds and response fields
    
    Tested with Java 25 + Tomcat 11.0.20.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 .../userguide/src/userguide/springbootdemo-tomcat11/README.md     | 8 +++++++-
 .../src/main/java/userguide/springboot/Axis2Application.java      | 4 ++--
 .../src/main/java/userguide/springboot/Axis2Application.java      | 4 ++--
 3 files changed, 11 insertions(+), 5 deletions(-)

diff --git 
a/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/README.md 
b/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/README.md
index d671288472..316a1f36db 100644
--- a/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/README.md
+++ b/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/README.md
@@ -105,12 +105,18 @@ curl -s -X POST 
http://localhost:8080/axis2-json-api/services/TestwsService \
 
 ### 4. Call public BigData service
 
+Required fields: `datasetId` (non-empty string) and `datasetSize` (bytes). 
Size determines
+processing path: <10MB → standard, 10–50MB → multiplexing, >50MB → streaming.
+
 ```bash
 curl -s -X POST http://localhost:8080/axis2-json-api/services/BigDataH2Service 
\
   -H 'Content-Type: application/json' \
-  -d '{"processBigDataSet":[{"request":{"numRecords":1000}}]}'
+  -d 
'{"processBigDataSet":[{"request":{"datasetId":"test-dataset-001","datasetSize":1048576}}]}'
 ```
 
+Response includes `processedRecordCount`, `http2Optimized`, `memoryOptimized`, 
and (for <10MB
+datasets) a `processedRecords` array.
+
 ---
 
 ## Axis2 JSON-RPC request format
diff --git 
a/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/Axis2Application.java
 
b/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/Axis2Application.java
index bb4b5fe487..f378e7ddad 100644
--- 
a/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/Axis2Application.java
+++ 
b/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/Axis2Application.java
@@ -123,8 +123,8 @@ public class Axis2Application extends 
SpringBootServletInitializer {
             @Override
             public boolean matches(HttpServletRequest request) {
                 String logPrefix = "AnonRequestMatcher.matches , ";
-                boolean result = request.getRequestURI().contains(
-                        "/services/loginService");
+                boolean result = 
request.getRequestURI().toLowerCase().contains(
+                        "/services/loginservice");
                 logger.debug(logPrefix
                         + "inside AnonRequestMatcher.matches, will return 
result: "
                         + result + " , on request.getRequestURI() : "
diff --git 
a/modules/samples/userguide/src/userguide/springbootdemo/src/main/java/userguide/springboot/Axis2Application.java
 
b/modules/samples/userguide/src/userguide/springbootdemo/src/main/java/userguide/springboot/Axis2Application.java
index 2bb756381a..22b8efea27 100644
--- 
a/modules/samples/userguide/src/userguide/springbootdemo/src/main/java/userguide/springboot/Axis2Application.java
+++ 
b/modules/samples/userguide/src/userguide/springbootdemo/src/main/java/userguide/springboot/Axis2Application.java
@@ -117,8 +117,8 @@ public class Axis2Application extends 
SpringBootServletInitializer {
             @Override
             public boolean matches(HttpServletRequest request) {
                 String logPrefix = "AnonRequestMatcher.matches , ";
-                boolean result = request.getRequestURI().contains(
-                        "/services/loginService");
+                boolean result = 
request.getRequestURI().toLowerCase().contains(
+                        "/services/loginservice");
                 logger.debug(logPrefix
                         + "inside AnonRequestMatcher.matches, will return 
result: "
                         + result + " , on request.getRequestURI() : "

Reply via email to