OutputManager API ambiguity. #980
Labels
bug
Something isn't working
nmpi service
The NMPI service back-end that interfaces to SpiNNaker. Former RemoteSpiNNaker
In the
OutputManager
, there are two methodsgetResultFile
with different numbers of parameters. How should the JAX-RS engine tell which to call in each case?Right now, they're mapped to the paths:
/output/{projectId}/{id}/{filename:.*}
/output/{id}/{filename:.*}
For the actual path
/output/123/456/789/abc.txt
, which one will be picked is entirely ambiguous! This is not a good state of affairs. We either need to make the software able to pick one clearly each time (e.g., by adding a RE to the matchers forprojectId
andid
so that the software can clearly figure out exactly one of them to use in all cases) or we need to remove one of them and insist that either theprojectId
is always supplied or never supplied.The text was updated successfully, but these errors were encountered: