[izpack-devel] bad file names

Bartz, Klaus Klaus.Bartz at coi.de
Fri Oct 27 12:41:17 CEST 2006


Dear colleagues,
on the user list there was someone which
uses a name of a shortcut which contained a colon.
We all know, that this is not allowed on Windows.
But the API of Windows accept such nonsens 
without any warning or error. I have tested it for
installed files via <singelfile>. Also no warning
or error. The result is a file with a name upto the
colon. The file cannot be opened and not removed.
Uninstall fails at this point. In the moment I do not
know how cleanup.
May be this can cast a damning light on IzPack.

Therefore I am thinking about how we can avoid
such ugly usage of our product. One way can be to
inherit File to a class which verifies a valid filename
OS dependant (it seems so that on Linux such nonsens 
is allowed). There are many constructor calls of
File, therefore a little bit more work.
Additional there is the problem if this is not
used in custom code.
Any comment?
Any better solution?

Cheers

Klaus



More information about the izpack-devel mailing list