You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "William Bardwell (JIRA)" <ji...@apache.org> on 2011/06/07 17:01:59 UTC
[jira] [Created] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Range requests that result in cache refresh give 200 status response with full contents
---------------------------------------------------------------------------------------
Key: TS-824
URL: https://issues.apache.org/jira/browse/TS-824
Project: Traffic Server
Issue Type: Bug
Components: HTTP
Affects Versions: 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9
Reporter: William Bardwell
Priority: Minor
If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-824:
-----------------------------
Attachment: (was: TS-824.diff)
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
> Attachments: TS-824-2.diff
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-824:
-----------------------------
Attachment: TS-824-2.diff
Updated diff.
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
> Attachments: TS-824-2.diff, TS-824.diff
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Conan Wang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123362#comment-13123362 ]
Conan Wang commented on TS-824:
-------------------------------
Diff works in my test case. curl -H "Range: bytes=1-2"
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
> Attachments: TS-824-2.diff
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom reassigned TS-824:
--------------------------------
Assignee: Leif Hedstrom
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Assignee: Leif Hedstrom
> Priority: Minor
> Fix For: 3.1.1
>
> Attachments: TS-824-2.diff
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Conan Wang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128400#comment-13128400 ]
Conan Wang commented on TS-824:
-------------------------------
Can I apply the commit's patch to 3.0.1 code?
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Assignee: Leif Hedstrom
> Priority: Minor
> Fix For: 3.1.1
>
> Attachments: TS-824-2.diff
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom reassigned TS-824:
--------------------------------
Assignee: (was: Leif Hedstrom)
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.0
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Conan Wang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112376#comment-13112376 ]
Conan Wang commented on TS-824:
-------------------------------
Just found this bug. Vote for it. And hope to backport to 3.0.x.
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Kingsley Foreman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112961#comment-13112961 ]
Kingsley Foreman commented on TS-824:
-------------------------------------
I'm being effected by this bug too, second the vote to get it it fixed :)
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-824:
-----------------------------
Fix Version/s: (was: 3.1.0)
3.1.1
Moving out some bugs to 3.1.1, please rearrange if you plan on fixing any of these in the next few weeks.
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "William Bardwell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112872#comment-13112872 ]
William Bardwell commented on TS-824:
-------------------------------------
I looked at this, and it looks like HttpTransact::build_response_from_cache()'s code when it gets HTTP_STATUS_NOT_MODIFIED(304) never tries to do s->state_machine->do_range_setup_if_necessary();
(which it does do on status 200's), but there is a bunch of other range code when status is 200 that might also need to be used in the 304 case.
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-824:
-----------------------------
Fix Version/s: 3.1.0
Assignee: Leif Hedstrom
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Assignee: Leif Hedstrom
> Priority: Minor
> Fix For: 3.1.0
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-824:
-----------------------------
Attachment: TS-824.diff
Here's something that solves at least some of the problem... Feedback and comments appreciated.
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
> Attachments: TS-824.diff
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-824) Range requests that result in cache
refresh give 200 status response with full contents
Posted by "Leif Hedstrom (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123568#comment-13123568 ]
Leif Hedstrom commented on TS-824:
----------------------------------
I'd like for a least one more review, and test, before I commit this. I've asked Charlie Gero to test it as well, since William is out for a few weeks.
> Range requests that result in cache refresh give 200 status response with full contents
> ---------------------------------------------------------------------------------------
>
> Key: TS-824
> URL: https://issues.apache.org/jira/browse/TS-824
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Priority: Minor
> Fix For: 3.1.1
>
> Attachments: TS-824-2.diff
>
>
> If you send a request with a Range: header to TS when it has full cached contents that need to be refreshed, and they get back a status 304 response indicating that the cached contents are up to date, TS will respond to the client with a status 200 response, and the full contents. So the content is served from cache, but do not go through the transform to only return partial bytes and a status 206 response like it should.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira