Fix maven pom inheritance (#32943)

Fix  #30568
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-12-25 04:28:37 +00:00
1 parent ca31d478ee
commit 973363fec3
3 files changed
+63 -9

No files matched your search

+2
View File
@@ -461,6 +461,8 @@ func CommonRoutes() *web.Router {
r.Post("/api/charts", reqPackageAccess(perm.AccessModeWrite), helm.UploadPackage)
}, reqPackageAccess(perm.AccessModeRead))
r.Group("/maven", func() {
// FIXME: this path design is not right.
// It should be `/.../{groupId}/{artifactId}/{version}`, but not `/.../{groupId}-{artifactId}/{version}`
r.Put("/*", reqPackageAccess(perm.AccessModeWrite), maven.UploadPackageFile)
r.Get("/*", maven.DownloadPackageFile)
r.Head("/*", maven.ProvidePackageFileHeader)