INFRA-227: Can't upload Word doc to IDRC site

Metadata

Source
INFRA-227
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Alan Harnum
Reporter
Jonathan Hung
Created
2019-05-29T11:37:37.147-0400
Updated
2019-05-30T11:19:28.610-0400
Versions
N/A
Fixed Versions
N/A
Component
N/A

Description

Attempting to upload a Word DOCX file gives a "Failed to move file: /var/www/993da6cd/tmp/phpSSUJwp to /var/www/993da6cd/images/OCADU-EAS-Referral.docx" error.

To reproduce:
1. Login as administrator.
2. Choose "Media" in left sidebar from the main Dashboard.
3. Choose "Upload", and attempt to upload the DOCX file.
4. Note the error.

Comments

  • Jonathan Hung commented 2019-05-29T11:38:36.394-0400

    Notes:

    • This bug is preventing uploading of a Doctor referral form required by VTS.
    • DOCX is an allowed file extension.
    • This bug is possibly caused by a permission error on the directory.
  • Alan Harnum commented 2019-05-30T11:16:59.523-0400

    This was because of an SELinux policy issue. I disabled it temporarily and uploaded the file.

    I'll look longer term into what the SELinux policy setting should be for the /images directory to allow uploads from within the CMS web interface.