OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Contrib/6347
Full headers

From: sbrys@novell.com
Subject: JLDAP: LDIFReader should use UTF-8 character set instead of US-ASCII
Compose comment
Download message
State:
0 replies:
0 followups:

Major security issue: yes  no

Notes:

Notification:


Date: Fri, 23 Oct 2009 09:07:27 +0000
From: sbrys@novell.com
To: openldap-its@OpenLDAP.org
Subject: JLDAP: LDIFReader should use UTF-8 character set instead of US-ASCII
Full_Name: 
Version: 
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.240.252.176)


The JLDAP com.novell.ldap.LDIFWriter class uses the UTF-8 character set when
writing LDIF content to output streams. However, the com.novell.ldap.LDIFReader
class uses the US-ASCII character set to read LDIF content from input streams.
The LDIFReader class should also use UTF-8, so LDIF files containing special
characters can be read successfully.

Proposed patch for

   http://www.openldap.org/devel/cvsweb.cgi/~checkout~/com/novell/ldap/util/LDIFReader.java?rev=1.42&cvsroot=JLDAP&hideattic=1&sortbydate=0

-----------------------/snip/-----------------------
--- LDIFReader.java.ori	2009-10-23 10:56:00.000000000 +0200
+++ LDIFReader.java	2009-10-23 10:56:35.000000000 +0200
@@ -117,7 +117,7 @@
         }
 
         setVersion( version );
-        InputStreamReader isr = new InputStreamReader(in, "US-ASCII");
+        InputStreamReader isr = new InputStreamReader(in, "UTF-8");
         bufReader = new BufferedReader(isr);
 
         // In order to determine if it is a LDIF content file or LDIF change
-----------------------/snip/-----------------------
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org