Hi,

we now support multiple workspaces with a single resource resolver
(factory) by using the "workspace":"path" notation.

However we still have a constant defined to specify the workspace for
login into the resource resolver factory. we should remove this to avoid
any potential problems and only use the new mechanism.
Therefore I think we should remove or deprecate the constant and not
support it by the resource resolver factories.

As always, there is one problem with this: the new script resolver is
able to resolve scripts in the workspace of the request. We have to find
a different solution. The first change is to use the "workspace":"path"
notation inside the script resolver - this should be easy.
The only question is how to specify which workspace to be used? The main
part is the resolve(Http request, String) method. What about defining a
request attribute which could hold a potential workspace name and the
resource resolver than creates a resource path like "workspace:path"?
The script resolver can then easily to a resource.getPath() and pick the
workspace name from the path.

WDYT?
Carsten
-- 
Carsten Ziegeler
[email protected]

Reply via email to