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.

Bug 895562

Summary: [patch] Backport support to disable mimetype extension stripping
Product: Red Hat Enterprise Linux 6 Reporter: Ralph Bean <rbean>
Component: TurboGears2Assignee: Python Maintainers <python-maint>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: cstratak, pviktori, rbean, tlavigne
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-14 17:59:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Backport of disabling extension stripping from TG2-2.1 none

Description Ralph Bean 2013-01-15 14:33:51 UTC
Created attachment 678795 [details]
Backport of disabling extension stripping from TG2-2.1

In TG2-2.1 (Fedora), there exists the ability to disable the mimetype extension machinery.  This does not exist in TG2-2.0 (rhel6-base).

The feature was introduced in this commit - 
https://github.com/TurboGears/tg2/commit/098040072f75b9b271f1739444bd9d3264df0431

The affected file in TG2-2.1 is tg/controllers/dispatcher.py

The affected file in TG2-2.0 is tg/controllers.py

I have attached a patch to introduce this same functionality to the rhel6-base rpm.

*Why?*

We need this feature to fix a bug in a Fedora Infrastructure webapp.  Here are some relevant links that demonstrate how the mimetype extension stripping in TG2-2.0 is affecting our app:

  Base URL:  https://apps.fedoraproject.org/packages/
  Searching for webob:  https://apps.fedoraproject.org/packages/s/webob
  Viewing webob:  https://apps.fedoraproject.org/packages/python-webob
  500 error for 1.2:  https://apps.fedoraproject.org/packages/python-webob1.2

The 500 error for the last link is because TG2-2.0 (rhel6-base) is stripping the ".2" at the end of the path, thinking that it is a file extension.

Comment 2 Dave Malcolm 2013-01-15 16:23:14 UTC
(In reply to comment #0)
> Created attachment 678795 [details]
> Backport of disabling extension stripping from TG2-2.1
> 
> In TG2-2.1 (Fedora), there exists the ability to disable the mimetype
> extension machinery.  This does not exist in TG2-2.0 (rhel6-base).
> 
> The feature was introduced in this commit - 
> https://github.com/TurboGears/tg2/commit/
> 098040072f75b9b271f1739444bd9d3264df0431
> 
> The affected file in TG2-2.1 is tg/controllers/dispatcher.py
> 
> The affected file in TG2-2.0 is tg/controllers.py
> 
> I have attached a patch to introduce this same functionality to the
> rhel6-base rpm.
[...snip...]

The upstream commit referenced above also touched tg/dottednamesupport.py, but I presume you don't want that change (attachment 678795 [details] only covers the "disable_request_extensions" part).  Is that correct?

Comment 3 Ralph Bean 2013-01-15 17:59:33 UTC
(In reply to comment #2)
> The upstream commit referenced above also touched tg/dottednamesupport.py,
> but I presume you don't want that change (attachment 678795 [details] only
> covers the "disable_request_extensions" part).  Is that correct?

Yes, that is correct.

Comment 4 RHEL Program Management 2013-10-14 00:05:06 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 6 Petr Viktorin (pviktori) 2016-07-14 14:37:41 UTC
Ralph, is this still relevant?

Comment 7 Ralph Bean 2016-07-14 17:59:33 UTC
No, it is not.  We ported all of our applications off of TG2.

Thank you!