Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#9994 closed defect (invalid)

TypeError coercing to Unicode need string or buffer NoneType found after upgrading to 0.12.2rc1

Reported by: erne.castro@… Owned by:
Priority: normal Milestone:
Component: timeline Version: 0.12.2rc1
Severity: normal Keywords:
Cc: erne.castro@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I've just upgraded to last trac release r10486 and after that timeline does not work, the error is the one shown in the summary.

Here goes detailed info

Python traceback

Most recent call last: File "/var/data/trac/.egg-cache/Trac-0.12.2rc1_r0-py2.6.egg-tmp/trac/timeline/templates/timeline.html", line 43, in <Expression u"event.render('title', context)"> File "build/bdist.linux-x86_64/egg/trac/timeline/web_ui.py", line 314, in <lambda> File "build/bdist.linux-x86_64/egg/trac/ticket/web_ui.py", line 345, in render_timeline_event File "build/bdist.linux-x86_64/egg/trac/ticket/api.py", line 514, in format_summary

System information:

User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.642.2 Safari/534.16

Trac 0.12.2rc1-r0 Babel 0.9.5 Bitten 0.7dev-r0 CustomFieldAdmin 0.2.5 FullBlog 0.1.1-r0 Genshi 0.6 mod_python 3.3.1 psycopg2 2.0.8 Pygments 1.1.1 Python 2.6.4 (r264:75706, Dec 7 2009, 18:59:58) [GCC 4.4.1] RPC 1.1.0-r0 setuptools 0.6c9 Subversion 1.6.5 (r38866) jQuery 1.4.2 Enabled plugins:

