ParentPageDialog.aspx bug for Content Administrators

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/16/2013 10:33:34 AM
Gravatar
Total Posts 128

ParentPageDialog.aspx bug for Content Administrators

When a user who is a Content Administrator but not an Administrator attempts to set the parent page of a page, and the number of pages has gone over the threshold where it switches to using the popup tree view, they get a server error. This appears in the log:

2013-05-16 16:20:12,187 ERROR 82.69.43.209 - en-GB - /Dialog/ParentPageDialog.aspx?pageid=682 - mojoPortal.Web.Global -  Referrer(https://cmsidocumentation.esdm.co.uk/Admin/PageSettings.aspx?pageid=682) useragent Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.UI.ParentPageDialog.tree_TreeNodeDataBound(Object sender, TreeNodeEventArgs e)
   at System.Web.UI.WebControls.TreeView.OnTreeNodeDataBound(TreeNodeEventArgs e)
   at System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node, IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand)
   at System.Web.UI.WebControls.TreeView.DataBindNode(TreeNode node)
   at System.Web.UI.WebControls.TreeView.PerformDataBinding()
   at System.Web.UI.WebControls.Adapters.HierarchicalDataBoundControlAdapter.PerformDataBinding()
   at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at System.Web.UI.WebControls.TreeView.DataBind()
   at mojoPortal.Web.UI.ParentPageDialog.BindTree()
   at mojoPortal.Web.UI.ParentPageDialog.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I've had to make this user a full admin to fix this...

mojoPortal Version 2.3.9.7 MSSQL
Operating System Microsoft Windows NT 6.0.6002 Service Pack 2
ASP.NET Info v4.0.30319 Running in Full Trust
 

5/17/2013 10:28:09 AM
Gravatar
Total Posts 18439

Re: ParentPageDialog.aspx bug for Content Administrators

There must be some additional factor involved. I'm not able to produce this error just by launching the parent page dialog as a user in Content Administrators role.

 

5/17/2013 10:38:49 AM
Gravatar
Total Posts 128

Re: ParentPageDialog.aspx bug for Content Administrators

It was very clear cut on our site: when I made the user Admin >> no error, when he was only Content Admin >> error.

What other information can I give you to help track this down?  Would you like an admin account on the affected site?

5/17/2013 10:49:37 AM
Gravatar
Total Posts 18439

Re: ParentPageDialog.aspx bug for Content Administrators

I think there must be some factor involving the page hierarchy and edit roles or something, I really don't know what, I just know I am not getting an error. Does it happen on any page for you or just a specific page or when there is a specific parent page?

5/19/2013 2:38:09 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: ParentPageDialog.aspx bug for Content Administrators

I have replicated this problem exactly on a different site, but one which is a child site of the one that originally produced the error. Does that help? I could send you the database if you want.

5/21/2013 4:25:01 AM
Gravatar
Total Posts 128

Re: ParentPageDialog.aspx bug for Content Administrators

And I've now reproduced the problem on a completely unrelated site (actually same web server, but different web site and database) that also has sufficient pages to make the parent page setting use the popup.

And I've tracked the problem down to the use of this setting:

<add key="ParentPageDialogExpansionDepth" value="-1"/>

If I change this to <add key="ParentPageDialogExpansionDepth" value="1"/> (or 2) then the problem does not occur. So for some reason, the tree is failing to expand fully for users who are Content Admin but not Admin. Hope this helps track down the bug?

5/21/2013 11:37:18 AM
Gravatar
Total Posts 18439

Re: ParentPageDialog.aspx bug for Content Administrators

Thanks! With that additional information I was able to produce the problem and fix it. I've patched the 2.3.9.7 release with this fix. The only changed file is /bin/mojoPortal.Web.dll

Best,

Joe

5/24/2013 10:02:22 AM
Gravatar
Total Posts 128

Re: ParentPageDialog.aspx bug for Content Administrators

Thanks Joe I can confirm that has fixed the issue for us.

You must sign in to post in the forums. This thread is closed to new posts.