When ticket/comment filefield's path is not ye created , support will fail to save the attachments and cause core file api to raise the following error which is a bit confusing, this issue specially happens when using dynamic and token based paths like what filefield_path module offers, however even when is disabled the filefield_path it didn't fixed so it should be more generic error than that :
The specified file temporary://filehn63St could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
The solution is simple , look function "function _support_save_attachments($attachments, $account, $entity_type = 'node') {" and put the following line before this code "if ($uri = file_unmanaged_save_data($attachment->attachment, $destination, FILE_EXISTS_RENAME)) {"
file_prepare_directory($destination, $options = FILE_CREATE_DIRECTORY);
Comments
Comment #1
jeremy commentedThanks -- fixed to also detect errors should file_prepare_directory not have the necessary permissions.
http://drupalcode.org/project/support.git/commit/63eacc9