Modify

Opened 11 years ago

Closed 2 months ago

#1269 closed defect (wontfix)

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

Reported by: Andrew McCarthy Owned by:
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 11 years ago.
Quick-fix diff

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Andrew McCarthy

Attachment: filenamesearch.diff added

Quick-fix diff

comment:1 Changed 8 years ago by Adrian Fritz

Summary: "Trac Internal Error" if files exist, possible Type error.[PATH] "Trac Internal Error" if files exist, possible Type error.

comment:2 Changed 8 years ago by Adrian Fritz

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

comment:3 Changed 3 years ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

comment:4 Changed 2 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.