masaori335 opened a new pull request, #14046:
URL: https://github.com/apache/trafficserver/pull/14046

   # Motivation
   
   `File::Path::Rebase()` used the throwing `std::filesystem` calls. A missing 
configuration directory, or a directory on
   the path that the server's user cannot search, made it throw 
`filesystem_error` out of the cript.
   
   # Approach
   
   `Rebase()` now uses the `error_code` overloads and treats a resolution 
failure the way it already treats a path that
   escapes the configuration directory: it logs a `TSError` and clears the 
path. The error names the configuration
   directory too, so the log tells a bad path from a missing directory. 
`Rebase()` is now `noexcept`.


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