If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

LDIF doesn't like DataInputStream and Base64 encoded attributes.

NEW
Assigned to

Status

Directory
LDAP Java SDK
--
critical
16 years ago
11 years ago

People

(Reporter: Bemtya Joshi, Assigned: Erhyuan Tsai)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
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.

Comment 1

16 years ago
-> miodrag
Assignee: mcs → miodrag

Comment 2

15 years ago
Spam for bug 129472
QA Contact: nobody → nobody

Comment 3

14 years ago
Reassign LDAP JDK bugs owned by Miodrag (miodrag@formerly-netscape.com.tld) to
E-Y (erhyuan@pacbell.net)
Assignee: miodrag → erhyuan

Comment 4

11 years ago
(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();
    }

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