More of a problem of API design than anything, but uploads.finish synchronously returns an instance of File, so the SHA-1 hash might be invalid, and yet Foxhound has to assume that it's correct.
Hash mismatch can be detected as the first phase of indexing and an error set then, along with the deadline for removal, however this should imho be documented either way.
More of a problem of API design than anything, but
uploads.finish
synchronously returns an instance ofFile
, so the SHA-1 hash might be invalid, and yet Foxhound has to assume that it's correct.Hash mismatch can be detected as the first phase of indexing and an error set then, along with the deadline for removal, however this should imho be documented either way.