Homepage permissions getting re-set

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.
2/25/2013 9:30:10 AM
Gravatar
Total Posts 60

Homepage permissions getting re-set

I'm sorry this isn't an easiy bug to reproduce but maybe something you can keep an eye out for when looking at page security code...

It appears that in certain circumstances when a user updates page settings, all view rights are removed from the page with an id of zero - it gets set to "Only Administrators are allowed", rather than (or in addition to?) making the intended change to the page they were working on.  This has the effect that when someone tries to view that page they get taken to the login page instead.  Unfortunately for many sites the page with PageID=0 is the home page of the parent site, so probably the most important page of all!

This has now occurred with two separate clients on separate databases and code instances.  It's probably occurred 7 or 8 times with the first (and most active) client on an older version of Mojo but as today it happened with a different client with a much more recent Mojo version (2.3.9.4) I thought it was worth flagging-up.

Most of our other clients use child sites and only we have access to the parent (which has few pages) so that probably explains why this problem hasn't occurred with any of those.

For the client that had the problem a number of times my solution was to create a new homepage (which of course was allocated a new non-zero ID) and hide the old one.  The problem has never recurred since doing that (about 7 months ago) - hence my suspicion that it's pageid=0 that's the problem.  I did have a bit of look through all the mojo sprocs and code, as well as our own custom code, but couldn't see obvious culprit.

For any new instances where the client is using a parent site we're planning on creating a new home page as a first step and deleting the default page so there's no page on the system with an id of zero

Regards,

Ian

 

MP 2.3.9.4 MSSQL

​Windows 2008 server - web edition
.net 4

2/25/2013 9:49:51 AM
Gravatar
Total Posts 18439

Re: Homepage permissions getting re-set

Hi Ian,

I suspect this is the same bug as reported on this thread. This is fixed in the source code repository so it will be fixed in the next release. For now if you instruct users to not edit page permissions on new pages without first saving the page it should prevent the problem.

I don't know of any other scenario that could cause this problem. I don't think it matters what the page id is.

Hope that helps,

Joe

2/26/2013 12:40:40 PM
Gravatar
Total Posts 60

Re: Homepage permissions getting re-set

Ah, that does indeed sound like the same problem!

Thanks Joe - I had read part of that thread but missed the last couple of posts!

Ian

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