Opened 5 years ago
Closed 5 years ago
#604 closed defect (fixed)
UTF-8 problem while searching users
Reported by: | jbenito | Owned by: | pferreir |
---|---|---|---|
Priority: | high | Milestone: | v0.97.1 |
Component: | General | Version: | 0.96.x |
Keywords: | Cc: |
Description
-------------------- User Comments searching for "andre" crashes indico? -------------------- Error details exception message => instance: 'utf8' codec can't decode byte 0xa0 in position 0: unexpected code byte - - - -> {Python code generated from templates is available in /opt/indico/tmp/UserTableItem.tpl.error.py file(s)} exception type => MaKaC.common.TemplateExec.TemplateExecException traceback => File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/rh/base.py", line 485, in process res = self._process() File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/rh/contribMod.py", line 467, in _process return p.display(**params) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/pages/base.py", line 164, in display return "%s%s%s"%( self._getHTMLHeader(), \ File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/pages/main.py", line 159, in _display body = WMainBase(self._getBody( params ), self._timezone, self._getNavigationDrawer(), File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/pages/conferences.py", line 2226, in _getBody return self._applyFrame( self._getPageContent( params ) ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/pages/contributions.py", line 423, in _getPageContent body = wcomponents.WTabControl( self._tabCtrl, self._getAW() ).getHTML( self._getTabContent( params ) ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/pages/contributions.py", line 1137, in _getTabContent return p.getHTML(params) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 4114, in getHTML return WTemplated.getHTML( self, pars ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 190, in getHTML vars = self.getVars() File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 4263, in getVars vars = WUserSelection.getVars( self ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 4145, in getVars vars["searchResultsTable"] = WUserSearchResultsTable(self._multi).getHTML( res ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 2577, in getHTML return WTemplated.getHTML( self, {} ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 190, in getHTML vars = self.getVars() File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 2586, in getVars l.append( self.__getItemClass(principal)(self._multi).getHTML( principal, selected ) ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 1917, in getHTML return WTemplated.getHTML( self, {} ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 194, in getHTML tempHTML = TemplateExec.executeTemplate( text, vars, self.tplId ) File "/usr/lib/python2.4/site-packages/cds_indico-0.97_rc2-py2.4.egg/MaKaC/common/TemplateExec.py", line 411, in executeTemplate raise TemplateExecException( e ) request handler => <class 'MaKaC.webinterface.rh.contribMod.RHNewSubcontributionPresenterSearch'> url => http://indico.cern.ch/contributionModifSubCont.py/presenterSearch?contribId=8&confId=118700 parameters => contribId = 8 newButtonAction = http://indico.cern.ch/contributionModifSubCont.py/presenterNew surname = firstname = andre action = search organisation = email = addURL = http://indico.cern.ch/contributionModifSubCont.py/personAdd?typeName=presenter&orgin=selected confId = 118700 headers => Host: indico.cern.ch Referer: http://indico.cern.ch/contributionModifSubCont.py/presenterSearch?contribId=8&confId=118700 Cache-Control: max-age=0 Origin: http://indico.cern.ch Content-Type: application/x-www-form-urlencoded Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.231 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Max-Forwards: 10 X-Forwarded-Host: indico.cern.ch X-Forwarded-Server: indico.cern.ch Connection: Keep-Alive Content-Length: 59 user => [35559] --------------------
Change History (6)
comment:1 Changed 5 years ago by jmonnich
- Status changed from new to assigned
comment:2 Changed 5 years ago by jmonnich
- Status changed from assigned to in_work
comment:3 Changed 5 years ago by jmonnich
- Status changed from in_work to assigned
comment:4 Changed 5 years ago by pferreir
- Owner changed from jmonnich to pferreir
- Status changed from assigned to in_work
It was a DB issue. Fixed.
comment:5 Changed 5 years ago by pferreir
- Status changed from in_work to in_merge
comment:6 Changed 5 years ago by pferreir
- Resolution set to fixed
- Status changed from in_merge to closed
Note: See
TracTickets for help on using
tickets.
caused by users containing \xa0 in their email address