Menu

Restricted Namespace - page retrieval

Help
2008-07-09
2013-05-13
  • Daniel Protopopov

    Hi there,
    I've installed Lockdown extension (http://www.mediawiki.org/wiki/Extension:Lockdown) and am unable to access page for myself (sysop, Assistant) groups. Locally I'm able to login and edit/read page in restricted namespaces just fine from the browser, but when I try accessing it from DotNetWikiBot, it gives me page output as if I'm not logged in.
    The example of it's tokenized output is: http://img149.imageshack.us/img149/2774/ermrs5.png
    Thank you.

     
    • CodeDriller

      CodeDriller - 2008-07-10

      Does your bot work correctly when Lockdown extension is disabled?

      If main MediaWiki file in your installation is called index.php5, try renaiming it to index.php.

       
    • Daniel Protopopov

      Yes, it does work without Lockdown extension. And why would I need to rename index.php5 into index.php file, again?

       
      • CodeDriller

        CodeDriller - 2008-07-12

        Now DotNetWikiBot Framework supports only "index.php" title of main file. It won't work, if this file is renamed, sorry.

         
    • Daniel Protopopov

      I can rename index.php to index.php5 without problems and yet access normal pages without Lockdown extension. The problem might lie in cookies stored locally (just a thought).

       
      • CodeDriller

        CodeDriller - 2008-07-13

        No, the problem is that "index.php" filename is used inside DotNetWikiBot Framework as a constant. So you need to change all "index.php" constants to "index.php5" in framework's source code (dotnetwikibot.cs file) and then recompile the framework. If you're going to do that, don't forget to change "index.php" to "index.php5" in regular expressions too, especially in GetPaths() function. And delete "Cache" subdirectory in bot's directory before recompiling.

        There may be some other problems with that extensions, I never tested it.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.