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 2006121 - SQUID shortens FTP Link wrong that contains a semi-colon and as a result is not able to download zip file.CODE 404 TO CLIENT)
Summary: SQUID shortens FTP Link wrong that contains a semi-colon and as a result is n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: squid
Version: 8.6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: icesalov
URL:
Whiteboard:
: 2069470 (view as bug list)
Depends On:
Blocks: 2044678
TreeView+ depends on / blocked
 
Reported: 2021-09-20 21:40 UTC by jfaison
Modified: 2022-08-30 15:09 UTC (History)
3 users (show)

Fixed In Version: squid-4-8060020220125013250.d63f516d
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2044678 (view as bug list)
Environment:
Last Closed: 2022-05-10 14:24:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-97701 0 None None None 2021-09-20 21:41:01 UTC
Red Hat Product Errata RHSA-2022:1939 0 None None None 2022-05-10 14:24:52 UTC

Description jfaison 2021-09-20 21:40:43 UTC
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.

Comment 16 errata-xmlrpc 2022-05-10 14:24:47 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 (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

Comment 17 Luboš Uhliarik 2022-08-30 15:09:10 UTC
*** Bug 2069470 has been marked as a duplicate of this bug. ***


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