Hi Devs,

In the current xwiki-webdav implementation we have introduced a feature
where all the pages under a certain space is grouped according to the
starting characters of those pages. For an example, consider the following
setup :

space : Farm

pages under Farm : Dog, Cat, Donkey, Carrot, Mouse

Then the user will see the following directory structure on webdav,

xwiki/webdav/spaces/Farm/
|
|-D (Dog & Donkey goes here)
|
|-C (Cat & Carrot goes here)
|
|-M (Mouse ends up here)

Note : How many starting characters used to make groupings depends on the
number of documents inside the space.

Now, from xwiki-ui to access various documents via webdav, we have to allow
direct access to pages as well. That is, following url pattern should work
fine :

xwiki/webdav/spaces/<space_name>/<page_name> (makes sense right ?)

Now the problem with the current implementation is that in a url like
xwiki/webdav/spaces/FOO/BAR we don't know whether BAR is a grouping or if it
is a page (direct access). So I propose the following :

* All the grouped directories should start with a "_" and end with a "_"
(may be only one of them, but i like symmetric)

By this way we can easily differentiate direct page requests from indirect
access.

Ex :

Indirect : /xwiki/webdav/spaces/Foo/_D_/D

Direct : /xwiki/webdav/spaces/Foo/D

Note : Here the page name is 'D'.

WDYT ?

Thanks.

- Asiri
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to