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

Block user from starting queued downloads with set status #42 #44

Open
wants to merge 4 commits into
base: 36_queuing
Choose a base branch
from

Conversation

patrick-austin
Copy link

  • If a user tries to set the status of a job without a preparedId in the PAUSED status (i.e. a large one that has been queued) it will raise a 403 and leave the status unchanged

Merged in changed from #39 to get the Long.equals check in UserResourceTest, which the new test relies on.

Closes #42

userResource.setDownloadStatus(testDownload.getId(), facilityName, sessionId, DownloadStatus.RESTORING.toString());
});

Response response = userResource.getDownloads(facilityName, sessionId, "1 = 1");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with the previous PR, if null can't be used instead of "1 = 1" then this needs a comment as to what it's for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants