Bug 820775
Summary: | autocomplete widgets on the system page refer to /bkr/bkr/tg_widgets/turbogears.widgets/spinnerstopped.png | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Nish Aravamudan <nacc> |
Component: | web UI | Assignee: | Raymond Mancy <rmancy> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.9 | CC: | bpeck, dcallagh, ebaak, llim, rmancy, stl, xjia |
Target Milestone: | 0.15 | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | ImplementationQuality | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-03 02:28:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nish Aravamudan
2012-05-10 23:37:21 UTC
I think we have a similar exception related to favicon.ico, though I don't have it to hand right now. I can't reproduce this. I don't think we have done anything to explicitly fix it though... The path /bkr/tg_widgets/turbogears.widgets/spinnerstopped.png certainly exists, so long as server.webpath is set to '/bkr/' and the WSGI application is mounted at /bkr/ (as in the default packaged configuration). ... oops, scratch that. The problem is the system page generates a link to /bkr/bkr/tg_widgets/turbogears.widgets/spinnerstopped.png. Seems like it might be related to http://trac.turbogears.org/ticket/1009#comment:7 OK so the problem here comes about when you are using 'server.webpath' (which we advise to do in our admin guide when not wanting to mount Beaker at the root of the webserver). There are a couple of widgets (The AutoComplete* ones in turbogears.widgets.big_widgets) that use tg.url like thus: tg.url([tg.widgets, 'turbogears.widgets/spinnerstopped.png']) And, tg.widgets == tg.startup.webpath == server.webpath(in the config), so we are getting 'bkr/' prepended from tg.widgets, and then '/bkr' prepended from tg.url(). The solution here is to remove the 'tg.widgets' in the params to tg.url() and only pass the subsequent string. On gerrit: http://gerrit.beaker-project.org/#/c/2159/ Verify: Before update, open: http://10.3.1.32/bkr/view/test1 Aug 21 05:10:02 beaker-server beaker-server[18976]: cherrypy.msg INFO HTTP: Page handler: "The path '/bkr/tg_widgets/turbogears.widgets/spinnerstopped.png' was not found." Aug 21 05:10:02 beaker-server beaker-server[18976]: Traceback (most recent call last): Aug 21 05:10:02 beaker-server beaker-server[18976]: File "/usr/lib/python2.6/site-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/_cphttptools.py", line 121, in _run Aug 21 05:10:02 beaker-server beaker-server[18976]: self.main() Aug 21 05:10:02 beaker-server beaker-server[18976]: File "/usr/lib/python2.6/site-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/_cphttptools.py", line 256, in main Aug 21 05:10:02 beaker-server beaker-server[18976]: page_handler, object_path, virtual_path = self.mapPathToObject(path) Aug 21 05:10:02 beaker-server beaker-server[18976]: File "/usr/lib/python2.6/site-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/_cphttptools.py", line 326, in mapPathToObject Aug 21 05:10:02 beaker-server beaker-server[18976]: raise cherrypy.NotFound(objectpath) Aug 21 05:10:02 beaker-server beaker-server[18976]: NotFound: 404 After update: open:http://10.3.1.32/bkr/view/test1 no such error. Version: beaker-0.14.1-1.git.58.b52f89a.el6.noarch beaker-server-0.14.1-1.git.58.b52f89a.el6.noarch Beaker 0.15 has been released. |