JakeSmarter / icedtea-web

IcedTea-Web for Windows
GNU General Public License v2.0
6 stars 3 forks source link

Shorten filename if >255 (or everything blows up!) #12

Open raff opened 7 years ago

raff commented 7 years ago

On Linux file names cannot be longer than 255 characters. And currently the full "path" for the jnlp file is used as the filename (including query parameters and stuff).

This fix checks for the filename lenght, and if too long it converts it to the "hash" of the filename (fixed length) preventing the crash.

judovana commented 7 years ago

hi!

This is already fixed in upstream: http://icedtea.classpath.org/hg/icedtea-web/file/ba53197d6257/netx/net/sourceforge/jnlp/cache/CacheUtil.java#l499