[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBAS-6518 - spaces in paths (Repost)

adrian@jboss.org do-not-reply at jboss.com
Wed Feb 18 11:24:37 EST 2009


"alesj" wrote : "adrian at jboss.org" wrote : I've managed to create a testcase in jboss trunk that reproduces this problem.
  |   | It's a hack, so I haven't ported it to JBoss5.
  |   | 
  | Why in jbossas instead of vfs?
  | Hard to reproduce in vfs?
  | 

Because the original testcase was an ear and we need some tests to trap
this kind of thing anyway, even when its not VFS related.

anonymous wrote : 
  | "adrian at jboss.org" wrote : 
  |   | While looking at the problem I also found:
  |   | https://jira.jboss.org/jira/browse/JBVFS-89
  |   | 
  |   | I don't know whether that it is the cause.
  |   | The syptom is jar files that have isLeaf() == true
  |   | and it only occurs if the spaces in the VFSContext part of the original path.
  |   | 
  | I've changed every call to File::toURL to use your suggested File::toURI::toURL.
  | It's already commited to trunk and deployed to snapshots.

I'm pretty sure there's more to it than that. I've just done the same thing 
(but not committed it) and there are a few extra failures in the VFS testsuite 
(which already had 15 failures????!!!!!).
I've fixed the extra issue which is in
ZipEntryContext.initRootAndPath() not decoding the URL properly, 
but it doesn't seem to have resolved the original problem.

The real issue is why it thinks the jar is a leaf, which I couldn't debug yesterday
because the codebases were majorly out-of-synch.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211167#4211167

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211167



More information about the jboss-dev-forums mailing list