Bug 458118 - i18n env should be reset when running cimserver
Summary: i18n env should be reset when running cimserver
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sblim
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Vitezslav Crhonek
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-06 15:04 UTC by Urba
Modified: 2009-09-02 09:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
the provider in the sblim-cmpi-network subpackage executes /sbin/ifconfig to generate localized output. In the section of the code that generates wbemcli output for IPv4 addresses, the language for ifconfig was not identified, with the result that no output was generated at all when the LANG= environment was set to anything other than en_US. IPv4Address, IPv6Address, and SubnetMask were then all reported as "NULL". The language passed to ifconfig is now specified as en_US, so that meaningful output is returned, regardless of the language of the environment.
Clone Of:
Environment:
Last Closed: 2009-09-02 09:18:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch to sblim-cmpi-network (552 bytes, patch)
2009-04-07 13:37 UTC, Vitezslav Crhonek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1267 0 normal SHIPPED_LIVE sblim bug fix update 2009-09-01 09:28:54 UTC

Description Urba 2008-08-06 15:04:35 UTC
Description of problem:

Trying to enumerate instance like /root/cimv2:Linux_IPProtocolEndpoint partially failled, if tog-pegasus is running with a non english environnement.

Looking at the source code, we see that the provider execute /sbin/ifconfig and parse output. If this output is internationalized, it may not parse correctly.

(see http://sblim.cvs.sourceforge.net/sblim/cmpi-network/OSBase_IPProtocolEndpoint.c?revision=1.10&view=markup)



How reproducible:
Use LANG=fr as environnement for pegasus

  
Actual results:
Output from wbemcli :
-IPv4Address="NULL"
-IPv6Address="NULL"
-SubnetMask="NULL"


Expected results:
Output from wbemcli :
-IPv4Address="172.29.1.1"
-IPv6Address="NULL"
-SubnetMask="255.255.255.0"


Additional info:
This can be fixed by starting Pegasus prefixed with 
LANG= LC_ALL=

Comment 3 Vitezslav Crhonek 2009-04-07 13:37:18 UTC
Created attachment 338500 [details]
Proposed patch to sblim-cmpi-network

Comment 9 Ruediger Landmann 2009-08-31 02:04:54 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
the provider in the sblim-cmpi-network subpackage executes
/sbin/ifconfig to generate localized output. In the section of the
code that generates wbemcli output for IPv4 addresses, the 
language for ifconfig was not identified, with the result that no 
output was generated at all when the LANG= environment was set to 
anything other than en_US. IPv4Address, IPv6Address, and SubnetMask 
were then all reported as "NULL". The language passed to ifconfig is now 
specified as en_US, so that meaningful output is returned, regardless
of the language of the environment.

Comment 10 errata-xmlrpc 2009-09-02 09:18:44 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1267.html


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