The unsafe-updates tag has no wiki summary.
2
votes
1answer
99 views
ValidateFormDigest - when exactly does it need to be called?
Can someone explain to me exactly when and why I need to call SPUtility.ValidateFormDigest?
Contrary to the spec, which says you need to call it before elevating privileges, I've had the following ...
2
votes
1answer
64 views
Unable to update list item - Additions to this web site have been blocked
I am developing a SharePoint job. In the public override void Execute(Guid targetInstanceId) method, my code goes:
SPSecurity.RunWithElevatedPrivileges(delegate()
{
int count = ...
1
vote
1answer
121 views
What are “unsafe updates” for list items?
In the SharePoint 2010 server-side object model the SPWeb Class has a property "AllowUnsafeUpdates". What are unsafe updates in connection to list item changes? How are they to be delt with in code?
...
0
votes
1answer
184 views
SPFile Update fails, Exists returns true
I have a block of code wrapped in an if:
mySite.AllowUnsafeUpdates();
SPFile mySPFile = web.GetFile(someURL);
if (mySPFile.Exists) /*returns true, enters code block*/ {
//... make some updates
...
0
votes
1answer
72 views
Foundation vs Enterprise Cumulative updates
So i'm going through my test builds and am curious if i should be installing Foundation CU's then installing Enterprise CU's on top of them?
I am working with Enterprise SP and to me it doesn't make ...
2
votes
1answer
854 views
Warning about unsafe content when saving wikipage using Sharepoint Designer
After editing a wiki page using SharePoint Designer 2010 I have stared to get the message "Content in the embedded form field maybe changed by the server to remove unsafe content. Do you want to ...
1
vote
1answer
962 views
Updating managed metadata field issue
I'm copying documents between document libraries in different site collections. I have saved my source library template, uploaded to destination site collection and created library based on that ...
2
votes
2answers
454 views
Why do I get a security validation invalid error updating a field from a feature receiver?
Trying to change the title field of a document library to be required..doesn't want to work.
SPList docLib = web.Lists["Process Aids"];
SPField field = docLib.Fields["Title"];
field.Title = "Display ...