Commit e8311fb
committed
CLDSRV-908: populate dataStoreETag on the CopyObject recompute path
The recompute path writes the destination through plain data.put, which
(unlike data.copyObject, used by the propagate path) does not return a
dataStoreETag, so the destination's location entry was stored without one.
Nothing breaks visibly — partNumber readers fall back to treating the copy
as a single part — but it left the recompute path as the only data-writing
path producing legacy ETag-less locations and dropped the written-bytes MD5
that integrity/audit tooling relies on.
Read the MD5 from data.put's hashedStream callback argument (completedHash,
which the arsenal wrapper guarantees is set before the callback fires) and
stamp the location as 1:<md5>, matching createAndStoreObject. Falls back to
dataRetrievalInfo.dataStoreETag for external backends. Adds a unit test
asserting the recomputed destination location carries the 1:-prefixed MD5.1 parent e6ae5ae commit e8311fb
2 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
253 | | - | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
974 | 975 | | |
975 | 976 | | |
976 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
977 | 997 | | |
978 | 998 | | |
979 | 999 | | |
| |||
0 commit comments