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

Unable to access note files after upgrade #4339

Closed
ptrckb opened this issue Jan 3, 2019 · 3 comments
Closed

Unable to access note files after upgrade #4339

ptrckb opened this issue Jan 3, 2019 · 3 comments

Comments

@ptrckb
Copy link
Contributor

ptrckb commented Jan 3, 2019

After upgrading an OJS 2.4 installation to 3.1.1, the 'Notes' tab of the 'Editorial History' does not have links to files attached to the old notes.

It seems this has been already reported (#1932) and fixed (8170fa2) but then mostly lost during #2163 (specifically 6027981).

When I try to reintroduce a DownloadFileLinkAction as a template variable on these notes, the link fails with the message:

The current role does not have access to this operation

Files of notes are not attached to a particular workflow stage. But the file access policy requires one or the access is denied.

@asmecher
Copy link
Member

@ptrckb, would you mind attaching a patch for the code change to re-add DownloadFileLinkAction?

@ptrckb
Copy link
Contributor Author

ptrckb commented Jan 31, 2019

@asmecher This patch for pkp-lib re-adds the links to the notes in Editorial History.

And they do work with pkp-lib up until fd81601 (ojs pkp/ojs@73a8f07). After that they fail with the message:

The current role does not have access to this operation.

You can create a dummy note file on a recent installation with:

INSERT INTO submission_files (submission_id,original_file_name,assoc_type,assoc_id,revision,file_type,file_size,file_stage,date_uploaded,date_modified) VALUES (<SUBMISSIONID>, 'myfile', '520', <NOTEID>,1,'text/plain',1,3,'2019-1-01','2019-01-01');

after replacing <SUBMISSIONID> and <NOTEID>.

@NateWr
Copy link
Contributor

NateWr commented Aug 30, 2022

Closing this as outdated. If you need help with a similar problem, please post in our community support forum.

@NateWr NateWr closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2022
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