Closed Rocksau80 closed 1 year ago
Thank you very much for your efforts. I tried the workflow again during the weekend with the same result.
I used rake redmine:dmsf_convert_documents issues=1 dry_run=1 RAILS_ENV="production"
and it went through without any errors. But the documents were already converted even if I set dry_run=1. After that only for my administrator account the files were visible. All other users couldn't see any file no matter which privilege they had for DMS.
I also found something in the wiki: here it says the syntax is dry=true
but here in point 11 it says dry_run=1
.
I went through it step by step to see where it fails. So now I did the upgrade vom 3.0.12 to 3.0.13-devel without any further steps. And now permission to see folders and documents in these folders is completely missing for normal users. So files uploaded in the very level of a project are visible to users but not the folders and the documents in there. That's what the administrator user sees: What normal users see: These are the permissions set:
I've fixed several problems there. It should work now. Concerning dry_run
, it doesn't matter what is there. It checks whether it is empty.
Looks very promising right now. Files are converted and accessible for the users. I'm doing some more tests here.
Everything looks good now. There is one problem left and I don't know where I should seek support for that: I ran the convert rake task and the files module is disabled. But users still see the upload field for files Act as attachable is set to files & DMS but if we use the lower upload area the files end up in the deactivated files module. If I run the convert job after upload the file is moved to DMSF structure.
Files attached to issues are independent on Files module. I think that in Redmine is no such option to disable attachments for issues. Maybe we could extend the pick list to serve third option "Documents only" and hide the Files upload area then.
I guess I'll open a discussion and/or ticket on the Redmine page about that. It's a bit confusing that if I disable the files and the documents module users still are able to upload stuff. Normally I would disable files for a reason - at the moment because there is a way better option to handle files called DMSF. I opened a ticket at Redmine https://www.redmine.org/issues/38682
After converting the documents to DMSF all folders are missing the permissions. I have to change permissions for every folder in a project so that users can see the files. Is there a rake task for that? Or did I miss something during conversion? Folders are showed as created by anonymous while the files are showed as created by uploader. But the checkboxes for the permission groups are empty for every folder.