Hi Mike,

Thanks a lot for reporting this problem. I've updated the svn repository. Could you make some tests?

best regards,
Thierry Boileau

Hi there.
[ ... ]

I'm trying to use code like the following to host a bunch of .css files. Because I had problems, I've been testing it with URLs like "http://localhost:8080/foo/css/test.txt";
[ ... ]

When I ask for "http://localhost:8080/foo/css/test.txt"; I get a 404. From debugging it, the following seems to be happening:

- a DirectoryResource is successfully created which contains the contents of "war:///css/test.txt" ("Hello") and has a list of variants which matches the contents of "war:///css/test.txt" (a URI list of "/css/test.txt"). This is assigned to target on Finder.java:268
- target.handleGet() is called.
- Down within the call stack a DirectoryResource.getVariantsReferences() call is made. Within this call, this.targetUri is "war:///css/test.txt".

Btw, I just tried using the debugger to set the targetUri to be "war://css/". This got further, in that it got a list of URIs containing one item, "/css/test.txt", and this passed validation. However, it caused problems upstream because it was missing a protocol. Perhaps it needs to be resolved against a base URI with war:// prefix?

Again, I'd to be happy to be shown to be barking up the wrong tree...

Reply via email to