resource.file cannot access file A when another file B's name starts with file A's name
How to reproduce
- Create resource in some project.
- Upload file
a - Upload file
a1 - In python, run
import coscine
token = "My Coscine API token"
client = coscine.ApiClient(token)
project = client.project("My Project")
resource = project.resource("My Resource")
myfile = resource.file('a')
Expected result
A FileObject corresponding to the uploaded file a.
Actually obtained result
An TooManyResults exception is thrown. The Coscine API responds with all files which start with a, which are two files in this case.