You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Run Job webhook handler sets an option variable (ie: RD_OPTION_FILES_ADDED) from an incoming JSON payload, quotes around the items in a list appear to be lost, resulting in a string that is un-parsable by downstream json utilities (ie: python's json.loads(json_string)).
Describe the bug
When Run Job webhook handler sets an option variable (ie:
RD_OPTION_FILES_ADDED
) from an incoming JSON payload, quotes around the items in a list appear to be lost, resulting in a string that is un-parsable by downstream json utilities (ie: python'sjson.loads(json_string)
).Sample input JSON
Sample output (string value stored in
RD_OPTION_FILES_ADDED
variable)Attempting to parse the string stored in the RD_OPTION variable fails due to the missing quotes, similar to the following example
My Rundeck detail
To Reproduce
Steps to reproduce the behavior:
jq
or python'sjson.loads(json_string)
{"head_commit": {"added": ["file1.txt","file2.txt"]}}
a. RD_OPTION var that was set does not contain the quotes around list items
b. job fails due to failure to parse json string
Expected behavior
Expect that the RD_OPTION value actually be the captured string - including any quotes it had to start with
Screenshots
If applicable, add screenshots to help explain your problem.
For a payload including list of files as follows...
{"head_commit": {"modified": ["usr-behavior-aggregation/github-notification/pr_reminder.py"]}}
The results as seen in Rundeck UI for the values captured appear as follows...
Desktop (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: