Menu

#38 V1 RC2 - Error accessing User-Pages

open
nobody
Page edit (10)
5
2004-03-03
2004-03-03
Anonymous
No

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;

Discussion

  • Robert Brinton

    Robert Brinton - 2004-03-07

    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).

     
  • Robert Brinton

    Robert Brinton - 2004-03-08

    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;

     

Log in to post a comment.