AdvancedTicketWorkflowPlugin 0.10dev-r0 /usr/local/lib/python2.6/dist-packages/AdvancedTicketWorkflowPlugin-0.10dev_r0-py2.6.egg ApreCustomMacrosAndPlugins 0.1 /usr/local/lib/python2.6/dist-packages/ApreCustomMacrosAndPlugins-0.1-py2.6.egg authz-policy Rev /var/data/trac/all/plugins/authz_policy.pyc AutocompleteUsers 0.4.1 /usr/local/lib/python2.6/dist-packages/AutocompleteUsers-0.4.1-py2.6.egg BatchModify 0.8.0-trac0.12 /usr/local/lib/python2.6/dist-packages/BatchModify-0.8.0_trac0.12-py2.6.egg Bitten 0.7dev-r0 /usr/local/lib/python2.6/dist-packages/Bitten-0.7dev_r0-py2.6.egg ChangeLogMacro 0.2-r0 /usr/local/lib/python2.6/dist-packages/ChangeLogMacro-0.2_r0-py2.6.egg CodeExample 1.0 /usr/local/lib/python2.6/dist-packages/CodeExample-1.0-py2.6.egg Default-CC 0.1-r0 /usr/local/lib/python2.6/dist-packages/Default_CC-0.1_r0-py2.6.egg graphviz 0.7.6dev /usr/local/lib/python2.6/dist-packages/graphviz-0.7.6dev-py2.6.egg IniAdmin 0.2 /usr/local/lib/python2.6/dist-packages/IniAdmin-0.2-py2.6.egg Parametrized-Template-Plugins 0.0.2 /usr/local/lib/python2.6/dist-packages/Parametrized_Template_Plugins-0.0.2-py2.6.egg TicketCharts N/A /var/data/trac/all/plugins/TicketCharts.pyc TicketImport 0.8 /usr/local/lib/python2.6/dist-packages/TicketImport-0.8-py2.6.egg TracAddCommentMacro 0.3 /usr/local/lib/python2.6/dist-packages/TracAddCommentMacro-0.3-py2.6.egg TracAdvParseArgsPlugin 0.4 /usr/local/lib/python2.6/dist-packages/TracAdvParseArgsPlugin-0.4-py2.6.egg TracCustomFieldAdmin 0.2.5 /usr/local/lib/python2.6/dist-packages/TracCustomFieldAdmin-0.2.5-py2.6.egg TracDateField 1.0.1 /usr/local/lib/python2.6/dist-packages/TracDateField-1.0.1-py2.6.egg TracDragDrop 0.12.0.5-r0 /usr/local/lib/python2.6/dist-packages/TracDragDrop-0.12.0.5_r0-py2.6.egg TracDynamicFields 1.2.1 /usr/local/lib/python2.6/dist-packages/TracDynamicFields-1.2.1-py2.6.egg TracExtractUrl 0.3 /usr/local/lib/python2.6/dist-packages/TracExtractUrl-0.3-py2.6.egg TracFullBlogPlugin 0.1.1-r0 /usr/local/lib/python2.6/dist-packages/TracFullBlogPlugin-0.1.1_r0-py2.6.egg TracMacroPost 0.2 /usr/local/lib/python2.6/dist-packages/TracMacroPost-0.2-py2.6.egg TracMasterTickets 3.0.1 /usr/local/lib/python2.6/dist-packages/TracMasterTickets-3.0.1-py2.6.egg TracMyPagePlugin 0.11.1.1 /usr/local/lib/python2.6/dist-packages/TracMyPagePlugin-0.11.1.1-py2.6.egg TracNewsFlash 1.0.1 /usr/local/lib/python2.6/dist-packages/TracNewsFlash-1.0.1-py2.6.egg TracServerSideRedirectPlugin 0.4 /usr/local/lib/python2.6/dist-packages/TracServerSideRedirectPlugin-0.4-py2.6.egg TracSimpleTicket 2.0 /usr/local/lib/python2.6/dist-packages/TracSimpleTicket-2.0-py2.6.egg TracTags 0.6 /usr/local/lib/python2.6/dist-packages/TracTags-0.6-py2.6.egg TracTicketChainedFields 0.1 /usr/local/lib/python2.6/dist-packages/TracTicketChainedFields-0.1-py2.6.egg TracTocMacro 11.0.0.3 /usr/local/lib/python2.6/dist-packages/TracTocMacro-11.0.0.3-py2.6.egg TracUserPagePlugin 0.11.1.1 /usr/local/lib/python2.6/dist-packages/TracUserPagePlugin-0.11.1.1-py2.6.egg TracVote 0.1.3 /usr/local/lib/python2.6/dist-packages/TracVote-0.1.3-py2.6.egg TracWikiGoodies 0.11.0.3dev /usr/local/lib/python2.6/dist-packages/TracWikiGoodies-0.11.0.3dev-py2.6.egg TracWikiPrintPlugin 1.8.4 /usr/local/lib/python2.6/dist-packages/TracWikiPrintPlugin-1.8.4-py2.6.egg TracXMLRPC 1.1.0-r0 /usr/local/lib/python2.6/dist-packages/TracXMLRPC-1.1.0_r0-py2.6.egg WikiInclude 0.2 /usr/local/lib/python2.6/dist-packages/WikiInclude-0.2-py2.6.egg

Attachments (0)

Change History (3)

comment:1 by Remy Blank, 13 years ago

This happens when a unicode string is concatenated with None:

>>> u'abc' + None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: coercing to Unicode: need string or buffer, NoneType found

The offending line in format_summary() is the following:

summary = type + ': ' + summary

type cannot be None at this point, so it looks like the summary of a ticket is NULL. The following SQL query should tell you which ticket:

SELECT id FROM ticket WHERE summary IS NULL;

comment:2 by anonymous, 13 years ago

Resolution: invalid
Status: newclosed

Thanks rblank. It was as you mention the problem a ticket with null summary. I wonder how it got there…

Closing this as invalid.

in reply to:  2 comment:3 by Remy Blank, 13 years ago

Thanks for the feedback.

Replying to anonymous:

I wonder how it got there…

Yes, me too. It's not the first time that we see some fields becoming NULL. We even have a few instances here, although usually it's the owner field. I have never been able to find out how this happens.

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.