-
Notifications
You must be signed in to change notification settings - Fork 452
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
Activity Log fails to load when a file has been uploaded to a discussion message that was deleted #7453
Comments
Hi @zalamuia, please provide reproduction steps we can follow to reproduce the problem in our local development environment, like the following: To Reproduce
|
The situation occurred earlier too. However, recently I was following the conversation and found the root cause. There is no problem with the system of that particular paper until the paper has been sent to production.
iii. Editor send the paper to the production stage and notify the author via participant notification. iv. Try to upload/update paper in the copyediting stage as Copyedited. v. Start a few conversations with the author as an editor vi. Again author deleted 1/2 earlier conversation. vii. Probably paper can't be uploaded at stage iv and activity log can not be viewed. viii. Open the database check the NOTES table. I used phpMyAdmin. Sort the notes table by date created and check the sequence of the note_id Thanks. |
Thanks @zalamuia. I was able to reproduce the problem with the following steps:
The following error is in the error logs:
PR: Tests: @asmecher this happens because when a file is uploaded to a discussion, a submission log entry is recorded in the activity log:
This then lingers after the related query note has been deleted. Do you think this log entry should be there, though? A discussion file isn't really a "revision". For the main branch, should we leave it as-is, remove the log entry, or modify it to say something like "A file was uploaded to the discussion ..."? |
My instinct is to leave log entries in place, but make them behave better when they refer to external content that does not exist. If we could use a proper foreign key for log entries, that would mean an |
#7453 Fix activity log won't open when query note deleted
@asmecher and @NateWr I had a very similar problem with ojs 3.3.0-8. When trying access the activity log it would not finish loading. I resolved this by adding the changes in a1cf069, and in addition I had to also add a check to see if $reviewRound was null for
The error message I got was: |
Thanks @eirikhanssen. Can you file a new issue with those details? |
… to insufficient error handling in lib/pkp/classes/services/PKPSubmissionFileService.inc.php
Describe the bug
Please tell us what happens, what you expected to happen, and why you think it is a bug in the software.
I am using OJS 3.3.0.8 based on
OS platform | Linux
PHP version | 7.4.15
Apache version | Apache/2.4.6 (CentOS)
Database driver | mysql
Database server version | 5.5.60-MariaDB
It is found that some of the Activity Log can't be visible if the author deleted some of the notes. I just noticed recently at the production stage, the author deleted some conversions and I could not able to upload files at the copyediting stage as well as I am unable to view the activity log.
When I checked the database I have seen discontinued note id
Then I have added those missing ID's by copying the existing record then I managed to see the activity log and upload the file.
Please find the attached picture in a sequence.


Added two records by copying from one of the conversation by changing the note id
after added two records
I also faced this problem in many articles and could not be managed to identify the root cause of the problem. However, today I was communicating with the authors and noticed that the uploaded file with communication is missing and I tried to see the activity but I could not manage to see it. I could manage to find the database since I have access to the database and added those missing data to see the functionality.
I hope that the issue can be resolved if the author deleted some conversations.
Thanks.
Zahirul
The text was updated successfully, but these errors were encountered: