Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6428 closed defect (fixed)

can't export wiki

Reported by: leandrolive@… Owned by: lei
Priority: normal Component: PageToDocIntegration
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

How to Reproduce

While doing a GET operation on /wiki/WikiStart, Trac issued an internal error.

My trac.ini:

[pagetodoc]
xsltfile = /home/leandro/html_filtered.xslt

[components]
PageToDoc.* = enabled

I downloaded PageToDoc using Subversion. My linux is slackware 13.0. It already comes with HTML Tidy and XSLT.

Request parameters:

{'format': u'zip', 'page': u'WikiStart'}

User Agent was: Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15 Version/10.10

System Information

Trac 0.11.5
Python 2.6.4 (r264:75706, Dec 5 2009, 21:18:28)
[GCC 4.3.3]
setuptools 0.6c9
SQLite 3.6.14
pysqlite 2.5.5
Genshi 0.5.1
Subversion 1.6.6 (r40053)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 444, in _dispatch_request

    dispatcher.dispatch(req)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 205, in dispatch

    resp = chosen_handler.process_request(req)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/web_ui.py", line 165, in process_request

    format, versioned_page.name)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/mimeview/api.py", line 924, in send_converted

    content, selector)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/mimeview/api.py", line 650, in convert_content

    output = converter.convert_content(req, mimetype, content, ck)

  File "build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py", line 139, in convert_content

    self.execute_external_program(cmd)

  File "build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py", line 200, in execute_external_program

    raise Exception("Error executing command (return code = %s): %s" % (retval, errData))

Exception: Error executing command (return code = 4): /tmp/page2docCNkNGl/word_RXXr1v:1: parser error : Document is empty



^

/tmp/page2docCNkNGl/word_RXXr1v:1: parser error : Start tag expected, '<' not found



^

cannot parse /tmp/page2docCNkNGl/word_RXXr1v






Attachments (0)

Change History (3)

comment:1 in reply to: ↑ description Changed 4 years ago by anonymous

Replying to leandrolive@gmail.com:

How to Reproduce

While doing a GET operation on /wiki/WikiStart, Trac issued an internal error.

My trac.ini:

[pagetodoc]
xsltfile = /home/leandro/html_filtered.xslt

[components]
PageToDoc.* = enabled

I downloaded PageToDoc using Subversion. My linux is slackware 13.0. It already comes with HTML Tidy and XSLT.

Request parameters:

{'format': u'zip', 'page': u'WikiStart'}

User Agent was: Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15 Version/10.10

System Information

Trac 0.11.5
Python 2.6.4 (r264:75706, Dec 5 2009, 21:18:28)
[GCC 4.3.3]
setuptools 0.6c9
SQLite 3.6.14
pysqlite 2.5.5
Genshi 0.5.1
Subversion 1.6.6 (r40053)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 444, in _dispatch_request

    dispatcher.dispatch(req)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 205, in dispatch

    resp = chosen_handler.process_request(req)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/web_ui.py", line 165, in process_request

    format, versioned_page.name)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/mimeview/api.py", line 924, in send_converted

    content, selector)

  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/mimeview/api.py", line 650, in convert_content

    output = converter.convert_content(req, mimetype, content, ck)

  File "build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py", line 139, in convert_content

    self.execute_external_program(cmd)

  File "build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py", line 200, in execute_external_program

    raise Exception("Error executing command (return code = %s): %s" % (retval, errData))

Exception: Error executing command (return code = 4): /tmp/page2docCNkNGl/word_RXXr1v:1: parser error : Document is empty



^

/tmp/page2docCNkNGl/word_RXXr1v:1: parser error : Start tag expected, '<' not found



^

cannot parse /tmp/page2docCNkNGl/word_RXXr1v






Same error here. I'm using Ubuntu 9.10 as server and installed Page2doc from svn too.

comment:2 follow-up: Changed 4 years ago by markm

  • Resolution set to fixed
  • Status changed from new to closed

Same bug as reported by everyone sorry for not checking the tracker for a while. fixed now.

comment:3 in reply to: ↑ 2 Changed 4 years ago by leandrolive@…

Replying to markm:

Same bug as reported by everyone sorry for not checking the tracker for a while. fixed now.

It's work, thank you!!! ;-)

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from lei. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.