Skip to content

WikiPage constructor hangs #94

Description

@rwv37

I have the following class:

internal class WantedPage : WikiPage
{
    internal WantedPage(WikiPage wikiPage) : base(wikiPage.Site, wikiPage.Title)
    {
    }
}

It (and other classes like it) have been working fine for me for a while now, but I just found a problem where my program hangs, apparently during the call to the base constructor.

Specifically, I received (from the QueryPageGenerator for Wantedpages) a WikiPage object with the title WP:Namespace. One thing that I think might be important to note at this point: I previously added an interwiki to my site to direct "WP:xxxx" to (wikipedia)/WP:xxxx".

Anyway, I fed that WikiPage to my WantedPage classes constructor, and it seems to hang there indefinitely: If I stick this...

Log.Error($"Made wanted page {this.Title} from wiki page {wikiPage.Title}!");

... inside of the body of the constructor, the log message never happens (for WP:Namespace; it does happen for all titles I've encountered).

Now that I've figured out that this is apparently where my program is hanging, I'll be able to work around it without much trouble, but I wanted to report the bug anyway.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions