[Pki-devel] [PATCHES] PKI TRAC Ticket #946 - Installation of IPA hangs up when LANG is set to tr_TR.UTF8 [Fedora 20]

Matthew Harmsen mharmsen at redhat.com
Thu May 15 03:51:15 UTC 2014


Please review the two attached patches which address:

  * PKI TRAC Ticket #946 - Installation of IPA hangs up when LANG is set
    to tr_TR.UTF8 <https://fedorahosted.org/pki/ticket/946>

The first patch attempts to insure that 'UTF-8' encoding is always used 
when importing data from an LDIF file by replacing the Java commands 
which utilize the default Locale and thus potentially would override the 
use of 'UTF-8' when working with LDIF files.

The following ticket has been issued to address further concerns related 
to this issue:

  * PKI TRAC Ticket #1005 - Analyze source code for Java commands which
    utilize default Locale and honor 'i18n'
    <https://fedorahosted.org/pki/ticket/1005>

The second patch specifically addresses the use of the 'tr_TR.UTF-8' 
issue reported in this ticket by changing the following problematic LDIF 
attribute names:

  * index.ldif
      o nsIndexType --> nsindexType
      o nsSystemIndex --> nsSystemindex
  * vlvtasks.ldif
      o nsInstance --> nsinstance
      o nsIndexVLVAttribute --> nsindexVLVAttribute

The root of the problem that appears to cause this issue is the use of 
the 'toLowerCase()' method as utilized in the LDAPJDK.  The following 
bug has been issued which fully describes this issue:

  * Bugzilla Bug #1097868 - Proposal: Consider not honoring 'i18n' on
    LDAP attribute names . . .
    <https://bugzilla.redhat.com/show_bug.cgi?id=1097868>

These patches were tested on a 64-bit Fedora 20 machine by doing the 
following:

  * Install the patched RPMS onto the Fedora 20 test machine
  * Set contents of '/etc/locale.conf':
      o LANG="tr_TR.UTF-8"
  * Reboot machine
  * LANG="tr_TR.UTF-8" ssh root at fedora20.example.com
  * cat /etc/resolv.conf
  * ipa-server-install --setup-dns
      o Choose defaults and change the BIND settings using the values
        from '/etc/resolv.conf'
  * klist
  * kinit admin
  * klist
  * ipa user-find
  * ipa help cert
  * ipa cert-show


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20140514/d6b59997/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20140514-Prevent-LDAP-Attributes-from-being-affected-by-Locale.patch
Type: text/x-patch
Size: 2559 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20140514/d6b59997/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20140514-Change-LDAP-Attributes-to-allow-for-tr_TR-locale.patch
Type: text/x-patch
Size: 34136 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20140514/d6b59997/attachment-0001.bin>


More information about the Pki-devel mailing list