[jboss-jira] [JBoss JIRA] Commented: (JBVFS-130) VFSUtils.temp(assembledDirectory) cannot create tmp dir
Ales Justin (JIRA)
jira-events at lists.jboss.org
Sun Dec 20 18:29:30 EST 2009
[ https://jira.jboss.org/jira/browse/JBVFS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12500920#action_12500920 ]
Ales Justin commented on JBVFS-130:
-----------------------------------
The first one should probably mock what File::openStream does for real/plain directory.
For the second we should find which is the right usage or run the code in privileged block.
> 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
More information about the jboss-jira
mailing list