Bug #15916
closed
[controller] POST /arvados/v1/collections/ (with extra trailing slash) returns 404
Added by Peter Amstutz about 5 years ago.
Updated about 5 years ago.
Description
Attempting to create a collection by POST to /arvados/v1/collections/ responds with a 404 with {"errors":["API endpoint not found"]}
Can be reproduced by attempting to upload a file on workbench2.c97qk.arvadosapi.com
- Status changed from New to In Progress
- Description updated (diff)
- Status changed from In Progress to New
Should this be treated as a workbench2 bug? I don't think we advertise or document such an endpoint (with a trailing slash) anywhere -- it seems like a workbench2 error that used to be magically fixed by Rails.
Tom Clegg wrote:
Should this be treated as a workbench2 bug? I don't think we advertise or document such an endpoint (with a trailing slash) anywhere -- it seems like a workbench2 error that used to be magically fixed by Rails.
Personally I think controller should accept it and strip the trailing slash, since we don't know what else out there could be relying on this behavior. Otherwise we have to review all the client code to verify that it doesn't happen anywhere else.
- Related to Bug #15921: [Workbench2] Remove spurious trailing slash from API endpoints added
- Subject changed from [controller] Can't create collection with EnableBetaController14287: true to [controller] POST /arvados/v1/collections/ (with extra trailing slash) returns 404
- Status changed from New to Rejected
Also available in: Atom
PDF