Hello,
I use Libreoffice Online in docker containers. I have 4 containers each runs loolwsd. I added a loolwsd parameter to loleaflet and lool requests. It works fine. But when I want to print the document or download as pdf(or any other type), it does not work. The error in log is:
*[ websrv_poll ] ERR client address DENY: 0.0.0.0| wsd/LOOLWSD.cpp:1828*
Download as PDF HTTP GET Request:
https://host/lool/https://wopi-host/rest/wopi/files/7dea80cc-bb86-4aa8-bb55-c07633e62642/F6BbhGy6KOttCOMs/hnlcmENsufxWg850L2SMDo2z63DwGa18AZOHBwCLcac46H5x7E7IY74FSzN9sqNq/dilekceornek%20(2).pdf?WOPISrc=https://wopi-host/rest/wopi/files/7dea80cc-bb86-4aa8-bb55-c07633e62642&loolwsd=10.1.41.251:9980
Response is :
HTTP/1.1 403
Server: nginx/1.10.3 (Ubuntu)
Date: Thu, 10 May 2018 05:53:25 GMT
Content-Length: 0
Connection: keep-alive
User-Agent: LOOLWSD HTTP Agent master..
EDIT:
I found it is because below commit was merged:
https://cgit.freedesktop.org/libreoffice/online/commit/?id=910ae806efd69caa705c0f0426c26d72b9c16225
It filters POST requests but whatever I wrote in the loolwsd.xml at post_allow.host section such as “allow all reg patttern”, it did not work.
SOLUTION:
I found the solution here : patch