Hi Christian,
On Jul 29, 2013, at 5:33 PM, Christian Meunier <christian.meunier(a)magelo.com>
wrote:
Vincent, did you had a chance to look at this ?
Instead of
if (type.equals("bin") || type.equals(this.configuration.getWikiPathPrefix()))
{
Should the addition of an empty condition like that sufficient ? :
if (type.equals("bin") || this.configuration.getWikiPathPrefix().isEmpty() ||
type.equals(this.configuration.getWikiPathPrefix())) {
Sorry, I didn't get the time today but it's high on my todo list! :)
I'll try to check this out tomorrow. Continue pinging me till I provide an answer! :)
Thanks
-Vincent
Thanks !
--
Chris
>>>>
>>>> 2) Empty servlet path support
>>>>
>>>> The second thing I am struggling with is shortening the urls. I am
>>>> following
>>>> this guide:
>>>>>
http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs
>>>> 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));
>>>> }
>>>> ----------------
>>>>
>>> What version of XWiki are you using? I think some changes have been
>>> made to the URL "parsing" code in 5.1. Vincent, WDYT?
>> I am using XWiki Enterprise 5.1
>>
>>> Thanks,
>>> Marius