Edgewall Software
Modify

Opened 9 years ago

Closed 8 years ago

#11433 closed defect (worksforme)

Genshi error when trying to view a ticket

Reported by: l.lafon@… Owned by:
Priority: normal Milestone:
Component: rendering Version: 1.0.1
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

Hello,

I've set-up Trac for the support team in our company. They alerted me that they created some tickets, but when going back on the ticket to review it, Trac throw the error below :

"Erreur impliquant Genshi (UnicodeDecodeError - (position indéterminée dans le template)) "

(this is happening on 3 tickets now, on 300+ tickets created so far).

The page is showing fine when first created. It is only when going back to the ticket that the error happens.

Tickets are usually created with text copied and pasted from email, so I wonder if we didn't copy bad formatting ?

I've looked at previous tickets with similar error but it was either fixed or related to a plugin, and I'm not sure that it is plugin related in my case…

Here is the error I got from the log (I think I got everything, but I may have missed a few lines…)

2014-01-08 09:56:25,257 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/ticket/1247'">
2014-01-08 09:56:25,259 Trac[session] DEBUG: Retrieving session for ID u'admin'
2014-01-08 09:56:25,260 Trac[main] DEBUG: Negotiated locale: fr -> fr
2014-01-08 09:56:25,267 Trac[api] WARNING: Unable to find repository '(default)' for synchronization
2014-01-08 09:56:25,268 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2014-01-08 09:56:25,273 Trac[authz_policy] DEBUG: Parsing authz security policy /var/trac/authzpolicy.conf
2014-01-08 09:56:25,274 Trac[authz_policy] DEBUG: Checking TICKET_VIEW on ticket:1247@*
2014-01-08 09:56:25,280 Trac[authz_policy] DEBUG: Checking COMPONENT_KNOWBOX_VIEW on ticket:1247@*
2014-01-08 09:56:25,285 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:AELIA@*
2014-01-08 09:56:25,286 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:BRICODEPOT@*
2014-01-08 09:56:25,286 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:BRICODEPOT-EVOLUTIONS@*
2014-01-08 09:56:25,287 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:BRICORAMA@*
2014-01-08 09:56:25,287 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:BUREAU_VALLEE@*
2014-01-08 09:56:25,288 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:C10@*
2014-01-08 09:56:25,288 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:CONFORAMA@*
2014-01-08 09:56:25,289 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:FNAC@*
2014-01-08 09:56:25,289 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:GALEC@*
2014-01-08 09:56:25,290 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:GALEC-EVOLUTIONS@*
2014-01-08 09:56:25,290 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:GALEC-RECETTE@*
2014-01-08 09:56:25,291 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:KB-RECETTE@*
2014-01-08 09:56:25,291 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:KBX-BUG@*
2014-01-08 09:56:25,292 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:KBX-METRO@*
2014-01-08 09:56:25,293 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:KBX-METRO-EVOLUTIONS@*
2014-01-08 09:56:25,293 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:LECLERC@*
2014-01-08 09:56:25,294 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:LOSTE@*
2014-01-08 09:56:25,294 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:MAXEDA@*
2014-01-08 09:56:25,295 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:METRO@*
2014-01-08 09:56:25,295 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:Mr BRICOLAGE@*
2014-01-08 09:56:25,296 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on milestone:SONAE@*
2014-01-08 09:56:25,297 Trac[authz_policy] DEBUG: Checking TICKET_ADMIN on ticket:1247@*
2014-01-08 09:56:25,300 Trac[authz_policy] DEBUG: Checking TICKET_EDIT_CC on ticket:1247@*
2014-01-08 09:56:25,304 Trac[authz_policy] DEBUG: Checking TICKET_VIEW on ticket:1247@1
2014-01-08 09:56:25,307 Trac[authz_policy] DEBUG: Checking COMPONENT_KNOWBOX_VIEW on ticket:1247@1
2014-01-08 09:56:25,308 Trac[authz_policy] DEBUG: Checking TICKET_MODIFY on ticket:1247@*
2014-01-08 09:56:25,310 Trac[authz_policy] DEBUG: Checking TICKET_APPEND on ticket:1247@*
2014-01-08 09:56:25,312 Trac[default_workflow] DEBUG: render_ticket_action_control: action "leave"
2014-01-08 09:56:25,313 Trac[authz_policy] DEBUG: Checking EMAIL_VIEW on ticket:1247@*
2014-01-08 09:56:25,314 Trac[default_workflow] DEBUG: render_ticket_action_control: action "reassign"
2014-01-08 09:56:25,315 Trac[default_workflow] DEBUG: render_ticket_action_control: action "resolve"
2014-01-08 09:56:25,315 Trac[default_workflow] DEBUG: render_ticket_action_control: action "accept"
2014-01-08 09:56:25,316 Trac[default_workflow] DEBUG: render_ticket_action_control: action "infoneeded"
2014-01-08 09:56:25,316 Trac[authz_policy] DEBUG: Checking EMAIL_VIEW on *:*@*
2014-01-08 09:56:25,318 Trac[authz_policy] DEBUG: Checking ATTACHMENT_CREATE on ticket:1247@*/attachment:*@*
2014-01-08 09:56:25,320 Trac[authz_policy] DEBUG: Checking COMPONENT_KNOWBOX_VIEW on ticket:1247@*/attachment:*@*
2014-01-08 09:56:25,323 Trac[chrome] DEBUG: Prepare chrome data for request
2014-01-08 09:56:25,324 Trac[authz_policy] DEBUG: Checking TICKET_CREATE on *:*@*
2014-01-08 09:56:25,325 Trac[authz_policy] DEBUG: Checking REPORT_VIEW on *:*@*
2014-01-08 09:56:25,325 Trac[authz_policy] DEBUG: Checking XML_RPC on *:*@*
2014-01-08 09:56:25,326 Trac[authz_policy] DEBUG: Checking TICKET_VIEW on *:*@*
2014-01-08 09:56:25,326 Trac[authz_policy] DEBUG: Checking SEARCH_VIEW on *:*@*
2014-01-08 09:56:25,328 Trac[authz_policy] DEBUG: Checking TRAC_ADMIN on *:*@*
2014-01-08 09:56:25,328 Trac[authz_policy] DEBUG: Checking ACCTMGR_CONFIG_ADMIN on *:*@*
2014-01-08 09:56:25,329 Trac[authz_policy] DEBUG: Checking ACCTMGR_USER_ADMIN on *:*@*
2014-01-08 09:56:25,329 Trac[authz_policy] DEBUG: Checking TICKET_ADMIN on *:*@*
2014-01-08 09:56:25,330 Trac[authz_policy] DEBUG: Checking MILESTONE_VIEW on *:*@*
2014-01-08 09:56:25,330 Trac[authz_policy] DEBUG: Checking PERMISSION_GRANT on *:*@*
2014-01-08 09:56:25,331 Trac[authz_policy] DEBUG: Checking VERSIONCONTROL_ADMIN on *:*@*
2014-01-08 09:56:25,331 Trac[authz_policy] DEBUG: Checking ROADMAP_VIEW on *:*@*
2014-01-08 09:56:25,332 Trac[authz_policy] DEBUG: Checking TIMELINE_VIEW on *:*@*
2014-01-08 09:56:25,333 Trac[authz_policy] DEBUG: Checking BROWSER_VIEW on *:*@*
2014-01-08 09:56:25,333 Trac[authz_policy] DEBUG: Checking WIKI_VIEW on wiki:*@*
2014-01-08 09:56:25,590 Trac[authz_policy] DEBUG: Checking TICKET_CREATE on ticket:1247@*
2014-01-08 09:56:25,592 Trac[authz_policy] DEBUG: Checking TICKET_CHGPROP on ticket:1247@*
2014-01-08 09:56:25,595 Trac[authz_policy] DEBUG: Checking TICKET_EDIT_DESCRIPTION on ticket:1247@*
2014-01-08 09:56:25,597 Trac[authz_policy] DEBUG: Checking TICKET_EDIT_COMMENT on ticket:1247@*
2014-01-08 09:56:25,763 Trac[main] WARNING: [10.11.41.1] HTTPInternalError: 500 Erreur Trac (Erreur impliquant Genshi (UnicodeDecodeError - (position indéterminée dans le template)))

