ICEmobile
  1. ICEmobile
  2. MOBI-220

Input/upload components fail to copy some uploaded files on windows platform

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Final
    • Fix Version/s: 1.1 Beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat, windows, where tmp folder and server folder are not on the same system drive.

      Description

      After some recent changes to my windows machines, my server folder folder no longer resides on the same drive as my user tmp folder. As it turns out after this system change was made I was not longer able use the device input/upload components. The failure pointed at the file not being found in the servers download folder.

      The utility class org.icefaces.mobi.utils.Utils.createMapOfFile() makes all call to File.renameTo() which appears to be failing silently in my system setup ultimately resulting in the file not found exception.

      It would appear that doing a regular file stream copy works fine if the renameTo() mehtod fails.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28734 Mon Apr 16 17:16:05 MDT 2012 ted.goddard copy bytes directly from part stream to destination file (MOBI-220)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/mobi/utils/Utils.java

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: