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 804812 - idmapd logging of Local-Realms only lists the last realm
Summary: idmapd logging of Local-Realms only lists the last realm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils-lib
Version: 6.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: yanfu,wang
URL:
Whiteboard:
Depends On: 804152
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-19 20:11 UTC by Steve Dickson
Modified: 2013-02-21 10:55 UTC (History)
4 users (show)

Fixed In Version: nfs-utils-lib-1.1.5-6.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 804152
Environment:
Last Closed: 2013-02-21 10:55:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0467 0 normal SHIPPED_LIVE nfs-utils-lib bug fix update 2013-02-20 21:07:10 UTC

Description Steve Dickson 2012-03-19 20:11:01 UTC
+++ This bug was initially created as a clone of Bug #804152 +++

Created attachment 570654 [details]
Patch for libnfsidmap.c

Description of problem:
The list of local realms can be logged with a massage like the following:
   rpc.idmapd: libnfsidmap: Realms list: 'EXAMPLE2.COM'
Instead of printing a list of realms, only the last realm in the list is shown.

Version-Release number of selected component (if applicable):
0.24-7.fc16

How reproducible:
always

Steps to Reproduce:
1. edit /etc/idmapd.conf with Verbosity=1 and Local-Realms=A,B,C
2.
3.
  
Actual results:
rpc.idmapd: libnfsidmap: Realms list: 'C'

Expected results:
rpc.idmapd: libnfsidmap: Realms list: 'A' 'B' 'C'

Additional info:
Looking at the source, the list is built in a way that intends to append each realm to a string buffer, but instead overwrites the buffer each time. A patch is attached, which also has a few changes to the buffer size calculation, and to skip the extra trailing space.

Fortunately, it is only a logging issue, and not as serious as it seemed at first.

Comment 1 Steve Dickson 2012-03-19 20:12:15 UTC
commit f079113f90366f1965b9fd3b0fdbce77415f37a7
Author: Juno Krahn <Juno.Krahn>
Date:   Mon Mar 19 08:33:58 2012 -0400

    idmapd: logging of Local-Realms only lists the last realm
    
    The list of local realms can be logged with a massage like the following:
       rpc.idmapd: libnfsidmap: Realms list: 'EXAMPLE2.COM'
    Instead of printing a list of realms, only the last realm in the list is shown.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=804152
    
    Signed-off-by: Steve Dickson <steved>

Comment 2 RHEL Program Management 2012-09-07 05:08:18 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 10 errata-xmlrpc 2013-02-21 10:55:01 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-0467.html


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