[izpack-devel] bad file names

miraodb miraodb at hotmail.com
Fri Oct 27 18:23:23 CEST 2006


Hi Guyz,

First of thanks Klaus for pulling this out !
I agree with Elmar that we should try to investigate to see if it could
happen somewhere else than for the shorcut file.
I'll spend some time on it tonight and get back to you if i find more
insights.

Cheers,
Fabrice
----- Original Message ----- 
From: "Elmar Grom" <elmar at grom.net>
To: <izpack-devel at lists.berlios.de>
Sent: Friday, October 27, 2006 12:07 PM
Subject: Re: [izpack-devel] bad file names


> This is indeed an ugly thing.
>
> You mention specifically the shortcut as a problem. Is this only an
> example
> or is it the only place where this behavior actually leads to a problem?
> If
> it is the only place, then we might be able to come up with a local
> solution. If it is not, then I suspect a modification of File itself might
> not be sufficient, because this problem could also happen with the content
> of the shortcut, not just with the shortcut file...
>
> Perhaps some more analysis is required to find all possible ways in which
> this problem could affect the performance of IzPack.
>
> Elmar
>
> -----Original Message-----
> From: izpack-devel-bounces at lists.berlios.de
> [mailto:izpack-devel-bounces at lists.berlios.de]On Behalf Of Bartz, Klaus
> Sent: Friday, October 27, 2006 3:41 AM
> To: izpack-devel at lists.berlios.de
> Subject: [izpack-devel] bad file names
>
>
> 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
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-devel
>
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-devel
>
>




More information about the izpack-devel mailing list