Modify

Opened 10 years ago

Last modified 10 years ago

#11422 new defect

Exception: dependency.getMaxTicketId: object of type 'type' has no len()Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/TracXMLRPC-1.1.2_r13203-py2.7.egg/tracrpc/web_ui.py", line 101, in _dump_docs (method.signature, File "/usr/local/lib/python2.7/dist-packages/TracXMLRPC-1.1.2_r13203-py2.7.egg/tracrpc/api.py", line 230, in _get_signature if len(sig) < len(sigcand):TypeError: object of type 'type' has no len()

Reported by: alejandro.saavedra@… Owned by: Yuji OKAZAKI
Priority: normal Component: TracDependencyPlugin
Severity: normal Keywords: RPC API
Cc: Trac Release: 1.0

Description

when i select the API documentation, trac 1.0 fails:

How to Reproduce

While doing a GET operation on /rpc, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{}

User agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

System Information

Trac 1.0
Genshi 0.7 (without speedups)
mod_python 3.3.1
pysqlite 2.6.0
Python 2.7.3 (default, Jan 2 2013, 14:09:21)
[GCC 4.7.2]
RPC 1.1.2-r13203
setuptools 0.6
SQLite 3.7.13
jQuery 1.7.2

Enabled Plugins

NoteBox 1.0dev-r11779
PlantUML 2.0dev-r12389
SvnAuthzAdminPlugin 0.2
TestManager 1.7.2
TicketImport 0.8.3
TracCodeReview 2.2dev
TracDependencyPlugin 0.11.2.1
TracGenericClass 1.1.5
TracGenericWorkflow 1.0.4
TracNewsFlash 1.0.1
TracSectionEditPlugin 0.2.6-r11208
TracXMLRPC 1.1.2-r13203
VisitCounter 0.2

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/dist-packages/TracXMLRPC-1.1.2_r13203-py2.7.egg/tracrpc/web_ui.py", line 72, in process_request
    return self._dump_docs(req)
  File "/usr/local/lib/python2.7/dist-packages/TracXMLRPC-1.1.2_r13203-py2.7.egg/tracrpc/web_ui.py", line 111, in _dump_docs
    str(e), out.getvalue()))
Exception: dependency.getMaxTicketId: object of type 'type' has no len()
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/TracXMLRPC-1.1.2_r13203-py2.7.egg/tracrpc/web_ui.py", line 101, in _dump_docs
    (method.signature,
  File "/usr/local/lib/python2.7/dist-packages/TracXMLRPC-1.1.2_r13203-py2.7.egg/tracrpc/api.py", line 230, in _get_signature
    if len(sig) < len(sigcand):
TypeError: object of type 'type' has no len()

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by alejandro.saavedra@…

when i disable the plugin tracdependencyplugin the API documentation (navigation menu) is OK

comment:2 in reply to:  1 Changed 10 years ago by osimons

Component: XmlRpcPluginTracDependencyPlugin
Owner: changed from osimons to Yuji OKAZAKI

Replying to alejandro.saavedra@…:

when i disable the plugin tracdependencyplugin the API documentation (navigation menu) is OK

Makes sense. The underlying issue seems to be from that plugin:

Exception: dependency.getMaxTicketId: object of type 'type' has no len()

Switching 'Component' for this ticket to re-assign it as I'm quite sure it is outside the scope of the RPC plugin to fix this error.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Yuji OKAZAKI.

Add Comment


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

 
Note: See TracTickets for help on using tickets.