﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
11522	UnicodeError: source returned bytes, but no encoding specified	defect	1.0	Roberto Longobardi	new	2014-01-22T22:55:03+01:00	2017-05-03T08:29:05+02:00	"From a fresh install, after applying the patch in #9976 for PostgreSQL, when I click on the main FAQs navigation button I get: 

{{{
Trac detected an internal error:
UnicodeError: source returned bytes, but no encoding specified
}}}

Python callback:
{{{
File ""build/bdist.macosx-10.9-intel/egg/trac/web/main.py"", line 497, in _dispatch_request
  dispatcher.dispatch(req)
File ""build/bdist.macosx-10.9-intel/egg/trac/web/main.py"", line 233, in dispatch
  content_type)
File ""build/bdist.macosx-10.9-intel/egg/trac/web/chrome.py"", line 968, in render_template
  stream |= self._filter_stream(req, method, filename, stream, data)
File ""/Library/Python/2.7/site-packages/Genshi-0.7-py2.7-macosx-10.9-intel.egg/genshi/core.py"", line 133, in __or__
  return Stream(_ensure(function(self)), serializer=self.serializer)
File ""build/bdist.macosx-10.9-intel/egg/trac/web/chrome.py"", line 1147, in inner
  data)
File ""build/bdist.macosx-10.9-intel/egg/faqplugin/wiki.py"", line 66, in filter_stream
  return self._faq_category_wiki_view(req, formatter, page_name, stream)
File ""build/bdist.macosx-10.9-intel/egg/faqplugin/wiki.py"", line 91, in _faq_category_wiki_view
  HTML(tree_macro.expand_macro(formatter, None, ''))
File ""/Library/Python/2.7/site-packages/Genshi-0.7-py2.7-macosx-10.9-intel.egg/genshi/input.py"", line 442, in HTML
  return Stream(list(HTMLParser(BytesIO(text), encoding=encoding)))
File ""/Library/Python/2.7/site-packages/Genshi-0.7-py2.7-macosx-10.9-intel.egg/genshi/core.py"", line 273, in _ensure
  event = stream.next()
File ""/Library/Python/2.7/site-packages/Genshi-0.7-py2.7-macosx-10.9-intel.egg/genshi/input.py"", line 449, in _coalesce
  for kind, data, pos in chain(stream, [(None, None, None)]):
File ""/Library/Python/2.7/site-packages/Genshi-0.7-py2.7-macosx-10.9-intel.egg/genshi/input.py"", line 337, in _generate
  raise UnicodeError(""source returned bytes, but no encoding specified"")
}}}

Note that I'm using Trac 1.0.1 with PostgreSQL, see attached"	barclay@…
9678	Problem with the menu when using the CMTeknik theme	defect	0.12	Roberto Longobardi	new	2012-01-09T15:47:15+01:00	2012-01-09T15:47:15+01:00	If I use the CMTeknik theme, the menu is not formatted properly when selecting the FAQ entry. For other themes and menu entries everything looks fine. Please see the attachments.	dinel@…
9976	Internal error with Postgresql database.	defect	0.12	Roberto Longobardi	assigned	2012-04-18T00:43:17+02:00	2015-06-29T22:14:45+02:00	"Clicking on the FAQ top menu option generates an Internal Server Error.
The trac.log displays:
{{{
ProgrammingError: column ""wiki.text"" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT name, text, max(version) FROM wiki WHERE name LIKE 'F...
}}}"	rzhidalgo@yahoo.com
