There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-50fe14d3-75ef-402f-a2c0-46c71a33aa93 XWIKI-14046 Closed

Server not responding error when saving pages based on templates

 
View issue   ·   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-5c2b5bbd-d4e8-429a-91cb-2574e6801b57 Petr Bodnár on 17/May/24 13:51
 

Hi there, in fact, this issue seems quite valid. With the latest XWiki 15.10.8, we faced the very same problem when creating pages from templates, while on Tomcat behind a https Apache proxy. Our solution is to put scheme="https" to the server.xml:

 

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" scheme="https"/>

I believe this is a problem, because 1) this step doesn't seem to be mentioned anywhere in the XWiki documentation, 2) for some unknown reason, this invalid ("jobstatus") URL creation (which apparently uses request.getScheme()) seems to be specific just to this use case - it is unclear why in all the other places in XWiki absolute URLs are constructed correctly, 3) shouldn't be saving of a page handled in the same way, no matter if the page is being created from a template, or not?

Also, there are forums describing this error (both with surprisingly unclear "resolutions"):

 
cid:jira-generated-image-avatar-5c2b5bbd-d4e8-429a-91cb-2574e6801b57 Petr Bodnár on 17/May/24 13:51
 
Hi there, in fact, this issue seems quite {_}valid{_}. With the latest XWiki 15.10.8, we faced the very same problem when creating pages from templates, while on Tomcat behind a https Apache proxy. Our solution is to put *scheme="https"* to the server.xml:

 
{noformat}
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" scheme="https"/>
{noformat}
I believe this is a problem, because 1) this step doesn't seem to be mentioned anywhere in the XWiki documentation, 2) for some unknown reason, this invalid ("jobstatus") URL creation (which apparently uses {_}request.getScheme(){_}) seems to be specific just to this use case - it is unclear why in all the other places in XWiki absolute URLs are constructed correctly, 3) shouldn't be saving of a page handled in the same way, no matter if the page is being created from a template, or not?

Also, there are forums describing this error (both with surprisingly unclear "resolutions"):
* [This request has been blocked; the content must be served over HTTPS|https://forum.xwiki.org/t/this-request-has-been-blocked-the-content-must-be-served-over-https/4065]
* [Xwiki 11.2, failed to save page|https://forum.xwiki.org/t/xwiki-11-2-failed-to-save-page/4772]