RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1319705 - Squid send wrong respond for GET-request following Range-GET request
Summary: Squid send wrong respond for GET-request following Range-GET request
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: squid
Version: 6.7
Hardware: Unspecified
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: Martin Frodl
URL:
Whiteboard:
Depends On:
Blocks: 1322709
TreeView+ depends on / blocked
 
Reported: 2016-03-21 11:12 UTC by Gennadii Altukhov
Modified: 2019-10-10 11:37 UTC (History)
10 users (show)

Fixed In Version: squid-3.1.23-16.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1322709 1336387 1405411 (view as bug list)
Environment:
Last Closed: 2016-05-11 00:21:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Squid config (1.71 KB, text/plain)
2016-03-21 11:12 UTC, Gennadii Altukhov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2195961 0 None None None 2016-05-13 15:27:08 UTC
Red Hat Product Errata RHBA-2016:0896 0 normal SHIPPED_LIVE squid bug fix update 2016-05-10 22:50:18 UTC

Description Gennadii Altukhov 2016-03-21 11:12:57 UTC
Created attachment 1138536 [details]
Squid config

Description of problem:

For a squid I have option 'range_offset_limit -1 KB' in a config file. That means squid should download a whole file even if Range-GET request was sent to it. I send Range-GET request and then usual GET request for the same file.

For Range-GET squid responds:
< X-Cache: MISS from dhcp131-219.brq.redhat.com
< X-Cache-Lookup: NONE from dhcp131-219.brq.redhat.com:8080

for usual GET request for the same file, following the first request, sometimes(!), squid responds:
< X-Cache: MISS from dhcp131-219.brq.redhat.com
< X-Cache-Lookup: HIT from dhcp131-219.brq.redhat.com:8080

but should be two HIT.
 
Version-Release number of selected component (if applicable):
3.1.23-9.el6

How reproducible:
not always.

Steps to Reproduce:
1. Install squid version of 3.1.23-9.el6 on RHEL 6
2. Change config file. (see attachment)
1. perform GET request:
curl -v --proxy 127.0.0.1:8080 --get \
	-H 'Host: mirror.centos.org' \
	-H 'X-RHN-EffectiveURI: /centos-6/6.7/os/x86_64/Packages/kernel-2.6.32-573.el6.x86_64.rpm' \
	-H 'X-RHN-IP-Path: 10.34.131.106' \
	-H 'X-RHN-ActualURI: /centos-6/6.7/os/x86_64/Packages/kernel-2.6.32-573.el6.x86_64.rpm' \
	-H 'X-RHN-Transport-Capability: follow-redirects=3' \
	-H 'X-RHN-Proxy-Version: 5.5.0'	\
	-H 'Connection: close' \
	-H 'Accept-Encoding: identity' \
	-H 'Range: bytes=440-996355' \
	-H 'X-RHN-Proxy-Auth: 1000169392::1458299566.02:21600.0:QQ683WMfTjynMIIvA9zImC5lAEczNFjwsKBkdK4yUgk=:dhcp131-19.brq.redhat.com' \
	-A 'urlgrabber/3.1.0 yum/3.2.22' \
	'http://mirror.centos.org/centos-6/6.7/os/x86_64/Packages/kernel-2.6.32-573.el6.x86_64.rpm' > ./kernel.rpm.header
2.
curl -v --proxy 127.0.0.1:8080 --get \
	-H 'Host: mirror.centos.org' \
	-H 'X-RHN-EffectiveURI: /centos-6/6.7/os/x86_64/Packages/kernel-2.6.32-573.el6.x86_64.rpm' \
	-H 'X-RHN-IP-Path: 10.34.131.106' \
	-H 'X-RHN-ActualURI: /centos-6/6.7/os/x86_64/Packages/kernel-2.6.32-573.el6.x86_64.rpm' \
	-H 'X-RHN-Transport-Capability: follow-redirects=3' \
	-H 'X-RHN-Proxy-Version: 5.5.0'	\
	-H 'Connection: close' \
	-H 'Accept-Encoding: identity' \
	-H 'X-RHN-Proxy-Auth: 1000169392::1458299566.02:21600.0:QQ683WMfTjynMIIvA9zImC5lAEczNFjwsKBkdK4yUgk=:dhcp131-19.brq.redhat.com' \
	-A 'urlgrabber/3.1.0 yum/3.2.22' \
	'http://mirror.centos.org/centos-6/6.7/os/x86_64/Packages/kernel-2.6.32-573.el6.x86_64.rpm' > ./kernel.rpm

Actual results:
Wrong header

Expected results:
Correct header

Additional info:

RHN/Satellite Proxy works wrong with a new version of squid 3.1.23-9.el6 (see Bug 1302072), but correct with the previous 3.1.10-29.el6.
After some investigation, I see that only difference between two versions is HTTP-header in respond.

Comment 19 errata-xmlrpc 2016-05-11 00:21:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0896.html


Note You need to log in before you can comment on or make changes to this bug.