Can't download files when file already exists locally and message checksum is set to arbitrary
#1351
Labels
bug
Something isn't working
Discussion_Needed
developers should discuss this issue.
Priority 4 - Strategic
would benefit multiple use cases if resolved
regression
Broke something that was working before.
v3
issue deferred to or affects version 3
work-around
a work-around is provided, mitigating the issue.
When a message comes in with an
arbitrary
checksum, and we want to download this file in a location whereThe file gets labeled as a duplicate and is rejected.
For my use case, I found, that
xattr
wasn't installed when I did asr3 features
.I installed it and see'd if that helped, but some files were still being labeled as duplicates.
I think something might be wrong in
compute_local_checksum
sarracenia/sarracenia/flow/__init__.py
Lines 1430 to 1454 in 9b2ff58
I've added debugging in the source and found that line 1439 returns as False.
When this happens, this line of code is executed and will always set an
arbitrary
checksum as a duplicate.sarracenia/sarracenia/flow/__init__.py
Lines 1459 to 1460 in 9b2ff58
I think we might need to change the
>=
to a=<
? If the file at the destination already exists, the mtime should be lesser than that of the file we're trying to download.Work around
We can work around this by overriding the checksum with
identity cod,sha512
however this isn't good practice, because we can't truely validate the integrity of the file that comes from the source.The text was updated successfully, but these errors were encountered: