#284 Unable to edit imported topics

FlexWiki v2.0

I am currently running build and using the SQL provider.

I have an old knowledgebase that I wanted to import into my flexwiki. So I wrote a program that would convert the KB articles (~3800 articles) into a flexwiki friendly format and had it insert the topic in the the SQL Topic table with all the correct information in the fields.

The flexwiki is able to search and view them but I get an unhandled exception error when I try to edit them.

Here is the error:
2008-05-29 08:49:58,254 [ERROR] FlexWiki.Web (null) - Uncaught exception in the web application: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at FlexWiki.Federation.<>c__DisplayClassa.<GetTopicModificationTime>b__9(NamespaceManager manager) in C:\crap\FlexWikiCore-\EngineSource\Federation.cs:line 684
at FlexWiki.Federation.ForwardToNamespaceManager[T](QualifiedTopicRevision revision, NamespaceAction`1 action) in C:\crap\FlexWikiCore-\EngineSource\Federation.cs:line 1252
at FlexWiki.Federation.GetTopicModificationTime(QualifiedTopicRevision topicRevision) in C:\crap\FlexWikiCore-\EngineSource\Federation.cs:line 673
at FlexWiki.Web.WikiEdit.ShowEditPage(Boolean preserveContent) in C:\crap\FlexWikiCore-\FlexWiki.Web\WikiEdit.aspx.cs:line 807
at FlexWiki.Web.WikiEdit.DoPage() in C:\crap\FlexWikiCore-\FlexWiki.Web\WikiEdit.aspx.cs:line 283
at ASP.wikiedit_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.wikiedit_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

If I rename the article I can then edit it without the error.

I've tried restarting IIS, clearing the cache and rebooting the server to no avail.

Is this a Cache issue or something else?

In any case, how do I fix this?



  • John Davidson

    John Davidson - 2008-08-23
    • status: open --> closed-invalid
  • John Davidson

    John Davidson - 2008-08-23

    Logged In: YES
    Originator: NO

    I seem to have missed this bug report until now, when reviewing SourceForge directly. This bug is not really a bug but probably a product of how the topics were created in the SQL Provider. While you gave the correct information in all the fields you did not get the correct format for the name field which also stores creation date information in a specific format.

    The rename function in SQL Provider does not depend upon that creation information and then fixes the data so that you are then able to edit the file. Take a look at the names in a namespace folder in a File System Provider and you will see the correct file name format.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks