Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutputManager API ambiguity. #980

Open
dkfellows opened this issue Dec 13, 2016 · 1 comment
Open

OutputManager API ambiguity. #980

dkfellows opened this issue Dec 13, 2016 · 1 comment
Assignees
Labels
bug Something isn't working nmpi service The NMPI service back-end that interfaces to SpiNNaker. Former RemoteSpiNNaker

Comments

@dkfellows
Copy link
Member

In the OutputManager, there are two methods getResultFile 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 for projectId and id 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 the projectId is always supplied or never supplied.

@dkfellows dkfellows added the bug Something isn't working label Dec 13, 2016
@rowleya
Copy link
Member

rowleya commented Dec 14, 2016

I can see the issue here - I think the form without projectId was for backwards compatibility, but was also provided before sub-folders were supported! My suggestion would be to remove the backward compatibility at this point as it is unlikely we even have any files from jobs prior to this point any more with a 1-month deletion schedule!

In summary, keep the form:

/output/{projectId}/{id}/{filename:.*}

and get rid of the other one.

@Christian-B Christian-B added this to the 6.0.0 milestone Jul 8, 2020
@dkfellows dkfellows removed this from the 6.0.0 milestone Apr 13, 2021
@dkfellows dkfellows transferred this issue from SpiNNakerManchester/RemoteSpiNNaker Aug 5, 2023
@dkfellows dkfellows added the nmpi service The NMPI service back-end that interfaces to SpiNNaker. Former RemoteSpiNNaker label Aug 5, 2023
@dkfellows dkfellows removed their assignment Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nmpi service The NMPI service back-end that interfaces to SpiNNaker. Former RemoteSpiNNaker
Projects
None yet
Development

No branches or pull requests

3 participants