cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <>
Subject Bug in MultipartParser?
Date Fri, 20 Sep 2002 09:31:58 GMT
There is possibly a bug in 

Say you have Cocoon running on a Unix server. Send a file from a Unix 
client. The filename is sent as /path/to/, the MultipartParser 

String fileName = new File((String) headers.get("filename")).getName();

and filename gets to be "", which gets saved as 
<upload-dir>/ All is well.

Now use a Windows client. The filename is sent as C:\PATH\TO\FILE.TXT, 
the call to File.getName() on the Unix server does not know how to parse 
the drive designator and the backslashes and stores thae file as 

I'd argue that this is a bug, but I have no idea how to fix it.


Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail:

To unsubscribe, e-mail:
For additional commands, email:

View raw message