Opened 15 years ago
Closed 8 years ago
#4299 closed defect (obsolete)
Subdirectory creation fails for shared folder using ant => Fixed in SVN / 3.0.10
Reported by: | bikehead | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 3.0.8 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | Linux |
Description (last modified by )
I have downloaded apache ant 1.7.1 and installed it on my windows xpsp3 32bit guest under virtualbox on a fedora x64 system. I've included a very simple ant build.xml file that just tries to create a directory and untar a simple archive.
If I run this build with the archive file in a directory on my virtual c: drive or in an attached samba directory it creates a series of nested directories using an ant mkdir command and then unzips a simple archive.
However, if I run this in a shared folder then ant run will fail trying to execute the mkdir command. It will fail on the unzip too if the mkdir had succeeded.
Attachments (2)
Change History (20)
by , 15 years ago
by , 15 years ago
simple zip archive file to be used by the attached build.xml
comment:4 by , 15 years ago
Instructions for attachements. On a Linux host (Fedora) and a windows XP guest with java 1.5 (1.6 might work, but I haven't tried it) and ant installed, put build.xml and a.zip into the same directory and do run ant. Under the current VirtualBox it will fail in two ways: first it will fail trying to unzip the "a.zip" file. If you take that step out (uncomment it) then it will fail when it tries to create a subdirectory.
comment:5 by , 15 years ago
I experience this on 3.0.6 with linux host ( ubuntu 9.04 amd64 ) and windows XP guest.
(1.6 might work, but I haven't tried it)
My java 1.6 fails using ant 1.7.1.
comment:7 by , 15 years ago
The usage of ant is irrelevant -- any usage of the Java mkdirs() method <http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#mkdirs()>, which is what ant uses to implement its mkdir task, fails in the same way.
(this is mentioned in http://www.virtualbox.org/ticket/1870, with simple code provided @ 2008-09-11 17:54:26 -- not sure why that issue got closed as a dupe of this, since this issue is related to a proximate factor, i.e. ant...but I digress.)
comment:8 by , 15 years ago
I just want to respond to cemerick's comment. The problem with 1870 is the sample code provide does work correctly as of VB 3.0.0 so it isn't just any use of mkdirs(). I opened this bug because 1870 appears to be fixed, but ant and unzip are doing something different that still causes failures. I don't know what that difference is, but there is still a problem and the sample code in 1870 does not show it.
comment:9 by , 15 years ago
A similar piece of code in an application of ours that used File.mkdirs() failed for me on v3.0.2 (I think?). So, perhaps there some interaction between mkdirs and particular environment, JDK version, etc. etc.? That's just speculation though, and I'm unfortunately not in a position to re-test at the moment.
comment:10 by , 15 years ago
Please test new additions: http://www.virtualbox.org/download/testcase/VBoxGuestAdditions-r53888.iso The new build contains a fix which may help.
comment:11 by , 15 years ago
Summary: | Subdirectory creation fails for shared folder using ant. → Subdirectory creation fails for shared folder using ant => Fixed in SVN / 3.0.10 |
---|
comment:12 by , 15 years ago
I'm not the originator of the bug, but I just tried the .iso you just posted and it removed the problem in my environment.
comment:14 by , 15 years ago
Version: | VirtualBox 2.2.4 → VirtualBox 3.0.8 |
---|
comment:15 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:16 by , 15 years ago
Hey, this works now, that's great :-)
Now if we can just get a bump in shared folder performance #1728 ...
comment:17 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Seems to have reappeared in 3.1.8 (and latest 3.3.4). In 3.1.6 it worked. Seen on Windows and Ubuntu guests. Only the very first directory does not allow to mkdir (and rmdir). In Subdirs mkdir works.
comment:18 by , 8 years ago
Description: | modified (diff) |
---|---|
Resolution: | → obsolete |
Status: | reopened → closed |
Please reopen if still relevant with a recent VirtualBox release.
ant build.xml file (to be used with the attached a.zip file)