I found that problem was too many continuous spaces between tags in header part. If amount of spaces was more than 1000, mod_proxy_html module wrongly assumed that head part is finished, arbitrary closed head and opened body without attributes (and then ignored original one). As the most part of spaces is produced by colorThemeInit.vm foreach loops, I replaced each pair of leading spaces with only one. (Note that increasing ProxyHTMLBufSize didn't help.) Valdis
On Mon, Apr 22, 2013 at 8:17 PM, Valdis Vītoliņš <[email protected]> wrote:
I'm working on shortening Xwiki instance URLs (see details in http://odo.lv/Recipes/XwikiShortURLs_en ) and strangely I can't do it for newer Xwiki instance (it works for odo.lv which uses 2.7 version).
I found out that HTML is broken, when proxy server rewrites hyperlinks for preduced XHTML (SetOutputFilter proxy-html ProxyHTMLURLMap /xwiki/bin/view/ / direcives in apache2.conf)
Then it changes ...<body id="body" class="wiki-xwiki space-Main viewbody hideleft">... to simple ...<body>... element without attributes.
Only weakly related thing I found is that could be related is: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxybadheader
I suspect it somehow is related on how header is finished and body is started.
We have web standards validation tests that ensure the HTML produced for the default wiki pages (at least) is valid, so I believe this is a bug in the proxy filter. You can pass the HTML produced by your wiki page to an XHTML validator like http://validator.w3.org/ to double check.
Hope this helps, Marius
Can you suggest any ideas?
Thanks! Valdis
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users