[
https://jira.jboss.org/jira/browse/JBVFS-130?page=com.atlassian.jira.plug...
]
Ales Justin commented on JBVFS-130:
-----------------------------------
> The first one should probably mock what File::openStream does for
real/plain directory.
URL url = getResource("/vfs/test");
InputStream is = url.openStream(); //new FileInputStream(new File(url.toURI()));
int read;
while((read = is.read()) >= 0)
{
System.out.print((char)(read));
}
is.close();
Direct URL usage lists directory's contents, the other one - FileIS - throws an
exception.
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