[wp-trac] Re: [WordPress Trac] #7890: Internal server error when submitting comment without name or email

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 2 00:47:14 GMT 2008


#7890: Internal server error when submitting comment without name or email
---------------------------------------+------------------------------------
 Reporter:  gadlen                     |        Owner:  Libor Jelinek
     Type:  defect                     |       Status:  assigned     
 Priority:  normal                     |    Milestone:  2.7          
Component:  Comments                   |      Version:  2.6.1        
 Severity:  normal                     |   Resolution:               
 Keywords:  2nd-opinion, dev-feedback  |  
---------------------------------------+------------------------------------
Comment (by 112502):

 You're correct, however, you're missing that there is no httpd status
 message to correspond to a Field Validation Error, thus 200 is the correct
 response.

 About the closest you could come to an "informative" httpd status code is
 a 400 error... but then...

 You're redirecting back to the offending page (as suggested, by using
 traditional form validation), and you don't want the error following you
 --- Especially consider that in this case, where you're doing a POST
 %{SELF} it doesn't make any sense to attach an httpd status code to a page
 which "is" displaying correctly --- even though there's a form validation
 error.

 Hopefully, that makes sense... Written communication doesn't seem to be my
 strong point today. ;-)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7890#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list