Skip to content

Commit

Permalink
fix build after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Jul 6, 2022
1 parent b887045 commit 9c7fe92
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/http/services/owncloud/ocdav/propfind/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func (p *Handler) propfindResponse(ctx context.Context, w http.ResponseWriter, r
}

/*propRes, err :=*/
RenderMultistatusResponse(ctx, w, &pf, resourceInfos, p.PublicURL, namespace, spaceType, linkshares, sendTusHeaders)
RenderMultistatusResponse(ctx, w, &pf, resourceInfos, p.PublicURL, namespace, linkshares, sendTusHeaders)
/*
if err != nil {
log.Error().Err(err).Msg("error formatting propfind")
Expand Down Expand Up @@ -891,7 +891,7 @@ func RenderMultistatusFooter(_ context.Context, w http.ResponseWriter, sendTusHe
}

// RenderMultistatusResponse converts a list of resource infos into a multistatus response string
func RenderMultistatusResponse(ctx context.Context, w http.ResponseWriter, pf *XML, mds []*provider.ResourceInfo, publicURL, ns, spaceType string, linkshares map[string]struct{}, sendTusHeaders bool) {
func RenderMultistatusResponse(ctx context.Context, w http.ResponseWriter, pf *XML, mds []*provider.ResourceInfo, publicURL, ns string, linkshares map[string]struct{}, sendTusHeaders bool) {
log := appctx.GetLogger(ctx)
if err := RenderMultistatusHeader(ctx, w, sendTusHeaders); err != nil {
log.Err(err).Msg("error writing xml header")
Expand Down
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/publicfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s *svc) handlePropfindOnToken(w http.ResponseWriter, r *http.Request, ns s
infos := s.getPublicFileInfos(onContainer, depth == net.DepthZero, tokenStatInfo)

/*propRes, err :=*/
propfind.RenderMultistatusResponse(ctx, w, &pf, infos, s.c.PublicURL, ns, "", nil, false) // TODO why not announce TUS by sending the headers?
propfind.RenderMultistatusResponse(ctx, w, &pf, infos, s.c.PublicURL, ns, nil, false) // TODO why not announce TUS by sending the headers?
/*
if err != nil {
sublog.Error().Err(err).Msg("error formatting propfind")
Expand Down
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (s *svc) doFilterFiles(w http.ResponseWriter, r *http.Request, ff *reportFi
}

/*responsesXML, err :=*/
propfind.RenderMultistatusResponse(ctx, w, &propfind.XML{Prop: ff.Prop}, infos, s.c.PublicURL, namespace, "", nil, false) // TODO why not announce TUS by sending headers?
propfind.RenderMultistatusResponse(ctx, w, &propfind.XML{Prop: ff.Prop}, infos, s.c.PublicURL, namespace, nil, false) // TODO why not announce TUS by sending headers?
/*
if err != nil {
log.Error().Err(err).Msg("error formatting propfind")
Expand Down
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (h *VersionsHandler) doListVersions(w http.ResponseWriter, r *http.Request,
}

/*propRes, err :=*/
propfind.RenderMultistatusResponse(ctx, w, &pf, infos, s.c.PublicURL, "", "", nil, false)
propfind.RenderMultistatusResponse(ctx, w, &pf, infos, s.c.PublicURL, "", nil, false)
/*
if err != nil {
sublog.Error().Err(err).Msg("error formatting propfind")
Expand Down

0 comments on commit 9c7fe92

Please sign in to comment.