From nieuws.pv at xs4all.nl Tue Apr 7 02:10:22 2015 From: nieuws.pv at xs4all.nl (Patrick Vrijlandt) Date: Tue, 7 Apr 2015 08:10:22 +0200 Subject: [Moin-user] pages truncated Message-ID: <000601d070f9$88a90410$99fb0c30$@pv@xs4all.nl> Hello list, I am having some issues with my new Moin installation. Although I am experienced with Python, I am new to server administration. I have: Windows server 2012 R2 standard Apache/2.4.12 (win32) Python 2.7.6 (win32) MoinMoin 1.9.8 Apache calls moin through cgi. I am in a corporate environment, which restricts my possibilities. The (virtual) server with Moin running has no other tasks, and I have admin rights. The initial installation was done by one of our server admins and seems to follow the wiki recommendations. The users all access the wiki through thin clients and other servers. IE 10 is mandatory and for some reason it is configured for IE 7 compatibility mode. The issue is that wiki pages get truncated. The standard footer messages (like about valid HTML) disappear or show a half HTML expression. I have inspected Moin's outgoing data and I noticed that the outgoing message uses CRLF in the header section but only LF in the content section. Content-length is set correctly. The amount of truncated characters is quite close to the amount of lines in the content section. I wonder if maybe, somewhere in the process LF gets replaced by CRLF - and then content-length is too short. I have noticed two other problems which may or may not be related: 1. A number of POST commands do not work, like the action for renaming a page. They return '400 Bad request'. 2. Many images do not display as intended. It would be nice if someone recognizes the problem and would know the solution. I found a few stories/posts which may hint to the same issue, but no real solutions. To dig deeper into the problem I would also like your advice on how to proceed. I would like to manipulate the incoming and outgoing datastreams. It would seem possible to develop a wsgi compliant middleman to do just that - do you know about such a project? What is the best place in moin to get to the datastreams? Thanks in advance, Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: From nieuws.pv at xs4all.nl Wed Apr 8 01:46:02 2015 From: nieuws.pv at xs4all.nl (Patrick Vrijlandt) Date: Wed, 8 Apr 2015 07:46:02 +0200 Subject: [Moin-user] pages truncated: solved Message-ID: <005201d071bf$4ce0fd90$e6a2f8b0$@pv@xs4all.nl> Hello list, This issue was caused by universal newline support. During the output of the html to stdout, python changes (apparently) '\n' to '\r\n'. Universal newline support can be turned off by using the command line parameter '-u', which changes the standard i/o files to binary mode. I have put this option on the shebang line in moin.cgi. Thanks, Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: