diff --git a/internal/grpc/services/gateway/storageprovider.go b/internal/grpc/services/gateway/storageprovider.go index 40fb72a4ab..3d51a9eb00 100644 --- a/internal/grpc/services/gateway/storageprovider.go +++ b/internal/grpc/services/gateway/storageprovider.go @@ -20,7 +20,6 @@ package gateway import ( "context" - "fmt" "net/url" "path" "strings" @@ -221,8 +220,6 @@ func (s *svc) initiateFileUpload(ctx context.Context, req *provider.InitiateFile }, nil } - fmt.Println("debugging initiatefileupload response", storageRes) - protocols := make([]*gateway.FileUploadProtocol, len(storageRes.Protocols)) for p := range storageRes.Protocols { protocols[p] = &gateway.FileUploadProtocol{ diff --git a/internal/grpc/services/storageprovider/storageprovider.go b/internal/grpc/services/storageprovider/storageprovider.go index a4bd157ea6..f1c4a7d75a 100644 --- a/internal/grpc/services/storageprovider/storageprovider.go +++ b/internal/grpc/services/storageprovider/storageprovider.go @@ -928,7 +928,6 @@ func (s *service) ListContainerStream(req *provider.ListContainerStreamRequest, func (s *service) ListContainer(ctx context.Context, req *provider.ListContainerRequest) (*provider.ListContainerResponse, error) { newRef, err := s.unwrap(ctx, req.Ref) - fmt.Println("debugging: storageprovider: ", req, newRef) mds, err := s.storage.ListFolder(ctx, newRef, req.ArbitraryMetadataKeys) if err != nil { var st *rpc.Status @@ -1538,17 +1537,14 @@ func (s *service) unwrap(ctx context.Context, ref *provider.Reference) (*provide // TODO move mount path trimming to the gateway fn, err := s.trimMountPrefix(ref.GetPath()) if err != nil { - fmt.Println("debugging: problem found", fn, err) return nil, err } return &provider.Reference{Path: fn}, nil } func (s *service) trimMountPrefix(fn string) (string, error) { - fmt.Println("debugging trimMountPrefix", fn, s.mountPath, len(fn), len(s.mountPath)) if strings.HasPrefix(fn, s.mountPath) { p := path.Join("/", strings.TrimPrefix(fn, s.mountPath)) - fmt.Println("debugging we are here", p) return p, nil } return "", errtypes.BadRequest(fmt.Sprintf("path=%q does not belong to this storage provider mount path=%q", fn, s.mountPath)) diff --git a/internal/http/services/datagateway/datagateway.go b/internal/http/services/datagateway/datagateway.go index 3c30677849..7f4029d3ef 100644 --- a/internal/http/services/datagateway/datagateway.go +++ b/internal/http/services/datagateway/datagateway.go @@ -21,7 +21,6 @@ package datagateway import ( "context" "crypto/tls" - "fmt" "io" "net/http" "net/url" @@ -323,7 +322,6 @@ func (s *svc) doPut(w http.ResponseWriter, r *http.Request) { return } httpReq.Header = r.Header - fmt.Println("debugging PUT", httpReq, claims, target) httpRes, err := httpClient.Do(httpReq) if err != nil { log.Err(err).Msg("error doing PUT request to data service") diff --git a/internal/http/services/owncloud/ocdav/propfind.go b/internal/http/services/owncloud/ocdav/propfind.go index 8fb457cb3f..0ef6544c00 100644 --- a/internal/http/services/owncloud/ocdav/propfind.go +++ b/internal/http/services/owncloud/ocdav/propfind.go @@ -70,7 +70,6 @@ const ( func (s *svc) handlePathPropfind(w http.ResponseWriter, r *http.Request, ns string) { ctx := r.Context() fn := path.Join(ns, r.URL.Path) - fmt.Println("debugging fn", fn) sublog := appctx.GetLogger(ctx).With().Str("path", fn).Logger() @@ -82,7 +81,6 @@ func (s *svc) handlePathPropfind(w http.ResponseWriter, r *http.Request, ns stri } ref := &provider.Reference{Path: fn} - fmt.Println("debugging reference inside webdav", fn) parentInfo, resourceInfos, ok := s.getResourceInfos(ctx, w, r, pf, ref, false, sublog) if !ok { @@ -263,7 +261,6 @@ func (s *svc) getResourceInfos(ctx context.Context, w http.ResponseWriter, r *ht ArbitraryMetadataKeys: metadataKeys, } - fmt.Println("debugging request for", req) res, err := client.Stat(ctx, req) if err != nil { log.Error().Err(err).Interface("req", req).Msg("error sending a grpc stat request") @@ -283,7 +280,6 @@ func (s *svc) getResourceInfos(ctx context.Context, w http.ResponseWriter, r *ht HandleErrorStatus(&log, w, res.Status) return nil, nil, false } - fmt.Println("debugging after client.stat", res) if spacesPropfind { res.Info.Path = ref.Path @@ -331,7 +327,6 @@ func (s *svc) getResourceInfos(ctx context.Context, w http.ResponseWriter, r *ht Ref: ref, ArbitraryMetadataKeys: metadataKeys, } - fmt.Println("debugging: ListContainer: ", req) res, err := client.ListContainer(ctx, req) if err != nil { log.Error().Err(err).Msg("error sending list container grpc request") @@ -343,7 +338,6 @@ func (s *svc) getResourceInfos(ctx context.Context, w http.ResponseWriter, r *ht HandleErrorStatus(&log, w, res.Status) return nil, nil, false } - fmt.Println("debugging: ListContainer: ", res) resourceInfos = append(resourceInfos, res.Infos...) case depth == "infinity": diff --git a/internal/http/services/owncloud/ocdav/webdav.go b/internal/http/services/owncloud/ocdav/webdav.go index 1a5f0f89d1..06a1480156 100644 --- a/internal/http/services/owncloud/ocdav/webdav.go +++ b/internal/http/services/owncloud/ocdav/webdav.go @@ -19,7 +19,6 @@ package ocdav import ( - "fmt" "net/http" "path" ) @@ -97,7 +96,6 @@ func (h *WebDavHandler) init(ns string, useLoggedInUserNS bool) error { func (h *WebDavHandler) Handler(s *svc) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ns := applyLayout(r.Context(), h.namespace, h.useLoggedInUserNS, r.URL.Path) - fmt.Println("debugging webdav layout: ", ns, r.Context(), h.namespace, h.useLoggedInUserNS, r.URL.Path) switch r.Method { case MethodPropfind: s.handlePathPropfind(w, r, ns)