Add debug logging to NewUserWebDAVClient to diagnose URL construction

This commit is contained in:
Leon Bösche
2026-01-10 23:40:27 +01:00
parent 0ce9185373
commit 9b10b1f6f1
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@@ -69,6 +69,8 @@ func NewUserWebDAVClient(nextcloudBaseURL, username, password string) *WebDAVCli
baseURL := strings.Split(nextcloudBaseURL, "/remote.php")[0]
// Build the full WebDAV URL for this user
fullURL := fmt.Sprintf("%s/remote.php/dav/files/%s", baseURL, username)
fmt.Printf("[WEBDAV-USER] Input URL: %s, Base: %s, Full: %s, User: %s\n", nextcloudBaseURL, baseURL, fullURL, username)
return &WebDAVClient{
baseURL: fullURL,