[wp-trac] [WordPress Trac] #3944: Entering an invalid post timestamp will be tolerated and results in bad view links

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 9 16:24:12 GMT 2007


#3944: Entering an invalid post timestamp will be tolerated and results in bad
view links
----------------------------+-----------------------------------------------
 Reporter:  erikwasser      |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  low             |   Milestone:           
Component:  Administration  |     Version:  2.1.2    
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 1) Goto you your blog and create a new post.

 2) Enter a subject and some blog text (doesn't really matter)

 3) Enter an invalid date like 2007-04-31 and save the post as unpublished
 article.

 The error is:

 a) No error message for the invalid date. It will be just saved.

 b) If you view the article the link looks like this:
 http://www.foo.invalid/2007/05/01/bug/

 This is the wrong date. And the view link will result (even as admin with
 the right so see unpublished articles) in a 404.

 c) The database data is screwed too:

 Here are the important 3 fields:

 > post_date 2007-04-31 17:09:36

 Non existing data. But this could be a mysql bug.

 > post_date_gmt = 2007-05-01 16:09:36

 Wrong date.

 > guid = http://www.epstacy.de/2007/05/01/bug/

 And wrong link for the article.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3944>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list