Closed Bug 150879 Opened 24 years ago Closed 7 years ago

LDIF doesn't like DataInputStream and Base64 encoded attributes.

Categories

(Directory Graveyard :: LDAP Java SDK, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: bemtya, Assigned: erhyuan)

Details

Does like file names though ..so I will do the work around thing. If I create an LDIF class with a data input stream as opposed to a file name it does not read base 64 encoded attributes, infact throws a null pointer exception. The others don't seem to cause any problems. I do not have the driver at this time, I will attach it as soon as I can.
-> miodrag
Assignee: mcs → miodrag
Spam for bug 129472
QA Contact: nobody → nobody
Reassign LDAP JDK bugs owned by Miodrag (miodrag@formerly-netscape.com.tld) to E-Y (erhyuan@pacbell.net)
Assignee: miodrag → erhyuan
(In reply to comment #0) > Does like file names though ..so I will do the work around thing. > If I create an LDIF class with a data input stream as opposed to a file name it > does not read base 64 encoded attributes, infact throws a null pointer > exception. The others don't seem to cause any problems. > I do not have the driver at this time, I will attach it as soon as I can. The Constructor doesn't initialise the Base64 decoder. The Bug can be fixed by adding the initialisation as follows: /** * Constructs an <CODE>LDIF</CODE> object to parse the * LDIF data read from an input stream. * @param dstThe input stream providing the LDIF data * @exception IOException An I/O error has occurred. */ public LDIF(DataInputStream ds) throws IOException { BufferedReader d = new BufferedReader(new InputStreamReader(ds, "UTF8")); m_reader = new LineReader(d); m_source = ds.toString(); m_decoder = new MimeBase64Decoder(); }
Not activity for at least 6 years, closing.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.