Bug #15916
closed[controller] POST /arvados/v1/collections/ (with extra trailing slash) returns 404
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
Related issues
Updated by Peter Amstutz almost 5 years ago
- Status changed from New to In Progress
Updated by Peter Amstutz almost 5 years ago
- Description updated (diff)
- Status changed from In Progress to New
Updated by Tom Clegg almost 5 years ago
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.
Updated by Peter Amstutz almost 5 years ago
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.
Updated by Tom Clegg almost 5 years ago
- Related to Bug #15921: [Workbench2] Remove spurious trailing slash from API endpoints added
Updated by Tom Clegg almost 5 years ago
- Subject changed from [controller] Can't create collection with EnableBetaController14287: true to [controller] POST /arvados/v1/collections/ (with extra trailing slash) returns 404