Closed planax closed 3 years ago
Thank you for reporting this @planax , I'll try to reproduce it next week and let you know!
@petrsvihlik, this can be closed. It was actually my fault. I didn't notice you were specifying PascalCase formatting in WopiCoreBuilderExtensions class.
https://github.com/petrsvihlik/WopiHost/blob/842e6ff132716afc087a16f1e215ec74c93fae46/WopiHost.Core/Controllers/FilesController.cs#L78
For me, when using .NET 5/Core 3.1, the response will contain JSON key names formatted in camelCase. This seems to be the new default.
This wouldn't be per se a problem, but when using Office for the web as Wopi Client, no GetFile will be sent back. After quite some time reading the MS-WOPI protocol specification, part 3.3.5.1.2.2, I realized that this was the reason.
I fixed the issue by forcing PascalCase, which seems to be what MS-WOPI expects.
Before: https://github.com/petrsvihlik/WopiHost/blob/842e6ff132716afc087a16f1e215ec74c93fae46/WopiHost/Startup.cs#L44
After:
Response: