TritonDataCenter / node-manta

Node.js SDK for Manta
75 stars 54 forks source link

`mmpu parts` threw "AssertError: path (string) is required" for a committed upload #340

Open askfongjojo opened 6 years ago

askfongjojo commented 6 years ago

I have a simple one-part upload and did a mmpu parts before/after committing it:

[root@base64-16-4-1 ~]# mmpu parts $uid
/angela.fong/uploads/e6b/e6b61194-5a41-c2ff-8895-f3f88d6d3103/0

[root@base64-16-4-1 ~]# mmpu commit $uid 4b7b28b4-a707-4997-b9b3-a8791a19c221

[root@base64-16-4-1 ~]# mmpu parts $uid
mmpu: AssertionError: path (string) is required

The commit itself was successful. If the parts command is not meant to be used for committed uploads, it'll be better to return an explicit error than throw an assertion error.