incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema" <brond...@users.sf.net>
Subject [allura:tickets] #6505 the "_list" urls give a 500 error when logged out [ss4830]
Date Mon, 29 Jul 2013 14:29:29 GMT
This looks like it's specific to our "sftheme" templates


---

** [tickets:#6505] the "_list" urls give a 500 error when logged out [ss4830]**

**Status:** open
**Labels:** support p3 
**Created:** Mon Jul 29, 2013 02:23 PM UTC by Chris Tsai
**Last Updated:** Mon Jul 29, 2013 02:23 PM UTC
**Owner:** nobody

[forge:site-support:#4830]

>When not logged in, the _list urls give a 500 error:
http://sourceforge.net/p/uhexen2/_list/tickets?source=navbar
However the https variant seems to work, which require that
a user be logged in.

and

>Just to report that at the Octave Forge project https://sourceforge.net/projects/octave/
we have the same issue since at least last Thursday. The link https://sourceforge.net/p/octave/_list/hg
gives a 500 error for unlogged users.

>I have checked the project permissions and anonymous should have read permissions. I also
noticed that each repository has a separate permissions window. We have some 40 mercurial
repositories so I didn't check all of them, but the ones I did also have read permissions
for anonymous users.

fwiw, I checked uhexen2's ticket permissions and didn't see anything amiss there.

I think I got the right traceback from an attempt to load octave's hg list:

~~~~
Error - <class 'jinja2.exceptions.UndefinedError'>: 'None' has no attribute 'config'
URL: http://sourceforge.net/p/octave/_list/hg
File '/var/local/env-allura/lib/python2.7/site-packages/WebError-0.10.3_20130423-py2.7.egg/weberror/errormiddleware.py',
line 242 in next
  return self.app_iterator.next()
File '/var/local/env-allura/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/registry.py',
line 409 in streaming_iter
  for item in self.application(environ, start_response):
File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.7-py2.7.egg/ming/odm/middleware.py',
line 16 in __call__
  result = self.app(environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 58 in __call__
  return self.app(environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/middleware.py',
line 65 in __call__
  result = self.app(environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 171 in __call__
  return resp(environ, start_response)
File '/var/local/allura/Allura/allura/config/middleware.py', line 193 in AlluraGlobalsMiddleware
  return app(environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 139 in __call__
  return self._app(environ, session_start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.3-py2.7.egg/timermiddleware/__init__.py',
line 201 in __call__
  resp = req.get_response(self.app)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1053 in get_response
  application, catch_exc_info=False)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 95 in __call__
  self.app, environ, catch_exc_info=True)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/util.py',
line 48 in call_wsgi_application
  app_iter = application(environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Beaker-1.5.4-py2.7.egg/beaker/middleware.py',
line 152 in __call__
  return self.wrap_app(environ, session_start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py',
line 131 in __call__
  response = self.app(environ, start_response)
File '/var/local/forge-classic/sfx/middleware.py', line 49 in __call__
  resp = request.get_response(self.app)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1053 in get_response
  application, catch_exc_info=False)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py',
line 107 in __call__
  response = self.dispatch(controller, environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py',
line 312 in dispatch
  return controller(environ, start_response)
File '/var/local/allura/Allura/allura/lib/base.py', line 46 in __call__
  response = super(WsgiDispatchController, self).__call__(environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py',
line 211 in __call__
  response = self._dispatch_call()
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py',
line 162 in _dispatch_call
  response = self._inspect_call(func)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py',
line 105 in _inspect_call
  result = self._perform_call(func, args)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/dispatcher.py',
line 258 in _perform_call
  r = self._call(func, params, remainder=remainder)
File '/var/local/allura/Allura/allura/lib/patches.py', line 93 in _call
  return old_controller_call(self, controller, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/decoratedcontroller.py',
line 142 in _call
  response = self._render_response(controller, output)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/decoratedcontroller.py',
line 331 in _render_response
  **render_params)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 188 in render
  kwargs['result'] = render_function(template_name, tg_vars, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 470 in render_jinja
  cache_key=cache_key, cache_type=cache_type, cache_expire=cache_expire)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 253 in cached_template
  return render_func()
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 467 in render_template
  return literal(template.render(**globs))
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.3-py2.7.egg/timermiddleware/__init__.py',
line 116 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.3-py2.7.egg/timermiddleware/__init__.py',
line 125 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py',
line 894 in render
  return self.environment.handle_exception(exc_info, True)
File '/var/local/allura/Allura/allura/templates/tool_list.html', line 20 in top-level template
code
  {% extends g.theme.master %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 81 in top-level
template code
  {% block nav_menu %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 82 in block
"nav_menu"
  {% include g.theme.nav_menu %}
File '/var/local/allura/Allura/allura/templates/jinja_master/nav_menu.html', line 25 in top-level
template code
  {{ theme_macros.breadcrumbs(c.project, c.app) }}
File '/var/local/sftheme/allura/sftheme/templates/sftheme/macro.html', line 232 in template
  {{ leaderboard_ad(project, app) }}
File '/var/local/sftheme/allura/sftheme/templates/sftheme/macro.html', line 255 in template
  {% if request.scheme == 'http' and app.config.tool_name == 'mailman' %}
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py',
line 372 in getattr
  return getattr(obj, attribute)
UndefinedError: 'None' has no attribute 'config'
~~~~



---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message