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

Cleanup of failed upload removes all revisions of article file #3674

Closed
ctgraham opened this issue May 8, 2018 · 3 comments
Closed

Cleanup of failed upload removes all revisions of article file #3674

ctgraham opened this issue May 8, 2018 · 3 comments
Assignees
Milestone

Comments

@ctgraham
Copy link
Collaborator

ctgraham commented May 8, 2018

@lilients, @asmecher, uploading multiple Review files in 2.4.8.x generates multiple revisions for the Review file instead of multiple review files. Is this intended functionality?

Steps to reproduce:
Login as Reviewer, navigate to review, step 4. Repeatedly upload review files.

Because ReviewerAction::uploadReviewAction() checks whether the review assignment has a single / any file, the call to ArticleFileManager::handleUpload will increment the existing file's revision number.

If the upload of a new Review file fails, when we delete the "dummy" file (without a revision id), we actually end up deleting all revisions of the Review file courtesy of $articleFileDao->deleteArticleFileById($articleFile->getFileId()).

I think this secondary problem is solved by adding the revisionId to this call. but I'm unclear if the intent is really for multiple files uploaded to a review to be different files, or different revisions of one file.

@ctgraham ctgraham added this to the OJS 2.4.9 milestone May 8, 2018
@ajnyga
Copy link
Collaborator

ajnyga commented May 8, 2018

Do you mean this: #2097 (comment)

@ctgraham
Copy link
Collaborator Author

ctgraham commented May 8, 2018

Perhaps, @ajnyga. I'm reading the other thread as a concern that supplemental files were being uploaded as new revisions of the submission file. Similarly, if I as a reviewer (or editor) in OJS2 upload multiple files to the review's "Review Step 4: Uploaded files", what do I really mean by that?

image

@ctgraham
Copy link
Collaborator Author

@asmecher confirms the revision increment as intended functionality here.

@ctgraham ctgraham changed the title Uploading new Review file generates new revision Cleanup of failed upload removes all revisions of article file May 24, 2018
@ctgraham ctgraham self-assigned this May 24, 2018
ctgraham added a commit to ulsdevteam/ojs that referenced this issue May 24, 2018
bozana added a commit to bozana/omp that referenced this issue Jan 31, 2019
@NateWr NateWr closed this as completed Oct 18, 2021
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

No branches or pull requests

3 participants