jason810496 opened a new pull request, #71526:
URL: https://github.com/apache/airflow/pull/71526

   …
   
   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)


-- 
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