Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

When images are attached to incoming email, cron job creates them as root preventing other uploads on the wiki #3

Open
MagicFab opened this issue Apr 5, 2018 · 1 comment

Comments

@MagicFab
Copy link

MagicFab commented Apr 5, 2018

At the beginning of this month (April), an incoming email was imported into our Redmine using this plugin.

The attachments were extracted and imported as attached images to the issue created via the cron job that runs every minute to check the incoming email. Since this was the first case of images imported this month, the corresponding directories under 2018/04 has root:root as owner and group, which caused internal errors in the browse/upload button in issues when trying to upload images, as well as in wiki pages.

This command was used to fixed permissions, then everything was OK again:

chown www-data:www-data -R /var/lib/redmine/default/files/2018

Somewhere in this plugin when the files are imported into Redmine the ownserhip should be explicitly set to www-data:www-data.

@maeda-m
Copy link
Contributor

maeda-m commented Apr 10, 2018

Thank you for your report.

I have had the same thing.
Perhaps you are running the "redmine: email: receive_xxx" command in the root user crontab?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants