DanielLeens commented on PR #12922:
URL: https://github.com/apache/seatunnel/pull/12922#issuecomment-6567761767

   Thanks for the review, @SEZ9. The notification email truncated 
@fatmanverse's earlier comment; the complete text is on the GitHub page, 
comment from 2026-11-01 11:03 UTC. Here is a pointer to where each of your 
items is answered, against the unchanged head 74235a4c2:
   
   - Non-integral or oversized ids: a malformed string id fails with `'jobId' 
must be a long integer` (or the `restoreSourceJobId` equivalent) from 
`checkLongParam`. A JSON number such as `1.5`, `1e3` or a value beyond the long 
range is rejected earlier in `toStringParams` with `'params' number values must 
be integers within the long range`. That message names `params` but 
deliberately not the client key. The author also offered to name the key when 
it is one of the two known keys (`jobId`, `restoreSourceJobId`), so if you want 
the `params.jobId` form, say so and it is a small change.
   - Tests: `RestUtilSubmitJobsParamsTest` covers the null-value skip and kept 
empty string (`testNullValueIsSkippedAndEmptyStringIsKept`), nested values and 
number ranges. 
`JobInfoServiceSubmitJobsTest#testInvalidLaterEntryRejectsTheWholeRequest` 
places the invalid entry second and asserts nothing was submitted.
   - Docs: the EN and ZH v1/v2 `params` tables now include `restoreMode` and 
`restoreSourceJobId` with typed values.
   - Client key in logs: the type-error messages never include the client key 
or value, so there is nothing to sanitize.
   - Rename: the JSON path uses `buildRequestParamsFromJson`, and the 
`buildRequestParams(Map, Map)` overload is gone at this head.
   
   I agree with the author's description, but please confirm each point against 
the diff on your side rather than relying on my summary.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to