mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-13 00:52:01 -04:00
refactor(graph): drop MS Graph framing from colon-path middleware logs
This commit is contained in:
committed by
Ralf Haferkamp
parent
7498e8f848
commit
6343f7e861
@@ -59,8 +59,8 @@ var (
|
||||
errUnauthenticated = errors.New("unauthenticated")
|
||||
)
|
||||
|
||||
// ResolveGraphPath returns middleware that detects MS Graph colon-syntax
|
||||
// path lookup URLs and rewrites them to the canonical
|
||||
// ResolveGraphPath returns middleware that detects colon-syntax path
|
||||
// lookup URLs and rewrites them to the canonical
|
||||
// /{version}/drives/{driveID}/items/{resolvedItemID}{suffix} form before
|
||||
// chi performs route matching. The requested API version is preserved
|
||||
// (for example, "v1.0" or "v1beta1").
|
||||
@@ -116,7 +116,7 @@ func ResolveGraphPath(gws pool.Selectable[gateway.GatewayAPIClient], logger log.
|
||||
l.Debug().
|
||||
Str("original", original).
|
||||
Str("rewritten", rewritten).
|
||||
Msg("rewrote MS Graph colon-syntax path")
|
||||
Msg("colon-path resolution: rewrote")
|
||||
|
||||
ctx := context.WithValue(r.Context(), OriginalPathContextKey, original)
|
||||
r = r.WithContext(ctx)
|
||||
|
||||
Reference in New Issue
Block a user