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 910469 - Don't use %r formatting specifier in error messages
Summary: Don't use %r formatting specifier in error messages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-12 17:34 UTC by Namita Soman
Modified: 2014-06-18 00:05 UTC (History)
3 users (show)

Fixed In Version: ipa-3.2.1-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:17:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Namita Soman 2013-02-12 17:34:48 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/3121

Using %r leads to unfriendly error messages, as seen in #2588, #2869, etc.

Change all public error messages not to use the %r formatting specifier.

Comment 1 Martin Kosek 2013-02-21 09:01:19 UTC
Fixed upstream:

master: 173ee4d141958f198a706d65d4ee47c4a2ec31ed

Comment 5 Scott Poore 2014-01-29 17:49:37 UTC
Verified.

Version ::

ipa-server-3.3.3-15.el7.x86_64

Test Results ::

[root@master ~]# ipa host-add --ip-address=2620:52:0:41c9:ffff:ff:fea:98eda mytestIPv6host.testrelm.com
ipa: ERROR: invalid 'ip_address': failed to detect a valid IP address from '2620:52:0:41c9:ffff:ff:fea:98eda'

[root@master ~]# ipa trust-add ad.test --type=asdf
ipa: ERROR: invalid 'type': must be 'ad'

NO u'' format seen above so verified.

Comment 6 Jenny Severance 2014-02-13 18:20:28 UTC
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-host-cli-093: Negative - Add host with invalid IPv6 address
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: EXECUTING: ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.test
:: [   LOG    ] :: Executing: ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.test
:: [   LOG    ] :: "ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.test" failed as expected.
:: [   PASS   ] :: Error message as expected: ipa: ERROR: invalid 'ip_address': failed to detect a valid IP address from 'some:ipv6addr' 
:: [   PASS   ] :: Verify expected error message. (Expected 0, got 0)
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 2 good, 0 bad
:: [   PASS   ] :: RESULT: ipa-host-cli-093: Negative - Add host with invalid IPv6 address

Comment 7 Ludek Smid 2014-06-13 09:17:45 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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