phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

HTTP Messages

Discuss the future of phpBB. It is still nesting in its mother's womb, but it will grow a little bigger each day. Participate in its design & planning here.

HTTP Messages

Postby onehundredandtwo » Wed Jan 20, 2010 7:07 am

I remember someone else mentioning this some time ago, but I would like to mention it here, since it seems appropiate mentioning it here. At the moment, phpBB will always send HTTP/1.1 200 OK, even if a 404, 503, 401 or 500 would be more appropiate. These errors are important for bots as well as user-agents to understand the request and what to do with it.
Code: Select all
Errors such as [i]The selected forum does not exist[/i] and [i]The selected topic does not exist[/i] should send a 404 Not Found error.

If the board is disabled, all phpBB related pages should send a 503 Service Unavailable error.

If the user tries to access a forum he/she is not allowed to access (eg. incorrect password, incorrect permissions) then a 401 Unauthorized error should be sent.

If phpBB gets a E_USER_ERROR then phpBB should send a 500 Internal Server Error.

Feedback welcome. :)
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
User avatar
onehundredandtwo
Registered User
 
Posts: 33
Joined: Mon Feb 02, 2009 6:55 am

Re: HTTP Messages

Postby naderman » Wed Jan 20, 2010 2:13 pm

Sounds very reasonable. Maybe you can add it on the wiki to the phpBB4 section somewhere?
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1650
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: HTTP Messages

Postby bantu » Wed Jan 20, 2010 3:25 pm

Not so sure if this is an issue anymore, but please keep in mind: http://www.phpbb.com/bugs/phpbb3/34945#post158995
User avatar
bantu
3.0 Release Manager
3.0 Release Manager
 
Posts: 438
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany

Re: HTTP Messages

Postby onehundredandtwo » Wed Jan 20, 2010 9:41 pm

bantu wrote:Not so sure if this is an issue anymore, but please keep in mind: http://www.phpbb.com/bugs/phpbb3/34945#post158995

I will do some more research on that, however I don't believe this applies to 500 Internal Server Error and 503 Service Unavailable, since these often apply to the entire board.
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
User avatar
onehundredandtwo
Registered User
 
Posts: 33
Joined: Mon Feb 02, 2009 6:55 am

Re: HTTP Messages

Postby onehundredandtwo » Wed Jan 20, 2010 10:00 pm

I've looked all over the internet and I've asked at the Google Webmaster Forum, and apparently using 404 errors on dymanic URLs is fine. I might try testing on a site to see what happens, but from what I can see there isn't really a problem.
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
User avatar
onehundredandtwo
Registered User
 
Posts: 33
Joined: Mon Feb 02, 2009 6:55 am

Re: HTTP Messages

Postby ToonArmy » Thu Jan 21, 2010 12:10 am

bantu wrote:Not so sure if this is an issue anymore, but please keep in mind: http://www.phpbb.com/bugs/phpbb3/34945#post158995

The RFC's would be the place to consult.
Chris SmithBlogXMOOhlohArea51WikiNo support via PM/IM
Image
User avatar
ToonArmy
Registered User
 
Posts: 335
Joined: Fri Mar 26, 2004 7:31 pm
Location: Bristol, UK

Re: HTTP Messages

Postby Desdenova » Thu Jan 28, 2010 2:27 am

Probably should throw a 401 on unauthorized ACP access as well, I'd guess.
Desdenova
Registered User
 
Posts: 13
Joined: Wed Jul 22, 2009 6:45 pm


Return to [4.x] Discussion

Who is online

Users browsing this forum: No registered users and 7 guests