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 861170

Summary: Traceback produced when parenthesis are provided as input to filter field
Product: Red Hat Enterprise Linux 6 Reporter: Alex Wood <awood>
Component: subscription-managerAssignee: Shwetha Kallesh <skallesh>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: alikins
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.1.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 08:56:28 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:
Bug Depends On:    
Bug Blocks: 771481    
Attachments:
Description Flags
No traceback for left paranthesis none

Description Alex Wood 2012-09-27 17:37:42 UTC
Description of problem: When typing a left parenthesis in the filter text field in the filter dialog, subscription-manager-gui produces a traceback.

Version-Release number of selected component (if applicable): subscription-manager-1.1.2-1

How reproducible: Always

Steps to Reproduce:
1. Register with subscription-manager-gui
2. Go to the All Available Subscriptions tab
3. Click Update
4. Click on the Filters button
5. Enter a '(' in the "Contain the text" field
  
Actual results:
Traceback (most recent call last):
  File "/root/devel/subscription-manager/src/subscription_manager/gui/filter.py", line 94, in update_filters
    self.parent.display_pools()
  File "/root/devel/subscription-manager/src/subscription_manager/gui/allsubs.py", line 241, in display_pools
    self.get_filter_text()),
  File "/root/devel/subscription-manager/src/subscription_manager/gui/utils.py", line 133, in apply_highlight
    regex = re.compile("(" + highlight + ")", re.I)
  File "/usr/lib64/python2.6/re.py", line 190, in compile
    return _compile(pattern, flags)
  File "/usr/lib64/python2.6/re.py", line 245, in _compile
    raise error, v # invalid expression
sre_constants.error: unbalanced parenthesis

Expected results:
The subscriptions window should highlight any subscriptions with a parenthesis in the name.

Comment 2 Alex Wood 2012-09-27 19:17:33 UTC
commit 676d3457fac7c700e168a4948346b65e19297ff9
Author: Alex Wood <awood>
Date:   Thu Sep 27 13:55:02 2012 -0400

    861170: re.escape() values provided to the apply_hightlight() function.

Available in subscription-manager-1.1.2-1+

Comment 5 Shwetha Kallesh 2012-11-07 04:42:16 UTC
Created attachment 639789 [details]
No traceback for left paranthesis

Verified!!

[root@rhel-64-server ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.7.18-1
subscription-manager: 1.1.5-1.el6
python-rhsm: 1.1.4-1.el6

Comment 7 errata-xmlrpc 2013-02-21 08:56:28 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.

http://rhn.redhat.com/errata/RHBA-2013-0350.html