elharo opened a new pull request, #12612:
URL: https://github.com/apache/maven/pull/12612

   The condition `Files.isRegularFile(source)` in `DefaultTransport.put()` was 
inverted — it should have been `!Files.isRegularFile(source)`. This caused 
`put()` to reject valid existing files and silently accept non-existent ones, 
which broke `putBytes()` and `putString()` transitively.
   
   **Fix:** Added the missing `!` negation operator.
   
   **Tests:** Added `DefaultTransportTest` with tests for non-existent file 
rejection, valid file acceptance, and the `putBytes()` -> `put()` delegation 
chain.
   
   Closes #12583


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