Skip to content

Commit d53bae9

Browse files
committed
Merge branch 'Fix_SPGroupDescrOverlength' of https://github.com/MondayCoffee/pnpframework into pr270
2 parents 1ec4eca + 9e3c706 commit d53bae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectSiteSecurity.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public override TokenParser ProvisionObjects(Web web, ProvisioningTemplate templ
322322
group = web.AddGroup(
323323
parsedGroupTitle,
324324
//If the description is more than 512 characters long a server exception will be thrown.
325-
PnPHttpUtility.ConvertSimpleHtmlToText(parsedGroupDescription, int.MaxValue),
325+
PnPHttpUtility.ConvertSimpleHtmlToText(parsedGroupDescription, 511),
326326
parsedGroupTitle == parsedGroupOwner);
327327
group.AllowMembersEditMembership = siteGroup.AllowMembersEditMembership;
328328
group.AllowRequestToJoinLeave = siteGroup.AllowRequestToJoinLeave;
@@ -392,7 +392,7 @@ public override TokenParser ProvisionObjects(Web web, ProvisioningTemplate templ
392392
executeQuery = true;
393393
}
394394

395-
var plainTextDescription = PnPHttpUtility.ConvertSimpleHtmlToText(parsedGroupDescription, int.MaxValue);
395+
var plainTextDescription = PnPHttpUtility.ConvertSimpleHtmlToText(parsedGroupDescription, 511);
396396
if (group.Description != plainTextDescription)
397397
{
398398
//If the description is more than 512 characters long a server exception will be thrown.

0 commit comments

Comments
 (0)