Carsten Ziegeler wrote:
I checked ContextSourceFactory, which calls resolver.resolveURI() with the translated URL. If that URL is a "file:", then we should get a (writeable) FileSource.Sylvain Wallez wrote:Hi team,This is true for 2.0.x, but not for 2.1 where the new source resolver
Bug #15279 (WriteableSource doesn't work with "context:" URLs) reveals what seems to me a design flaw in the SourceResolver.
The SourceResolver uses two kinds of classes can to do its job : SourceFactories and URLFactories. When an URL has to be resolved, it first checks if any SourceFactory handles the URL's protocol, and if there's none, it falls back to searching an URLFactory then creates an URLSource.
package from excalibur is used.
URLFactories are deprecated (starting with 2.1)
With this source resolving, the same implementation, URLSource I think,
is used. I guess the problem is that the current implementation of
the context: protocol does not use the WriteableSource implementation.
It's been a long time since I wanted to dig in the source resolution in 2.1. Time to do it ;-)
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]