Opened 17 years ago
Last modified 6 months ago
#5515 new defect
Empty changeset causes exception — at Initial Version
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | version control/changeset view | Version: | devel |
Severity: | normal | Keywords: | verify |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Context
- Reorganizing project
- Exported 2 svn repositories, server and client
- Created new svn repository
- Created 2 svn folders in new repository, server and client
- Did import into server and client folders
- Changed trac.ini to point to new repository, then did resync
- Browsed to project Timeline to look at changesets
- When I tried browse to changeset [1], got an internal error
- Browsing to other changesets worked fine
- I searched tickets for "changeset NoneType split" with no hits
- Search for "changeset NoneType" hit an unrelated ticket
Diagnostic Data
Trac detected an internal error:
AttributeError: 'NoneType' object has no attribute 'split'
Python Traceback Most recent call last:
- File "c:\python25\lib\site-packages\Trac-0.11dev_r5661-py2.5.egg\trac\web\main.py", line 432, in dispatch_request
Code fragment:
- if not env and env_error:
- raise HTTPInternalError(env_error)
- try:
- try:
- dispatcher = RequestDispatcher(env)
- dispatcher.dispatch(req)
- except RequestDone:
- pass
- return req._response or []
- finally:
- if not run_once:
python25
lib
site-packages
Trac-0.11dev_r5661-py2.5.egg
trac
web\ … frames [{'function': 'dispatch_request', 'lines_before': [' if not env and … has_admin True line ' dispatcher.dispatch(req)' lineno 431 message u"AttributeError: 'NoneType' object has no attribute 'split'" options {'TracUriRoot': '/projects', 'TracEnvParentDir': 'D:/projects'} path_info ['changeset', '1'] req <Request "GET u'/changeset/1'"> request_uri '/projects/sqdb/changeset/1' root_uri '/projects' run_once False script_url None start_response <bound method ModPythonGateway._start_response of … tb <traceback object at 0x06E36198> tb_hide None traceback 'Traceback (most recent call last):\n File … - File "c:\python25\lib\site-packages\Trac-0.11dev_r5661-py2.5.egg\trac\web\main.py", line 217, in dispatch
Code fragment:
- 'Do you have cookies enabled?')
- # Process the request and render the template
- try:
- try:
- resp = chosen_handler.process_request(req)
- if resp:
- if len(resp) == 2: # Clearsilver
- chrome.populate_hdf(req)
- template, content_type = \
- self._post_process_request(req, *resp)
- File "c:\python25\lib\site-packages\Trac-0.11dev_r5661-py2.5.egg\trac\versioncontrol\web_ui\changeset.py", line 319, in process_request
Code fragment:
- self._render_diff(req, filename, repos, data)
- elif format == 'zip':
- self._render_zip(req, filename, repos, data)
- # — HTML format
- self._render_html(req, repos, chgset, restricted, xhr, data) 320.
- if chgset:
- diff_params = 'new=%s' % new
- else:
- diff_params = unicode_urlencode({'new_path': new_path,
- File "c:\python25\lib\site-packages\Trac-0.11dev_r5661-py2.5.egg\trac\versioncontrol\web_ui\changeset.py", line 595, in _render_html
Code fragment:
- info = None
- changes.append(info) # the sequence should be immutable
- data.update({'has_diffs': has_diffs, 'changes': changes, 'xhr': xhr,
- 'filestats': filestats,
- 'files': files, 'location': self._get_location(files),
- 'longcol': 'Revision', 'shortcol': 'r'})
- if xhr: # render and return the content only
- stream = Chrome(self.env).render_template(req, 'changeset.html',
- data, fragment=True)
- File "c:\python25\lib\site-packages\Trac-0.11dev_r5661-py2.5.egg\trac\versioncontrol\web_ui\changeset.py", line 732, in _get_location
System Information:
User Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Trac: | 0.11dev-r5661 |
Python: | 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] |
setuptools: | 0.6c6 |
MySQL: | server: "5.0.41-community-nt", client: "5.0.27", thread-safe: 1| |
MySQLdb: | 1.2.2 |
Genshi: | 0.4.1 |
Subversion: | 1.4.3 (r23084) |
jQuery: | 1.1.2 |
Note:
See TracTickets
for help on using tickets.