CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.85k stars 701 forks source link

Unable to add the requested WOPI bindings because the provided XML is invalid. #9215

Closed mrbubble62 closed 5 months ago

mrbubble62 commented 5 months ago

Describe the Bug

Unable to create any WOPI bindings in SharePoint

Steps to Reproduce

PowerShell prompt on SharePoint WFE New-SPWOPIBinding -ServerName COLLABORA:443 -Extension DOCX

Error:

New-SPWOPIBinding : New-SPWOPIBinding is unable to add the requested WOPI bindings because the provided XML is invalid.
At line:1 char:1
+ New-SPWOPIBinding -Extension "DOCX" -ServerName COLLABORA
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...tNewWOPIBinding:SPCmdletNewWOPIBinding) [New-SPWOPIBinding], SPCmdletException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewWOPIBinding

Expected Behavior

Add new SharePoint WOPI binging

Actual Behavior

Binding fails because the provided XML is invalid.

discovery.xml

/hosting/discovery

discovery.xml.txt

hosting/capabilities

{
    "convert-to": {
        "available": true,
        "endpoint": "/cool/convert-to"
    },
    "hasMobileSupport": true,
    "hasProxyPrefix": false,
    "hasTemplateSaveAs": false,
    "hasTemplateSource": true,
    "hasWASMSupport": false,
    "hasZoteroSupport": true,
    "productName": "Collabora Online Development Edition",
    "productVersion": "24.04.3.1",
    "productVersionHash": "594b605",
    "serverId": "8b554b21"
}

Additional Context

Tested on: SharePoint 2016 and SharePoint Subscription Edition with the same result.

mrbubble62 commented 5 months ago

This was resolved by running coolconfig generate-proof-key