On Mon, Jul 29, 2013 at 1:05 PM, Christian Meunier <[email protected]> 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
Sure thing, being new to xwiki, can you point me to how I can check that ? Is it just a velocity reference I should try to put in any given page ?
Yes ----------8<---------- {{velocity}} $xcontext.userReference {{/velocity}} ---------->8---------- Hope this helps, Marius
As for click on a user, basically I just edited a page in the sandbox area of the sub wiki with a global user. Then the activity stream is picking up the change and I click on the user from there. Note than If I load the modified page, the last modified by XXX is pointing to the same URL as the activity stream, so it does not look like to be local to the activity stream component.
-- Chris
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs