Opened 13 years ago

Closed 9 years ago

#102 closed defect (fixed)

Use HTTP response codes correctly

Reported by: Dominic Hargreaves Owned by: Dominic Hargreaves
Priority: normal Milestone:
Component: openguides Version: svn
Severity: normal Keywords: hackfestsummer2007-reviewed
Cc:

Description

For example, if I try to visit action=about when that action isn't defined, I should get an HTTP 404 or similar, rather than an HTML message about node not being found.

Change History (10)

comment:1 Changed 13 years ago by Dominic Hargreaves

Milestone: 0.54
Status: newassigned

comment:2 Changed 12 years ago by Dominic Hargreaves

Milestone: 0.58

comment:3 Changed 12 years ago by Dominic Hargreaves

Owner: Dominic Hargreaves deleted
Status: assignednew

comment:4 Changed 12 years ago by Dominic Hargreaves

Owner: set to Nobody

comment:5 Changed 12 years ago by Dominic Hargreaves

Keywords: hackfestsummer2007-confirmed added
Owner: changed from Nobody to Dominic Hargreaves
Status: newassigned

There are a couple of strands to this eg 404 for non-existent nodes (with the same "would you like to create this page") and redirects for unknown URL params in general. More investigation to find out what this affects, and possibly discussion about how it should behave.

comment:6 Changed 12 years ago by Dominic Hargreaves

Keywords: hackfestsummer2007-reviewed added; hackfestsummer2007-confirmed removed

comment:7 Changed 12 years ago by Dominic Hargreaves

(In [1054]) Add support in output routine for specifying HTTP status code (see #102)

comment:8 Changed 12 years ago by Dominic Hargreaves

(In [1057]) If an unknown action is used redirect to action=display, preserving other args (see #102)

comment:9 Changed 12 years ago by Dominic Hargreaves

The final part of this needs #193 to happen first.

comment:10 Changed 9 years ago by Dominic Hargreaves

Resolution: fixed
Status: assignedclosed

(In [1271]) Return HTTP 404 status when displaying a node that doens't exist (fixes #102)

Note: See TracTickets for help on using tickets.