[jcifs] Bug in SmbFile.getName() ??

Mario Matzulla mario.melanie at arcor.de
Tue Dec 4 17:02:24 GMT 2007


 Hi Mike,

thanks for your answer, but... :)

I'm aware of escaping whitespaces with %20, as a matter of fact, thats the process we do to create such folders. But, when we have created such a folder, we will never see that whitespace again, when retrieving for example the content from the parent folder. Here is an example:

Creating /USER/%20test/ will always return /USER/test/ or "test" as its name. The whitespace is gone :(
It is not a wrong URL class, but the fact, that the SmbFile doesn't remember the original name, which was handed over.

Thanks,
Mario Matzulla


----- Original Nachricht ----
Von:     Michael B Allen <miallen at ioplex.com>
An:      Mario Matzulla <mario.melanie at arcor.de>
Datum:   04.12.2007 17:51
Betreff: Re: [jcifs] Bug in SmbFile.getName() ??

> On Tue, 4 Dec 2007 08:43:52 +0100 (CET)
> Mario Matzulla <mario.melanie at arcor.de> wrote:
> 
> > The name gets trimmed in the URL class
> 
> If that is the case then unfortunately we have no control over the
> URL class. But I'll add this to The List for further investigation
> (eventually). Not sure if this helps but note that you can URL escape
> space (e.g. %20 for ' ').
> 
> Mike
> 
> -- 
> Michael B Allen
> PHP Active Directory SPNEGO SSO
> http://www.ioplex.com/
> 

Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT FÜR ALLE NEUEINSTEIGER
Jetzt bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket
für clevere Doppel-Sparer, nur  29,95 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2


More information about the jcifs mailing list