@@ -1396,6 +1396,7 @@ func (s *svc) statSharesFolder(ctx context.Context) (*provider.StatResponse, err
1396
1396
}
1397
1397
1398
1398
func (s * svc ) stat (ctx context.Context , req * provider.StatRequest ) (* provider.StatResponse , error ) {
1399
+ log := appctx .GetLogger (ctx )
1399
1400
providers , err := s .findProviders (ctx , req .Ref )
1400
1401
if err != nil {
1401
1402
return & provider.StatResponse {
@@ -1412,6 +1413,7 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St
1412
1413
Status : status .NewInternal (ctx , err , "error connecting to storage provider=" + providers [0 ].Address ),
1413
1414
}, nil
1414
1415
}
1416
+ log .Debug ().Interface ("ref" , req .Ref ).Msg ("calling Stat" )
1415
1417
rsp , err := c .Stat (ctx , req )
1416
1418
if err != nil || rsp .Status .Code != rpc .Code_CODE_OK {
1417
1419
return rsp , err
@@ -1421,6 +1423,7 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St
1421
1423
1422
1424
// otherwise, this is a Stat for "/", which corresponds to a 0-Depth PROPFIND from web to just get the fileid:
1423
1425
// we respond with an hardcoded value, no need to poke all storage providers as we did before
1426
+ log .Debug ().Interface ("ref" , req .Ref ).Msg ("sending back fake file-id" )
1424
1427
info := & provider.ResourceInfo {
1425
1428
Id : & provider.ResourceId {
1426
1429
StorageId : "/" ,
0 commit comments