Commit c8844bd
committed
fix(web): correct Lambda handler class name and property ID format
Two independent functional breaks in the Java Web service:
1. template.yaml Handler referenced publicationmanager.PublicationEvaluationEventHandlerFunction, but the class is named PublicationEvaluationEventHandler (no 'Function' suffix). Every PublicationEvaluationCompleted delivery threw ClassNotFoundException, so property status was never updated to APPROVED/DECLINED.
2. Property.getId() built the id by joining the DynamoDB partition/sort keys (PROPERTY#country#city + street#number) and replacing '#' with '/', producing a 5-segment id like 'PROPERTY/usa/anytown/main-street/111'. Every consumer — the approvals state machine's DynamoDB lookups, and Web's own PublicationEvaluationEventHandler, which explicitly requires exactly 4 segments — expects the canonical 4-segment 'country/city/street/number' format used by every other language track. Rebuilt getId() directly from the raw address fields to match.
Verified: PublicationEvaluationEventHandlerTests and RequestApprovalFunctionTests (which exercise getId() indirectly) pass; sam validate --lint clean.1 parent ef5c86d commit c8844bd
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments