Skip to content

Commit 092548e

Browse files
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 <noreply@anthropic.com>
1 parent 27860dd commit 092548e

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

modules/samples/userguide/src/userguide/springbootdemo-tomcat11/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,18 @@ curl -s -X POST http://localhost:8080/axis2-json-api/services/TestwsService \
105105

106106
### 4. Call public BigData service
107107

108+
Required fields: `datasetId` (non-empty string) and `datasetSize` (bytes). Size determines
109+
processing path: <10MB → standard, 10–50MB → multiplexing, >50MB → streaming.
110+
108111
```bash
109112
curl -s -X POST http://localhost:8080/axis2-json-api/services/BigDataH2Service \
110113
-H 'Content-Type: application/json' \
111-
-d '{"processBigDataSet":[{"request":{"numRecords":1000}}]}'
114+
-d '{"processBigDataSet":[{"request":{"datasetId":"test-dataset-001","datasetSize":1048576}}]}'
112115
```
113116

117+
Response includes `processedRecordCount`, `http2Optimized`, `memoryOptimized`, and (for <10MB
118+
datasets) a `processedRecords` array.
119+
114120
---
115121

116122
## Axis2 JSON-RPC request format

modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/Axis2Application.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ class AnonRequestMatcher implements RequestMatcher {
123123
@Override
124124
public boolean matches(HttpServletRequest request) {
125125
String logPrefix = "AnonRequestMatcher.matches , ";
126-
boolean result = request.getRequestURI().contains(
127-
"/services/loginService");
126+
boolean result = request.getRequestURI().toLowerCase().contains(
127+
"/services/loginservice");
128128
logger.debug(logPrefix
129129
+ "inside AnonRequestMatcher.matches, will return result: "
130130
+ result + " , on request.getRequestURI() : "

modules/samples/userguide/src/userguide/springbootdemo/src/main/java/userguide/springboot/Axis2Application.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class AnonRequestMatcher implements RequestMatcher {
117117
@Override
118118
public boolean matches(HttpServletRequest request) {
119119
String logPrefix = "AnonRequestMatcher.matches , ";
120-
boolean result = request.getRequestURI().contains(
121-
"/services/loginService");
120+
boolean result = request.getRequestURI().toLowerCase().contains(
121+
"/services/loginservice");
122122
logger.debug(logPrefix
123123
+ "inside AnonRequestMatcher.matches, will return result: "
124124
+ result + " , on request.getRequestURI() : "

0 commit comments

Comments
 (0)