Below some more information :

OS : Unbutu
Trac 	1.0.1
Babel 	0.9.6
Genshi 	0.6 (with speedups)
pysqlite 	2.6.0
Python 	2.7.2+ (default, Jul 20 2012, 22:15:08) [GCC 4.6.1]
RPC 	1.1.2-r12546
setuptools 	0.6
SQLite 	3.7.7
jQuery	1.7.2

Plugin (there's a few…)

ComponentPermissionsPlugin 	0.1.5
ExcelDownloadPlugin 	0.12.0.3
GroupBasedRedirection 	0.2
hideable-query 	0.1
ImportExportXLS 	0.1.7
PageAuthzPolicyEditor 	0.12dev-r12560
PrivateComments 	0.4dev-r13050
PrivateReports 	0.4dev-r13240
sensitivetickets
TicketBox
TicketLastCommentJumpPlugin 	0.1
TracAccountManager 	0.4.3
TracAdvParseArgsPlugin 	0.2.6952
TracCustomFieldAdmin
TracHtGroupEditorPlugin 	2.0
TracHTTPAuth 	1.1
TracIniAdminPanel
TracPermRedirect 	2.0
TracTicketCharts 	0.2dev-r13250
TracWorkflowAdmin 	0.12.0.2
TracWysiwyg 	0.12.0.4-r12680
TracXMLRPC 	1.1.2-r12546

Attachments (0)

Change History (3)

comment:1 by Jun Omae, 9 years ago

Component: ticket systemrendering
Description: modified (diff)
Keywords: genshi ticket rendering removed

in reply to:  description comment:2 by Peter Suter, 9 years ago

Keywords: needinfo added

Replying to l.lafon@…:

I've looked at previous tickets with similar error but it was either fixed or related to a plugin, and I'm not sure that it is plugin related in my case…

Plugin (there's a few…)

Did you try without the plugins?

Or with Trac trunk? (As you said, e.g. #11218 is already fixed, although as far as we know it only affects Genshi 0.7.)

Do you know the content of the Ticket descriptions where it fails? Do they by chance contain bracketed links like <http://...>? Can you check in your database?

comment:3 by Ryan J Ollos, 8 years ago

Resolution: worksforme
Status: newclosed

Closing since there has been no response from reporter.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.