VirtualBox

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 aeichner)

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)

build.xml (397 bytes ) - added by bikehead 15 years ago.
ant build.xml file (to be used with the attached a.zip file)
a.zip (1.1 KB ) - added by bikehead 15 years ago.
simple zip archive file to be used by the attached build.xml

Download all attachments as: .zip

Change History (20)

by bikehead, 15 years ago

Attachment: build.xml added

ant build.xml file (to be used with the attached a.zip file)

by bikehead, 15 years ago

Attachment: a.zip added

simple zip archive file to be used by the attached build.xml

comment:1 by igorgatis, 15 years ago

This is the same issue as 1870 (http://www.virtualbox.org/ticket/187)

comment:3 by Frank Mehnert, 15 years ago

I need some simple instructions how to use this example.

comment:4 by bikehead, 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 rcatherman, 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:6 by Frank Mehnert, 15 years ago

Well, the information I was looking for was ant unzip.

comment:7 by Chas Emerick, 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 bikehead, 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 Chas Emerick, 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 sunlover, 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 Frank Mehnert, 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 rcatherman, 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:13 by Frank Mehnert, 15 years ago

Thanks for the feedback!

comment:14 by Frank Mehnert, 15 years ago

Version: VirtualBox 2.2.4VirtualBox 3.0.8

comment:15 by Frank Mehnert, 15 years ago

Resolution: fixed
Status: newclosed

comment:16 by Chas Emerick, 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 Dieter Fauth, 14 years ago

Resolution: fixed
Status: closedreopened

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 aeichner, 8 years ago

Description: modified (diff)
Resolution: obsolete
Status: reopenedclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette