When downloading a ZIP file with media objects taken from the restricted directory, the resulting zip file is corrupted. Running Unix strings against the file, the following can be read:
Error : PCLZIP_ERR_MISSING_FILE (-4) : File 'media/Pedraja Cuesta, Daniel de la-cara.jpg' does not exists</td></tr>
<br />ERROR 2: Cannot modify header information - headers already sent by (output started at /home/.../public_html/gendb/includes/controllers/clippings_ctrl.php:441)<br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/.../public_html/gendb/includes/controllers/clippings_ctrl.php:441) in <b>/home/.../public_html/gendb/includes/controllers/clippings_ctrl.php</b> on line <b>490</b><br />
Moving the media files to the standard directory and retrying works.
Logged In: YES
user_id=45016
Originator: NO
As of SVN 2708 The clippings cart now skips files that are in the media firewall directory so this error no longer occurs.
We cannot simply add the files themselves to the clippings cart or it will bypass the watermarking feature and unprivileged users will get access to the original files.
I am not sure how to fully resolve this without duplicating all the logic from mediafirewall.php, which is something I do not want to do.