LDIF doesn't like DataInputStream and Base64 encoded attributes.

RESOLVED WONTFIX

Status

--
critical
RESOLVED WONTFIX
17 years ago
2 months ago

People

(Reporter: bemtya, Assigned: erhyuan)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 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

17 years ago
-> miodrag
Assignee: mcs → miodrag

Comment 2

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

Comment 3

15 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

12 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();
    }

Not activity for at least 6 years, closing.
Status: NEW → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.