Commit 4214047
springbootdemo-tomcat11: add no-arg constructors to LoginRequest and TestwsRequest
Moshi (JsonRpcMessageReceiver) requires a no-arg constructor for POJO
deserialization. Without one, Moshi falls back to Unsafe.allocateInstance()
leaving fields null — LoginRequest.getEmail() returned null causing a 400,
and TestwsRequest.getMessagein() returned null causing ESAPI validation
to reject with FAILED status.
Mirrors the same fix already in the WildFly springbootdemo module.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent bb40cf3 commit 4214047
2 files changed
Lines changed: 6 additions & 0 deletions
File tree
- modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/webservices
- secure
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments