I’m having a strange problem with my Collabora CODE 23.05.9.4.
When I try to access my editor through the URL
https://host/browser/XXXXX/cool.html?WOPISrc=https://apihost/wopi/files/YYYYY?access_token=ZZZZZ&lang=it&ui_defaults=UIMode=compact
I receive the following error:
WOPISrc validation error: unencoded WOPISrc [https://apihost/wopi/files/YYYYY?access_token=ZZZZZ] in URL
However if I pass the WOPISrc url as encoded it works without problems:
https://host/browser/XXXXX/cool.html?WOPISrc=https%3A%2F%2Fapihost%2Fwopi%2Ffiles%2YYYYYY%3Faccess_token%3DZZZZZ&lang=it&ui_defaults=UIMode=compact
Can anyone help me with this?
I’m experiencing this issue since the last updates.
Thanks a lot
Hi @ErikDW1 ,
It is very important to always use encoded WOPISrc, because in other case you can experience problems with features like: copy-paste, renaming, save as. It is also important for load balanced environments where multiple COOL nodes are used. I recommend to adjust your integration/storage solution to this requirement.
Kind Regards,
Szymon
Yes, it looks fine. In JS it is enough to process WOPISrc with encodeURIComponent
function.
1 Like