The GitHub Actions job "Tests (AMD)" on airflow.git/backport-537feaf-v3-3-test 
has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
66f5bdcfb06e719117e197b493a824636b61cbe1 / Kaxil Naik <[email protected]>
[v3-3-test] Fix Variables API handling of non-string JSON values (#71018)

POST /api/v2/variables with a non-string JSON value (array, object,
bool, null) silently stored the Python repr of the value, which cannot
be read back with deserialize_json. PATCH with the same payload failed
with a masked 500 because the raw value hit the ORM Fernet encryption
step.

VariableBody now JSON-encodes non-string values once at request
validation, covering POST, PATCH and bulk consistently, matching the
behaviour the bulk create path already had for dicts and lists.
Variable.set_val also raises a clear TypeError instead of the cryptic
"encoding without a string argument".
(cherry picked from commit 537feaf)

Co-authored-by: Kaxil Naik <[email protected]>
(cherry picked from commit d83617b37526fad9c0ecc6161322f67dbe987fc8)

Report URL: https://github.com/apache/airflow/actions/runs/31699345101

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to