Problem

If the tmgmt_file folder exists, but it is not writable, the export will fail. The reason is that the file translator, when requesting the translation and calling file_prepare_directory() does not try to make the folder writable if it finds already one.

Proposed solution

Add the FILE_MODIFY_PERMISSIONS flag to the file_prepare_directory() call.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vasi1186 created an issue. See original summary.

vasi1186’s picture

Status: Active » Needs review
FileSize
876 bytes

I attached a patch that should fix the issue. Should we maybe also show a message in case this operation fails? At the moment you will not see any message on the screen. You will just be redirected to the job form without knowing what happened.

Status: Needs review » Needs work

The last submitted patch, 2: tmgmt_file_writable_2860782_2.patch, failed testing.

vasi1186’s picture

Status: Needs work » Needs review
FileSize
881 bytes

Trying another patch.

Status: Needs review » Needs work

The last submitted patch, 4: tmgmt_file_writable_2860782_3.patch, failed testing.

vasi1186’s picture

Status: Needs work » Needs review

It would be quite strange if the failed tests are generated by this patch...