Joern Nettingsmeier wrote:
hi *!
does the fallback:// uri resolver keep its context when fallback calls
are nested?
for example, consider this:
pubs/<my-pub>/config/some.xml references
fallback:///config/some_other.xml, which is not present in <my-pub>.
iiuc, it will now be searched in <template-of-my-pub>. say it exists
there. if this file now references fallback:///config/a_third_file.xml,
will this be taken from <my-pub> or <template-of-my-pub> ?
The critical lines are in FallbackSourceFactory.java:
Request request = ContextHelper.getRequest(this.context);
String webappUrl =
request.getRequestURI().substring(request.getContextPath().length());
URLInformation info = new URLInformation(webappUrl);
String publicationId = info.getPublicationId();
This means the Context which is passed to the SourceFactory object is
used to determine the current publication. In most cases, this is
<my-pub> (if the Context hasn't been manipulated).
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]