V1 RC2 - Error accessing User-Pages
Status: Beta
Brought to you by:
egroise
The problem occurs, if SushiWiki authentication is
configured as follows:
- authentication mode = "Windows"
- login = "WINDOWS"
- storage = "SQL"
If your full username is "myDomain\myLogin" SushiWiki
internally creates 2 differing page names for the
corresponding user-page:
1) "WikiUser.myDomain-myLogin"
2) "WikiUser.myDomain\myLogin"
The 2nd variant results from a missing character
substitution in SushiWikiLib\_WikiUserSettings.cs line 137
>> page.title = UserPagePrefix + username;
Logged In: YES
user_id=135065
In my sources I changed it to:
string temptitle = UserPagePrefix + username;
page.title = temptitle.Replace('\\','-');
instead. I don't know if that's the best solution, but it seems
to work (for xml storage anyway).
Logged In: YES
user_id=135065
I actually had to move the temptitle with the replace up to
line 132 in front of the page check
string temptitle = (UserPagePrefix + username).Replace('\\','-
');
if (!WikiManager.Singleton().GetPageShortInfo
(temptitle).pageFound)
and then I used the temptitle for the page title
page.title = temptitle;