deislabs / bindle

Bindle: Object Storage for Collections
Apache License 2.0
263 stars 37 forks source link

Standalone push does not error on existing invoice #335

Open itowlson opened 2 years ago

itowlson commented 2 years ago

Scenario:

Expected behaviour: an error saying "that invoice already exists"

Actual behaviour: no error and my push is silently ignored

It seems that a standalone push checks if the invoice exists, and if it does, it attempts to upload any of the existing invoice's missing parcels from the standalone bindle. In this case, the invoice in the standalone bindle is entirely ignored.

The "fill in what's missing" behaviour is convenient when it's, say, retrying an interrupted operation. But the side effect of "silently do nothing" when someone reuses an ID is not.

Options: