SPSite: Issue with encoding when using custom ADFS claims provider
See original GitHub issueDetails of the scenario you tried and the problem that is occurring Trying to create a site collection in which the Owner Alias is under a custom ADFS claims provider, the resulting MOF file changes the encoding and the characters that SharePoint understands. Making imposible to create a site collection under this scenario.
Verbose logs showing the problem VERBOSE: [Machinename]: [[SPSite]SiteName] Starting New-SPSite with the following parameters: Name=My Test Site; OwnerAlias=i:0ǵ.t|ADFS DEV|accountname; Template=STS#0; Url=https://testsite.com/sites/MyTestSite; Verbose=True … Exception of type ‘System.ArgumentException’ was thrown. Parameter name: encodedValue + CategoryInfo : InvalidData: (Microsoft.Share…SPCmdletNewSite:) [], CimException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite + PSComputerName : localhost Exception of type ‘System.ArgumentException’ was thrown. Parameter name: encodedValue + CategoryInfo : InvalidData: (Microsoft.Share…SPCmdletNewSite:) [], CimException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite + PSComputerName : localhost
Suggested solution to the issue Ensure the encoding is UTF-8 . Follow the explanation link to claims encoding in SharePoint here: https://social.technet.microsoft.com/wiki/contents/articles/13921.sharepoint-20102013-claims-encoding.aspx
The DSC configuration that is used to reproduce the issue (as detailed as possible)
SPSite SiteName{
Url = "Url=https://testsite.com/sites/MyTestSite"
OwnerAlias = "i:0ǵ.t|ADFS DEV|accountname"
Name = "My Test Site"
Template = "STS#0"
PsDscRunAsCredential = $SetupAccount
DependsOn = "[SPWebApplication]Webapp";
}
The operating system the target node is running OsName : Microsoft Windows Server 2016 Standard
Version of SharePoint that is used SharePoint 2016
Version and build of PowerShell the target node is running 5.1.17763.592
Version of the DSC module that was used 3.6.0.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (9 by maintainers)
Top GitHub Comments
Done! Please check your email.
Hello Yorick,
Yes absolutely this can be close.
Thanks so much
Jose Manuel Cortes Lopez