Morning Quicky: Cant Change Page Settings

So a user of mine tried to edit a page in our massive collection of sites that document software applications and their use. When they went to (in editing mode) Page -> Page setting they got the following in their face:
Error returned: User Not Found
Source of problem:

My predecessor had a search problem after he migrated users over to the MOSS 2007 server. A few users had the same GUID as each other, even tho they are suppose to be unique. So his solution was to delete the offending user out of the database manually... And that is how i got my problem. Parts of the sharepoint sites pull from the tp_ID feild and reference that. Others reference tp_GUID. This page uses tp_ID to pull the information it needs to generate the settings page.

My hack-solution:
This is unsupported by microsoft, note that i only did this as a temporay measure.
I created, manually, a fake user in the database that used the same tp_ID as the one he deleted a while ago.. yes i had to do some annoying sql to get it to allow me to insert. But it did fix the problem, lets see what other problems my "fix" brings up.

The Proper solution V1:
The idea here is to rebuild the SID for all of the users on the site, but in order to do this you have to remove all of the currently-setup security levels and access for all users on the website. The most straight forward method to do this is to import your website and export it:
  1. stsadm -o export -url -filename -versions 2
  2. Delete the site collection.
  3. stsadm -o import -url -filename -updateversions 2 -nofilecompression
Again, the idea is to make the SID's reorder themselves, in order to accomplish this you have to NOT use -includeusersecurity in your command. You will loose all user-level security on the site(s) when you do this. In my current case this is not the best of solutions, as we have several 100 pages that have security set up on them. If and when i find another solution, i'll post it up here.

Comments

Popular posts from this blog

CI Build broke after nugit update

Sharepoint 2007 - Access Denied when you try to edit

Project 2010 and Project Pro 2007