Author: poeml Date: Fri May 7 14:59:07 2010 New Revision: 8064 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8064&view=rev Log: mod_mirrorbrain: - if a torrent is requested, respond with 404 in case of missing data Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8064&r1=8063&r2=8064&view=diff ============================================================================== --- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original) +++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Fri May 7 14:59:07 2010 _at_@ -2618,13 +2618,14 @@ case TORRENT: { if (!hashbag || (hashbag->sha1piecesize <= 0) || apr_is_empty_array(hashbag->sha1pieceshex)) { - debugLog(r, cfg, "Torrent requested, but no hashes found"); - break; + debugLog(r, cfg, "Torrent requested, but no hashes found for %s", filename); + return HTTP_NOT_FOUND; } if (apr_is_empty_array(scfg->tracker_urls)) { - debugLog(r, cfg, "Torrent requested, but at least one MirrorBrainTorrentTrackerURL must configured"); - break; + ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, + "[mod_mirrorbrain] Cannot create torrent: at least one MirrorBrainTorrentTrackerURL must configured"); + return HTTP_NOT_FOUND; } debugLog(r, cfg, "Sending torrent"); _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Fri May 07 2010 - 12:59:12 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT