On 7/29/2013 18:13, Marius Dumitru Florea wrote:
On Mon, Jul 29, 2013 at 1:05 PM, Christian Meunier
<christian.meunier(a)magelo.com> wrote:
> On 7/29/2013 17:57, Marius Dumitru Florea wrote:
>> My bad, actually I am already doing that (Used the custom http auth module
>> as foundation for my own module)
>>
>> String validUserName = username;
>> String validUserFullName = "XWiki." + validUserName;
>>
>> if (context.isMainWiki()) {
>> return new SimplePrincipal(validUserFullName);
>> } else {
>> return new SimplePrincipal(context.getMainXWiki() + ":" +
>> validUserFullName);}
>> }
>>
>> So in case of a sub wiki, I do return "xwiki:XWiki.mflorea" already.
Just
>> checked with a remote debugger to be sure.
>> Ok, can you check if $xcontext.userReference is good? (points to the
>> main wiki?). Also, when you say "click on a user to bring up its
>> profile" is this a link that you generate in the content of a document
>> or the current user profile link from the top left corner (at the end
>> of the top menu)? I would investigate how this link is generated.
>>
>> Hope this helps,
>> Marius
>
So the user reference is good, value for global user jelan is:
'xwiki:XWiki.Jelan'
I also re tested this with a blank wiki restoring the default web.xml
and xwiki.cfg (I edited for the shor urls)
Only 2 things I edited in the cfg file are as follow:
---------------------------------------------
xwiki.virtual.usepath=0 (virtual wikis have different domain names)
xwiki.webapppath=