Modify

Opened 8 years ago

Last modified 5 years ago

#1269 new defect

[PATCH] "Trac Internal Error" if files exist, possible Type error.

Reported by: Andrew McCarthy Owned by: coderanger
Priority: normal Component: FilenameSearchPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.10

Description

If a match for my search exists, the following trace is returned. Where no match exists, the search completes normally:

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.4/trac/Search.py", line 181, in process_request
    results += list(source.get_search_results(req, terms, filters))
  File "build/bdist.linux-i686/egg/filenamesearch/web_ui.py", line 49, in get_search_results
  File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 110, in has_node
    return self.repos.has_node(path, rev)
  File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 319, in has_node
    rev_root = fs.revision_root(self.fs_ptr, rev, pool())
  File "/var/lib/python-support/python2.4/libsvn/fs.py", line 224, in svn_fs_revision_root
    return apply(_fs.svn_fs_revision_root, args)
TypeError: argument number 2:

Converting the returned value of repo.get_youngest_rev() from type unicode to int appears to resolve this. See attached diff.

Thanks!

Attachments (1)

filenamesearch.diff (508 bytes) - added by Andrew McCarthy 8 years ago.
Quick-fix diff

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Andrew McCarthy

Quick-fix diff

comment:1 Changed 5 years ago by AdrianFritz

  • Summary changed from "Trac Internal Error" if files exist, possible Type error. to [PATH] "Trac Internal Error" if files exist, possible Type error.

comment:2 Changed 5 years ago by AdrianFritz

  • Summary changed from [PATH] "Trac Internal Error" if files exist, possible Type error. to [PATCH] "Trac Internal Error" if files exist, possible Type error.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.