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
Milestone
Comments
Do you mean this: #2097 (comment) |
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? |
ctgraham
added a commit
to ulsdevteam/ojs
that referenced
this issue
May 8, 2018
…created by file_id and revision
@asmecher confirms the revision increment as intended functionality here. |
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
added a commit
to ulsdevteam/ojs
that referenced
this issue
May 24, 2018
…created by file_id and revision
bozana
added a commit
to bozana/omp
that referenced
this issue
Jan 31, 2019
bozana
added a commit
to bozana/omp
that referenced
this issue
Jan 31, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.
The text was updated successfully, but these errors were encountered: