code icon indicating copy to clipboard operation
code copied to clipboard

Make Maven file resolution case-insensitive

Open zefir-git opened this issue 1 month ago • 0 comments

When Maven resolves the dependency, it sends the artifactId as part of the .jar and .pom file name in whatever case was specified for the dependency.

The problem is that the file name is in the case that the user uploaded it (usually the same as their original artifactId), and the .pom file generated by modrinth is always lowercase. This means that unless your artifactId is in lowercase ONLY and the uploaded file is also only in lowercase, Modrinth will fail to serve the correct file.

This PR changes the file name comparison to be case-insensitive.

zefir-git avatar Dec 16 '25 14:12 zefir-git