github-actions[bot] opened a new pull request, #64587:
URL: https://github.com/apache/airflow/pull/64587

   The tasks endpoint crashed with a 500 Internal Server Error when sorting
   by a field (e.g. start_date) that contains None values, because Python 3
   cannot compare None with None using '<'.
   
   This adds explicit validation of the order_by parameter against a
   whitelist of sortable fields (returning 400 for invalid fields, consistent
   with SortParam used in other endpoints) and handles None values in the
   sort key so nullable fields work correctly.
   
   Closes: #63927
   (cherry picked from commit 15cf396a3b906f9297852d6a4cb9e36dbdb43ef1)
   
   Co-authored-by: Antonio Mello <[email protected]>
   Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>


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