Bug: Filter fixes by cstamas · Pull Request #1655 · apache/maven-resolver

@cstamas

Two major issues: one was that it tried to fix the Maven issue
of remote repository uniqueness (globally), and that attempt
was in fact wrong, fix is elsewhere. The reason it tried to do
this is in fact to circumvent locking issues apache#1644.

The other issue was filter lifecycle, manager did it wrongly:
the bug caused that one session was used to acquire filters
and same filter got used for potentially other (maybe even
reconfigured) session. This overlook forced filters to
implement hoops and loops (to prevent recursion), but also
prevented any third party code to have saying in filter
operation.

Changes:
* fix manager to make sure filters and session are aligned
* fix/simplify prefix filter recursion prevention
* introduce public and documented way to inhibit prefix discovery

cstamas added a commit to cstamas/maven-resolver that referenced this pull request

Nov 14, 2025
Also, fix misaligned filter sources re session

This is "mild backport" of apache#1655
Signed-off-by: Tamas Cservenak <tamas@cservenak.net>

@cstamas

@cstamas cstamas marked this pull request as ready for review

November 14, 2025 17:26

@cstamas

Whenever RemoteRepository is used as a key in map, it has to
be normalized, as otherwise things may fall apart.

@cstamas cstamas changed the title Bug: fix prefix filter discovery Bug: Filter fixes

Nov 17, 2025

cstamas added a commit that referenced this pull request

Nov 17, 2025
Changes:
* fix manager to make sure filters and session are aligned
* support same (newly introduced) properties

This is "mild backport" of #1655

gnodet

@cstamas

@cstamas