Skip to content

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Aug 13, 2025

Resolver now with enabled prefix file discovery discovers even wrong files, most specifically in Maven ITs where Jetty handler is not mounted to URL and receives all sort of garbage, that is assumed to be prefix file.

From now on, prefix file must start with following line (be the very first line in prefixes.txt):

## repository-prefixes/2.0

Fixes #1549

Resolver now with enabled prefix file discovery discovers
even wrong files, most specifically in Maven ITs where
Jetty handler is not mounted to URL and receives all
sort of garbage, that is assumed to be prefix file.

From now on, prefix file must start with following
line (be the very first line in prefixes.txt):
```
```

And then and only then is recognized as prefixes file.
@cstamas cstamas added this to the 2.0.11 milestone Aug 13, 2025
@cstamas cstamas self-assigned this Aug 13, 2025
@cstamas cstamas added the bug Something isn't working label Aug 13, 2025
@cstamas cstamas marked this pull request as ready for review August 13, 2025 21:34
@cstamas cstamas merged commit 6376ecd into apache:master Aug 13, 2025
8 checks passed
@cstamas cstamas deleted the prefix-magic branch August 13, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefixes file magic header check is missing
1 participant