Hi All,
I sent 2 emails to the users list without much success and I am hoping
that I might find a more suitable audience for my somewhat technical
issues with the devs.
1) Global users in sub wiki.
In the system I am trying to setup, all the users are created using a
custom auth module in the main wiki (Global users), so there will be no
local users. The issue is that on a sub wiki, when you click on a user
to bring up its profile, you end up on a document not found. From the
auth module, the principal returned is prefixed with the 'XWiki.' so the
system should be able to differentiate between local and global users
and act accordingly.
I checked that I could reproduce the issue even if i am not using any
custom authentication.
Should i log this as a bug in Jira ?
2) Empty servlet path support
The second thing I am struggling with is shortening the urls. I am
following this guide:
But no matter what I try, I cannot make it work without the '/bin/
prefix. Please note that the xwiki is running under Jetty as the main
context (mapped as '/') so the url I have is:
server.com/WebHome which according to the short urls document should work.
it appears that the issue comes from StandardXWikiURLFactory:
--------------------
String type = extendedURL.getSegments().get(0);
if (type.equals("bin") ||
type.equals(this.configuration.getWikiPathPrefix())) {
xwikiURL = this.entityURLFactory.createURL(extendedURL,
parameters);
} else {
throw new UnsupportedURLException(String.format("URL type
[%s] are not yet supported!", type));
}
----------------
So basically for
server.com/WebHome, what is happening is that type
above equals to "WebHome" and so the condition obviously fails and
throws the UnsupportedURLException.
Given the above code, I am either forgetting something in the xwiki.cfg
or it simply cannot work out of the box...
If i were to provide my own custom XWikiUrlFactory, would it solve
entirely the issue or some other parts of the system will nevertheless
fails because they have the same assumption regarding the presence of
the bin or the PathPrefix in the url ?
Thanks in advance for your help !
--
Chris