From 9ecbc844e7eadfcd213399f79841200cc068a4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sun, 24 May 2026 20:09:13 +0000 Subject: [PATCH] fix(publish): warn when distribution missing and resource key cannot be pre-registered When b.Distribution is empty, the pre-registered resource key U:>> cannot be constructed, so concurrent POST requests to the same prefix are not serialized by the task queue. Add a log warning so operators are aware of the gap. --- api/publish.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/publish.go b/api/publish.go index 29043785..8ba32fd9 100644 --- a/api/publish.go +++ b/api/publish.go @@ -2,6 +2,7 @@ package api import ( "fmt" + "log" "net/http" "strings" @@ -307,6 +308,8 @@ func apiPublishRepoOrSnapshot(c *gin.Context) { storagePrefix = storage + ":" + prefix } resources = append(resources, "U"+storagePrefix+">>"+b.Distribution) + } else { + log.Printf("distribution not specified for publish to prefix '%s' - unable to lock ", prefix) } taskName := fmt.Sprintf("Publish %s repository %s/%s with components \"%s\" and sources \"%s\"",