Menu

#1899 Media firewall incompatible with clippings cart

open
nobody
None
5
2008-11-17
2008-02-12
No

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.

Discussion

  • Larry Meaney

    Larry Meaney - 2008-03-12

    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.

     
  • Greg Roach

    Greg Roach - 2008-11-17
    • labels: 503772 -->
    • milestone: 279424 -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.