Ask Your Question
1

libreoffice online GET request client address DENY [closed]

asked 2018-05-10 08:01:25 +0200

Safir gravatar image

updated 2018-05-18 08:38:14 +0200

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/libreoff...

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

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Safir
close date 2018-05-18 13:28:44.523830

1 Answer

Sort by » oldest newest most voted
0

answered 2018-05-16 14:25:50 +0200

Mike Kaganski gravatar image

Please try again - we believe that this was addressed in this commit.

edit flag offensive delete link more

Comments

Thanks for the answer. I found the solution with this patch . It solved it. The files does not match: wsd/LOOLWSD.cpp and loolwsd.xml . loolwsd.xml has config: net.post_allow.host but in the code it is only post_allow.host .

Safir gravatar imageSafir ( 2018-05-18 08:37:04 +0200 )edit

Question Tools

1 follower

Stats

Asked: 2018-05-10 08:01:25 +0200

Seen: 98 times

Last updated: May 18