You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org> on 2007/04/14 23:47:15 UTC
[jira] Resolved: (TAPESTRY-1120) UploadPart / getFileName() doesn't
work cross-platform
[ https://issues.apache.org/jira/browse/TAPESTRY-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert resolved TAPESTRY-1120.
-------------------------------------
Resolution: Fixed
Fix Version/s: (was: 4.1.1)
4.1.2
Applied suggestion, thanks.
> UploadPart / getFileName() doesn't work cross-platform
> ------------------------------------------------------
>
> Key: TAPESTRY-1120
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1120
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.0.2
> Reporter: Martin Petras
> Assigned To: Jesse Kuhnert
> Fix For: 4.1.2
>
>
> I could not reopen the issue http://issues.apache.org/bugzilla/show_bug.cgi?id=27544
> So I opened this one.
> The bug described by Karel Miarka is still not resolved. There is a bug in org.apache.tapestry.multipart.UploadPart 's getFileName method.:
> public String getFileName()
> {
> File file = new File(this.getFilePath());
> return file.getName();
> }
> You simply can not rely on JDK File implementation because it is not suitable to work cross-platform. Especially when uploading file from the MS IE client (on Windows of course:) to the unix-like server. MS IE sends full filename i.e. C:\Documents and Settings\user\Desktop\test.txt. This UploadPart implementation on the server use "/" character as a separator, therefore the file name could not be resolved.
> It would be appreciable if this bug would be fixed in the next release.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org