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

   ## Summary
   
   Backport of Fix Set B (credential scoping + relocation validation + server 
ID matching) to maven-3.9.x.
   
   - Validate relocation coordinates from resolved project metadata (reject 
path traversal, slashes, backslashes, colons, control characters in 
`MavenMetadataSource`)
   - Bind server credentials to declared repository origins (new 
`OriginBoundAuthenticationSelector`)  
   - Match settings server IDs exactly (fix `equalsIgnoreCase` → `equals` in 
`DefaultWagonManager`)
   - Fix `assertEquals(true, ...)` → `assertTrue(...)` in 
`MavenMetadataSourceRelocationTest`
   
   Sibling PRs:
   - master: #12976
   - maven-4.0.x: #12977
   - maven-3.10.x: #12954
   
   Note: `DistributionManagementArtifactRelocationSource` does not exist on 
3.9.x (introduced in 3.10.x), so that file's validation is not included in this 
backport.
   
   ## Test plan
   
   - [x] `MavenMetadataSourceRelocationTest` covers relocation validation
   - [x] `OriginBoundAuthenticationSelectorTest` covers credential scoping
   - [ ] CI build passes on maven-3.9.x
   
   🤖 Generated with [Claude Code](https://claude.com/claude-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