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

   ## Backport of #12612
   
   Cherry-pick of #12612 onto `maven-4.0.x`.
   
   **Original PR:** #12612 - fix #12583: Inverted file existence check in 
DefaultTransport.put()
   **Original author:** @elharo
   **Target branch:** `maven-4.0.x`
   
   ### Original description
   
   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
   
   ---
   
   🤖 Generated with [Claude Code](https://claude.ai/code)


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