From 8dfc5877fa18bf4d986ed4b4c64e1b85a9b06b2e Mon Sep 17 00:00:00 2001 From: "Hugo G. Labrador" Date: Wed, 4 Mar 2020 11:39:39 +0100 Subject: [PATCH] add more owncloud capabilities (#503) --- internal/http/services/owncloud/ocdav/propfind.go | 2 +- internal/http/services/owncloud/ocs/capabilities.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/http/services/owncloud/ocdav/propfind.go b/internal/http/services/owncloud/ocdav/propfind.go index b278ad321d..7d3948d893 100644 --- a/internal/http/services/owncloud/ocdav/propfind.go +++ b/internal/http/services/owncloud/ocdav/propfind.go @@ -68,7 +68,7 @@ func (s *svc) doPropfind(w http.ResponseWriter, r *http.Request, ns string) { req := &provider.StatRequest{Ref: ref} res, err := client.Stat(ctx, req) if err != nil { - log.Error().Err(err).Msg("error sending a grpc stat request") + log.Error().Err(err).Msgf("error sending a grpc stat request to ref:%+v", ref) w.WriteHeader(http.StatusInternalServerError) return } diff --git a/internal/http/services/owncloud/ocs/capabilities.go b/internal/http/services/owncloud/ocs/capabilities.go index a45bb3b63e..94d276f8c3 100644 --- a/internal/http/services/owncloud/ocs/capabilities.go +++ b/internal/http/services/owncloud/ocs/capabilities.go @@ -287,9 +287,10 @@ type CapabilitiesFiles struct { // CapabilitiesDav holds dav endpoint config type CapabilitiesDav struct { - Chunking string `json:"chunking" xml:"chunking"` - Trashbin string `json:"trashbin" xml:"trashbin"` - Reports []string `json:"reports" xml:"reports>element" mapstructure:"reports"` + Chunking string `json:"chunking" xml:"chunking"` + Trashbin string `json:"trashbin" xml:"trashbin"` + Reports []string `json:"reports" xml:"reports>element" mapstructure:"reports"` + ChunkingParallelUploadDisabled bool `json:"chunkingParallelUploadDisabled" xml:"chunkingParallelUploadDisabled"` } // CapabilitiesFilesSharing TODO document