Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45685 - 4suite Ft.Xml.Xslt.Processor returns garbage output when called inside a mod_python handler
Summary: 4suite Ft.Xml.Xslt.Processor returns garbage output when called inside a mod_...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-25 00:32 UTC by Mirko Maischberger
Modified: 2006-01-29 02:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
test handler (test.py,557 bytes, text/plain)
2004-03-25 00:34 UTC, Mirko Maischberger
Details
sample XML document (test.xml,73 bytes, text/plain)
2004-03-25 00:35 UTC, Mirko Maischberger
Details
test XSL template (test.xsl,223 bytes, text/plain)
2004-03-25 00:36 UTC, Mirko Maischberger
Details
.htaccess used to configure the handler (dothtaccess,60 bytes, text/plain)
2004-03-25 00:37 UTC, Mirko Maischberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mirko Maischberger 2004-03-25 00:32:55 UTC
The same XML, XSL and python code works fine if not called inside a mod_python handler 

Reproducible: Always
Steps to Reproduce:
1. configure an apache2 dir with attached .htaccess
2. adjust the paths in test.py
3. call the script

Actual Results:  
簊
Comment 1 Mirko Maischberger 2004-03-25 00:32:55 UTC
The same XML, XSL and python code works fine if not called inside a mod_python handler 

Reproducible: Always
Steps to Reproduce:
1. configure an apache2 dir with attached .htaccess
2. adjust the paths in test.py
3. call the script

Actual Results:  
ç°â ç³æ¥²æ®a????ç°

Expected Results:  
stringa

I've tried also utf-8 encodig.
I consider XSLT valuable for a web application so i think a major feature is broken.
Comment 2 Mirko Maischberger 2004-03-25 00:34:01 UTC
Created attachment 27982 [details]
test handler
Comment 3 Mirko Maischberger 2004-03-25 00:35:27 UTC
Created attachment 27983 [details]
sample XML document
Comment 4 Mirko Maischberger 2004-03-25 00:36:29 UTC
Created attachment 27984 [details]
test XSL template
Comment 5 Mirko Maischberger 2004-03-25 00:37:39 UTC
Created attachment 27985 [details]
.htaccess used to configure the handler
Comment 6 Mirko Maischberger 2004-03-25 00:40:30 UTC
Python 
2.3.3 (#1, Mar 25 2004, 00:10:20) 
[GCC 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)]

apache2
Server version: Apache/2.0.49

mod_python
Version 3.1.3

4suite
Version 1.0_alpha3
Comment 7 Mirko Maischberger 2004-03-25 01:18:41 UTC
The scripts are not encoding-safe, but the garbage string varies over time and is not the expected result encoded in another format (as long as i can see)
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2005-04-20 08:16:07 UTC
what version of 4suite and mod_python and libxslt?
Comment 9 Martin Mokrejš 2006-01-24 01:52:39 UTC
Try http://www.modpython.org/dist/mod_python-3.2.6.tgz  
Comment 10 Lukasz Strzygowski (RETIRED) gentoo-dev 2006-01-29 02:56:35 UTC
Closing because of lack of response.