Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17432

CiviMail/API Attachment API causes file permission / ACL issues

    Details

    • Type: Improvement
    • Status: To Backport
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.9, 4.7
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      How to reproduce:

      • Create a new Mailing (civimail)
      • Upload a file attachment in the "attachment" tab (not in the WYSIWYG), ex: attaching a PDF to a mailing.

      Result: the uploaded file in civicrm/custom/ will be owned by www-data.www-data and mode will be 0600.

      This causes problems when running cron as another user than www-data. For example, the Aegir cron runs as the "aegir" unix user. This user must at least be able to read the file.

        Attachments

          Activity

            People

            • Assignee:
              mlutfy Mathieu Lutfy
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: