Ticket #1440 (closed defect: fixed)

Opened 6 months ago

Last modified 2 months ago

Improper ERROR code of expired urls when using mod_secdownload

Reported by: Joe7 Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: mod_secdownload Version: 1.4.18
Severity: normal Keywords: error,redirect,loop,secdownload
Cc: Blocking:
Need Feedback: 0

Description

When using mod_secdownload and a valid generated url times out, lighttpd returns error code 408. This says the client to 'try again later', which is what eg. firefox does, requesting the same -expired- url 4 times and then giving error to user.

The proper error code here would be 403 as described at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html .

Attachments

Change History

11/18/2007 09:54:07 AM changed by TomNatale

All you have to do is go into the src folder;

Edit file mod_secure_download.c

find the line 248 and replace con->http_status = 408; with con->http_status = 403; // Changed by TLN 11.18.07

Fixed!

11/18/2007 09:55:44 AM changed by TomNatale

Sorry for the poor formatting, copying and pasting from PuTTy does that:

should be find line 248:

con->http_status = 408;

with

con->http_status = 403; // Changed by TLN 11.18.07

03/01/2008 07:11:33 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2111]; we send now "410 - Gone".


Add/Change #1440 (Improper ERROR code of expired urls when using mod_secdownload)




Change Properties
Action