Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
When FTP client appends ";type=a" in the requested URL, squid chops the last character of the filename.
FTP clients == (GET ftp://ftp.example.com/test.txt;type=a ) ==> squid == (GET "test.tx") ==> FTP server.
Version-Release number of selected component (if applicable):
squid-4.11-4
How reproducible:
all the time
Steps to Reproduce:
0. Create a user on FTP server.
Username: user
Password: password
1. Start squid
2. Connect to squid with `telnet`.
3. Try to get "test.txt" from ftp server via squid.
4. You will see squid tries to get "test.tx" instead of "test.txt".
Actual results:
$ telnet ip
Trying ip...
Connected to ip.
Escape character is '^]'.
GET ftp://user@ip/test.txt;type=a HTTP/1.1
Authorization: Basic
HTTP/1.1 404 Not Found
Server: squid/5.1
Mime-Version: 1.0
Date: Sun, 19 Sep 2021 03:51:31 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 3972
X-Squid-Error: ERR_FTP_NOT_FOUND 0
Vary: Accept-Language
Content-Language: en
X-Cache: MISS from user.example.com
Via: 1.1 user.example.com (squid/5.1)
Connection: keep-alive
... snip ...
<p>The following URL could not be retrieved: <a href="ftp://user@ip/test.tx">ftp://user@ip/test.tx</a></p>
... snip ...
Expected results:
$ telnet ip port
Trying ip...
Connected to ip.
Escape character is '^]'.
GET ftp://user@ip/test.txt;type=a HTTP/1.1
Authorization: Basic
HTTP/1.1 200 Gatewaying
Server: squid/5.1
Mime-Version: 1.0
Date: Sun, 19 Sep 2021 03:57:27 GMT
Content-Type: text/plain
Last-Modified: Sat, 18 Sep 2021 19:15:46 GMT
X-Cache: MISS from host.example.com
Transfer-Encoding: chunked
Via: 1.1 host.example.com (squid/5.1)
Connection: keep-alive
Additional info:
If you remove ";type=a" from the URL, squid can retrieve the file successfully.
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 (Moderate: squid:4 security and bug fix update), 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://access.redhat.com/errata/RHSA-2022:1939