#576: fix webstyle references to mathjax
----------------------+----------------------
Reporter: jblayloc | Owner: jcaffaro
Type: defect | Status: new
Priority: major | Milestone:
Component: WebStyle | Version:
Keywords: |
----------------------+----------------------
Something somewhere in the templates seems to be misconfigured with
respect to MathJax, as we keep getting exceptions like the following in
the Admin queue:
{{{
uri: </config/MathJax.js?>
>>> Traceback details
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-
packages/invenio/webinterface_handler_wsgi.py", line 372, in application
ret = invenio_handler(req)
File "/usr/lib64/python2.4/site-
packages/invenio/webinterface_handler.py", line 334, in _profiler
return _handler(req)
File "/usr/lib64/python2.4/site-
packages/invenio/webinterface_handler.py", line 378, in _handler
raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND
SERVER_RETURN: 404
Locals by frame, innermost last
>>>> Frame application in /usr/lib64/python2.4/site-
packages/invenio/webinterface_handler_wsgi.py at line 382
*******************************************************************************
379 admin_to_be_alerted =
alert_admin_for_server_status_p(status,
380
req.headers_in.get('referer'))
381 if admin_to_be_alerted:
----> 382 register_exception(req=req,
alert_admin=True)
383 if not req.response_sent_p:
384 start_response(req.get_wsgi_status(),
req.get_low_level_headers(), sys.exc_info())
385 return generate_error_page(req,
admin_to_be_alerted)
*******************************************************************************
status = '404'
start_response = '<built-in method start_response of
mod_wsgi.Adapter object at 0x2aaab5200f30>'
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2aaab52658d0>'
admin_to_be_alerted = 'True'
possible_handler = 'None'
possible_module = 'None'
environ = "{'mod_wsgi.reload_mechanism': '1',
'mod_wsgi.listener_port': '80', 'HTTP_X_FORWARDED_SERVER':
'inspirebeta.net', 'HTTP_COOKIE':
'INVENIOSESSION=4b19f0d61edfd0e978d1915747d610a7', 'HTTP_ACCEPT_LANGUAGE':
'en-gb,en;q=0.5', 'SERVER_SOFTWARE': 'Apache', 'SCRIPT_NAME': '',
'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'GET', 'PATH_INFO':
'/config/MathJax.js', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '',
'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'HTTP_ACCEPT_CHARSET':
'ISO-8859-1,utf-8;q=0.7,*;q=0.7 [...]
>>>> Frame _profiler in /usr/lib64/python2.4/site-
packages/invenio/webinterface_handler.py at line 334
*******************************************************************************
331 req.write("\n<pre>%s</pre>" % profile_dump)
332 return ret
333 else:
----> 334 return _handler(req)
335
336 def _handler(req):
337 """ This handler is invoked by mod_python with the
apache request."""
*******************************************************************************
_handler = '<function _handler at 0x2aaab3ca7668>'
args = '{}'
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2aaab52658d0>'
>>>> Frame _handler in /usr/lib64/python2.4/site-
packages/invenio/webinterface_handler.py at line 411
*******************************************************************************
408
409 ## as suggested in
410 ## <http://www.python.org/doc/2.3.5/lib/module-
gc.html>
----> 411 del gc.garbage[:]
412
413 return _profiler
414
*******************************************************************************
allowed_methods = "('GET', 'POST', 'HEAD', 'OPTIONS')"
guest_p = '1'
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2aaab52658d0>'
uri = "'/config/MathJax.js'"
path = "['config', 'MathJax.js']"
root =
'<invenio.webinterface_layout.WebInterfaceInvenio object at
0x2aaab3ca3710>'
}}}
As you can see, something is referring to /config/MathJax.js, when it
should be /MathJax/config/MathJax.js. Or possibly /MathJax/MathJax.js.
If I've misassigned please send this to the right person.
--
Ticket URL: <http://invenio-software.org/ticket/576>
Invenio <http://invenio-software.org>