Modify

Opened 4 years ago

Closed 4 years ago

#8614 closed defect (fixed)

Enabling DynVariable module breaks work queue module functionality

Reported by: dannysauer Owned by: robguttman
Priority: normal Component: DynamicVariablesPlugin
Severity: major Keywords:
Cc: dannysauer Trac Release: 0.12

Description

When I enable the current Subversion release (9965) of the dynamic variables plugin, I get a couple of errors logged and the work queue module doesn't load - regardless of whether or not I have any dynamic variables configured in the query.

This is trac 0.12 on an RHEL5 system using Python 2.4

Here's the two messages which get generated per request:

2011-03-16 18:26:44,249 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg/trac/web/chrome.py", line 438, in process_request
    for dir in [os.path.normpath(dir[1]) for dir
  File "build/bdist.linux-x86_64/egg/dynvars/web_ui.py", line 13, in get_htdocs_dirs
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 799, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1229, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1240, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'dynvars/htdocs'
2011-03-16 18:26:46,002 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg/trac/web/chrome.py", line 438, in process_request
    for dir in [os.path.normpath(dir[1]) for dir
  File "build/bdist.linux-x86_64/egg/dynvars/web_ui.py", line 13, in get_htdocs_dirs
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 799, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1229, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1240, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'dynvars/htdocs'

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by dannysauer

Maybe or maybe not related, if I actually use a variable in the query, the dropdown also doesn't become a dropdown - I just get a text field where I can enter the name of the field.

comment:2 Changed 4 years ago by robguttman

(In [9969]) refs #8614: may fix "KeyError: 'dynvars/htdocs'" under python 2.4 but not sure.

comment:3 Changed 4 years ago by robguttman

I'm not sure if my fix will work or not under python 2.4. Can you give it a try and let me know? Thanks.

comment:4 Changed 4 years ago by anonymous

It works correctly on my 2.4 system now. Awesome - this is way better than making a bunch of links to the current page with the parameter pre-populated in the URL. :)

comment:5 Changed 4 years ago by robguttman

  • Resolution set to fixed
  • Status changed from new to closed

Great! Closing ticket.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.