[wp-trac] [WordPress Trac] #24622: If-Modified-Since is wrong by comment feed

WordPress Trac noreply at wordpress.org
Sat Jun 22 05:41:51 UTC 2013


#24622: If-Modified-Since is wrong by comment feed
--------------------------+-----------------------------
 Reporter:  sweetie089    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 Processing of "If-Modified-Since" is wrong by comment feed.
 If time newer than the last contribution time is specified, "304 Not
 Modified" will certainly return.

 procedure for reproducing:
  * Prepare wordpress in which post exists.
  * Record the present time.
  * Comment.
  * Make "If-Modified-Since" from the recorded time, and access
 "http://DOMAIN/?feed=comments-rss2."
 Result:
  * "304 Not Modified" returns.

 Created patch uses the last comment time for a branch condition, when
 "comments-rss", and "comments-rss2" and "comments-atom" are included in
 "feed" of the URL parameter.

 Although creation of the test code was also tried, it gave up for the
 following reason.
  * The exit function is performed within a function.
  * There is no how to acquire the contents set by header.
 sorry.

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


More information about the wp-trac mailing list