Modify

Opened 5 years ago

Last modified 7 months ago

#6701 accepted defect

Update to the last version of wikiexport

Reported by: anonymous Owned by: rjollos
Priority: normal Component: WikiExportPlugin
Severity: critical Keywords:
Cc: al.willmer@… Trac Release: 0.11

Description (last modified by rjollos)

After i have updated the plugin, i have an error when i would to export the wiki page on PDF or Doc.

Trac detected an internal error:

KeyError: 'name'

Attachments (5)

Internal Error.pdf (79.3 KB) - added by pyrobin@… 5 years ago.
Bug error screen capture
bug error.txt (9.8 KB) - added by pyrobin@… 5 years ago.
doc.odt (6.8 KB) - added by anonymous 4 years ago.
Internal_Error_Exception_UNO.pdf (134.9 KB) - added by anonymous 4 years ago.
trac_wiki_plugin_issue.png (91.7 KB) - added by hornetbzz 4 years ago.

Download all attachments as: .zip

Change History (21)

Changed 5 years ago by pyrobin@…

Bug error screen capture

Changed 5 years ago by pyrobin@…

comment:1 Changed 5 years ago by sfhynx

  • Status changed from new to assigned

Ok. I go to install a virtual machine with a clean trac install to trace this problem.

comment:2 Changed 4 years ago by anonymous

  • Cc lroux@… added

Hello,

Have you seen the problem on a virtual machine with clean trac install ?

We are very interested by the new version of your plugin but we are blocked by this problem.

Best regards,

  1. ROUX

comment:3 follow-up: Changed 4 years ago by sfhynx

So far I have not managed to reproduce the error. What OS you have installed the trac, to test it with that OS?

Sorry for the problems, and thanks for the interest

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

Replying to sfhynx:

So far I have not managed to reproduce the error. What OS you have installed the trac, to test it with that OS?

Sorry for the problems, and thanks for the interest

This is a Debian Lenny 5.0 kernel 2-6-18-4

comment:5 Changed 4 years ago by anonymous

I am thinking about something we have not precised but maybe it is important.

On the wiki we tryed to do the export, we have a wikipage named and that has the following content:

{{{
template_list= doc
template_file= doc.odt
}}}

and has the attachment:doc.odt

Could the problem be caused by our template ?

Changed 4 years ago by anonymous

comment:6 Changed 4 years ago by anonymous

the wikipage is named WikiTemplateConf

comment:7 Changed 4 years ago by philippe.raven@…

I got the same problem on my 2 configurations :
First is a Debian Lenny with 2.6.18 kernel, python 2.5, trac 0.11.7
Second is a Debian Lenny with 2.6.26 kernel, python 2.5, trac 0.11.7

Before a upgrade to Lenny, it was working perfectly, I did the upgrade, recompil the plugin with python2.5, and I got the error "Trac detected an internal error:
KeyError: 'name' " when I try to create any document, on the 2 configurations.

Hope this help to solve the problem. If you need the traceback or other, ask me.

comment:8 Changed 4 years ago by philippe.raven@…

A little news about my problem, the "Trac detected an internal error: KeyError?: 'name' " is only when I'm not login in.

When I'm logged, I obtain this error message :
"Trac detected an internal error: com.sun.star.uno.Exception:"

But uno is correctly installed.

comment:9 Changed 4 years ago by anonymous

So it seems the problem is linked to the authentification/login. Our TRAC server does not allow us to access to TRAC without being logged.

I guess this is not configured correctly because I get the error "Trac detected an internal error: KeyError??: 'name' " when I am logged in!

See the log when the error occurs in File "build/bdist.linux-i686/egg/exportplugin/export.py", line 115, in convert_content

Code :
115: self.parser.setTemplate(templatePath, pageName, req.session['name'])

Local variables:
Name Value 
input_type 'text/x-trac-wiki' 
output_type 'vnd.oasis.opendocument.text' 
pageName u'WikiStart' 
req <Request "GET u'/wiki/WikiStart'"> 
self <exportplugin.export.Export object at 0x89ab86c> 
templatePath None 
text u"= Bienvenue sur Trac =\r\n\r\nCeci est la page d\u2019accueil de votre ... 

req.session['name'] does not exist in this case.

comment:10 Changed 4 years ago by anonymous

In the configuration of the plugin, we must enter this :

[openOffice-exporter]
 user = john
 psswrd = 1234

What are user and psswrd ? Shall I enter the login and password I use when I am logging to TRAC ?

Changed 4 years ago by anonymous

comment:11 Changed 4 years ago by anonymous

I've modified the export.py file (line 115) to use a constant string instead of req.sessionname? since it is used only to set the name of the author of the document.

Now, when I try to export the wiki page, I obtain the same error than P. RAVEN., that is to say : "Trac detected an internal error: com.sun.star.uno.Exception".
(See attachment:Internal_Error_Exception_UNO.pdf).

Changed 4 years ago by hornetbzz

comment:12 Changed 4 years ago by hornetbzz

Same disappointing issue on Debian Lenny - pls have a look to the attached screenshot.

Got a first nice ERR 500 saying :

malformed header from script. Bad header=------> Baseurl : trac.fcgi

Solved by stopping apache, disabling fast cgi, enabling fastcgi, and restarting Apache.

Then:
No error when restarting soffice and Apache.
Error occurs each time when trying to export to whatever format supplied by the plugin.

No idea why and not enough skilled to search deeper into the logs.
I can support giving more infos of course.

comment:13 Changed 4 years ago by alora

  • Cc lroux@… removed

The following error seems to be due to a login/logout problem :

Trac detected an internal error:
KeyError?: 'name' 

I have found that when I get this error, if I clic on logout on TRAC, I am not logged out but after that if I try to do an export of a wiki page, the error does not appear anymore.

comment:14 Changed 4 years ago by rjollos

  • Description modified (diff)

comment:15 Changed 3 years ago by moreati

  • Cc al.willmer@… added

comment:16 Changed 7 months ago by rjollos

  • Owner changed from sfhynx to rjollos
  • Status changed from assigned to accepted

Add Comment

Modify Ticket

Action
as accepted .
Author


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

 
Note: See TracTickets for help on using tickets.