[jcifs] jcifs-1.2.21 released / DFS Cache Bugfix (1.2.20 was busted)

Michael B Allen ioplex at gmail.com
Thu May 29 02:56:21 GMT 2008


Whoops. That was embarrasing.

I have added the necessary fix, uploaded 1.2.21 and tweaked the
website release note.

Thanks Dion,
Mike

On Wed, May 28, 2008 at 8:17 PM, dion gillard <dion at trongus.com> wrote:
> Michael B Allen <ioplex <at> gmail.com> writes:
>
>>
>> The DFS cache was not properly synchronized. This has been fixed. The
>> trusted domains are now looked up with <1C> NetBIOS lookups to speed
>> discovery.
>>
>> Thanks to Ronny S. for reporting these issues.
>>
>> Mike
>>
>
> Hi Mike,
>
> 1.2.20 introduced a bug in jcifs.Config on line 71.
>
> Please note the following static initializer in that class:
>
> "static {
>        String filename;
>        int level;
>        FileInputStream in = null;
>
>        log = LogStream.getInstance();
>
>        try {
>            filename = System.getProperty( "jcifs.properties" );
>            if( filename != null && filename.length() > 1 ) {
>                in = new FileInputStream( filename );
>            }
>            Config.load( in );
>            in.close();
>        } catch( IOException ioe ) {
>            if( log.level > 0 )
>                ioe.printStackTrace( log );
>        }
> ..."
>
> Note in the try block that the input stream (variable "in") is possibly null
> when the "in.close()" call is null.
>
> This has caused an NPE when using 1.2.20. 1.2.19 is fine and we've rolled back
> to that version.
>
> Please let me know if/where I should file a bug report.
>
> Thanks
> dIon
>
>
>
>
>



-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/


More information about the jcifs mailing list