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/05/06 22:35:03 UTC
[jira] [Created] (TS-762) Range values like -10 are processed wrong
Range values like -10 are processed wrong
-----------------------------------------
Key: TS-762
URL: https://issues.apache.org/jira/browse/TS-762
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
Reporter: William Bardwell
A Range header like "Range: bytes=-10" should return the last 10 bytes instead it returns the first 10.
The problem is the parsing is assuming that mime_parse_int64 on an empty string returns -1, but it returns 0.
I will attach a patch.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-762) Range values like -10 are processed wrong
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-762:
-----------------------------
Fix Version/s: 2.1.9
> Range values like -10 are processed wrong
> -----------------------------------------
>
> Key: TS-762
> URL: https://issues.apache.org/jira/browse/TS-762
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Assignee: Leif Hedstrom
> Fix For: 2.1.9
>
> Attachments: range-fix.diff
>
>
> A Range header like "Range: bytes=-10" should return the last 10 bytes instead it returns the first 10.
> The problem is the parsing is assuming that mime_parse_int64 on an empty string returns -1, but it returns 0.
> I will attach a patch.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TS-762) Range values like -10 are processed
wrong
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom reassigned TS-762:
--------------------------------
Assignee: Leif Hedstrom
> Range values like -10 are processed wrong
> -----------------------------------------
>
> Key: TS-762
> URL: https://issues.apache.org/jira/browse/TS-762
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Assignee: Leif Hedstrom
> Fix For: 2.1.9
>
> Attachments: range-fix.diff
>
>
> A Range header like "Range: bytes=-10" should return the last 10 bytes instead it returns the first 10.
> The problem is the parsing is assuming that mime_parse_int64 on an empty string returns -1, but it returns 0.
> I will attach a patch.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-762) Range values like -10 are processed wrong
Posted by "William Bardwell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
William Bardwell updated TS-762:
--------------------------------
Attachment: range-fix.diff
One line fix.
> Range values like -10 are processed wrong
> -----------------------------------------
>
> Key: TS-762
> URL: https://issues.apache.org/jira/browse/TS-762
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
> Reporter: William Bardwell
> Attachments: range-fix.diff
>
>
> A Range header like "Range: bytes=-10" should return the last 10 bytes instead it returns the first 10.
> The problem is the parsing is assuming that mime_parse_int64 on an empty string returns -1, but it returns 0.
> I will attach a patch.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira