gradle / plugin-portal-requests

Gradle Plugin Portal issues and requests.
https://plugins.gradle.org/
12 stars 8 forks source link

Trailing slash issue when GPP accessing directory #232

Closed Talavera316 closed 1 month ago

Talavera316 commented 1 month ago

For http get at GPP directory with the trailing slash, for example: https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api/

getting a redirection with malformed URL (double slash before “org”) https://repo.maven.apache.org/maven2//org/sonarsource/scanner/api/sonar-scanner-api/

when there is no trailing slash: https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api the redirection works nice https://repo.maven.apache.org/maven2/org/sonarsource/scanner/api/sonar-scanner-api/

Is it intentional or just a side effect? Björn Kautler's (Vampire) comment to the issue discussion I would assume this is a bug, maybe introduced with the change to redirect to MC instead of JC.

ov7a commented 1 month ago

Thanks, we'll fix that soon. FTR, this bug is unrelated to the switch to Maven Central and was introduced earlier (at the end of June).

ov7a commented 1 month ago

This was fixed.