Repository navigation
FOUR-34463: Preserve actionable script errors and executor diagnostics - #9179
eiresendez wants to merge 4 commits into
Conversation
Cover script microservice 1.0.0 and 1.2.1 error contracts, retaining sanitized diagnostics and correlation identifiers. Refs: FOUR-34463
PR SummaryMedium Risk Overview
Versioned fixtures and Reviewed by Cursor Bugbot for commit 8bffc0d. Bugbot is set up for automated code reviews on this repo. Configure here. |
Omit text traces and retain only structured frame fields. Redact complete JSON credential values containing escaped quotes or backslashes. Refs: FOUR-34463
Refs: FOUR-34463
Resolve SonarQube return-count and regex-complexity findings without changing diagnostic behavior. Refs: FOUR-34463
|




Issue & Reproduction Steps
Script microservice 1.2.1 can return a generic exit-status message in
error_messagealongside an actionable cause inerror.error. ProcessMaker prioritizes the generic message and loses executor diagnostics when constructing the exception. An empty Smart Extract Variable Name reproduces this behavior.Solution
How to Test
ScriptMicroserviceErrorContractTest: 49 tests passed, 124 assertions. Coverage includes both response formats, exit codes 1 and 255, fallback behavior, timeouts, text-trace omission, structured-frame filtering, escaped JSON credential redaction, long credentials with PCRE JIT enabled and disabled, redaction failure handling, all credential families in JSON and plain text, and diagnostic scalar/depth compatibility.variableName is requiredwas persisted and displayed, while executor diagnostics and correlation identifiers remained in application logs.Related Tickets & Packages
ci:deploy