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

   pathlib.Path objects have a resolve() method for filesystem resolution
   (strict parameter), which conflicts with the Resolvable.resolve(context)
   protocol used by the templater. When a pathlib.Path subclass is passed as
   a templated field value, the templater incorrectly calls
   path.resolve(context), where the context dict is interpreted as
   strict=True, causing FileNotFoundError if the path doesn't exist.
   
   This adds an isinstance(value, os.PathLike) guard before calling
   resolve() to ensure pathlib.Path objects are returned as-is.
   (cherry picked from commit 23dec8d2a6ec3f8ef0a7b6f12255b990ba861ef1)
   
   Co-authored-by: Yoann <[email protected]>
   Closes: #55412


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