chore: bump reva to v2.42.5

This commit is contained in:
Viktor Scharf
2026-03-09 12:36:50 +01:00
parent bd02897df1
commit bd649d02ac
10 changed files with 46 additions and 30 deletions
@@ -247,11 +247,17 @@ func (s *svc) executePathCopy(ctx context.Context, selector pool.Selectable[gate
Ref: cp.destination,
Opaque: &typespb.Opaque{
Map: map[string]*typespb.OpaqueEntry{
"Upload-Length": {
net.HeaderUploadLength: {
Decoder: "plain",
// TODO: handle case where size is not known in advance
Value: []byte(strconv.FormatUint(cp.sourceInfo.GetSize(), 10)),
},
net.HeaderOCMtime: {
Decoder: "plain",
Value: []byte(
utils.TimeToOCMtime(utils.TSToTime(cp.sourceInfo.GetMtime())),
),
},
},
},
}
@@ -461,6 +467,12 @@ func (s *svc) executeSpacesCopy(ctx context.Context, w http.ResponseWriter, sele
// TODO: handle case where size is not known in advance
Value: []byte(strconv.FormatUint(cp.sourceInfo.GetSize(), 10)),
},
net.HeaderOCMtime: {
Decoder: "plain",
Value: []byte(
utils.TimeToOCMtime(utils.TSToTime(cp.sourceInfo.GetMtime())),
),
},
},
},
}