[
https://jira.jboss.org/jira/browse/JBVFS-130?page=com.atlassian.jira.plug...
]
Thomas Diesler commented on JBVFS-130:
--------------------------------------
The top level problem is that it cannot do
AssembledDirectory.openStream()
which perhaps is reasonable, is it?
I then tried
VFSUtils.temp(AssembledDirectory)
which also failed because it cant create a directory in /tmp
I've seen this before (linux permission issue) before and vaguely remember that
new File("/tmp/foo").mkdir()
might not work, wheras
File.createCreateTempFile("name", ".tmp",
"foo").getParentFile()
or similar does. It effectively delegates tmp file/dir handling to the java API.
VFSUtils.temp(assembledDirectory) cannot create tmp dir
-------------------------------------------------------
Key: JBVFS-130
URL:
https://jira.jboss.org/jira/browse/JBVFS-130
Project: JBoss VFS
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.1.3.SP1
Reporter: Thomas Diesler
Assignee: Ales Justin
VirtualFile assemble2 = assembleBundle("bundle2",
"/bundles/update/update-bundle2");
assemble2 = VFSUtils.temp(assemble2);
java.lang.IllegalArgumentException: Cannot create directory:
/tmp/3j001-vrhokp-g3b6hc7q-1-g3b6hcjv-8
at
org.jboss.virtual.plugins.copy.AbstractCopyMechanism.createTempDirectory(AbstractCopyMechanism.java:213)
at
org.jboss.virtual.plugins.copy.AbstractCopyMechanism.createCopy(AbstractCopyMechanism.java:190)
at
org.jboss.virtual.plugins.copy.ExactCopyMechanism.createCopy(ExactCopyMechanism.java:47)
at
org.jboss.virtual.plugins.copy.AbstractCopyMechanism.copy(AbstractCopyMechanism.java:175)
at
org.jboss.virtual.plugins.copy.AbstractCopyMechanism.copy(AbstractCopyMechanism.java:135)
at org.jboss.virtual.VFSUtils.copy(VFSUtils.java:872)
at org.jboss.virtual.VFSUtils.temp(VFSUtils.java:840)
at org.jboss.test.osgi.bundle.BundleUnitTestCase.testUpdate(BundleUnitTestCase.java:158)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira