[forge:site-support:#3029]
Whenever I try to report a new bug for MiKTeX after clicking "save" I get the following error:
Error 500
We're sorry but we weren't able to process this request.
I've reproduced this and grabbed this from logs:
------------------------------------------------------------ mod_wsgi (pid=4428): Exception occurred processing WSGI script '/etc/httpd/conf.d/allura.wsgi'. IOError: failed to write data Error - <class 'ming.schema.Invalid'>: Extra keys: set([u'_milestone_counts_expire', u'_milestone_counts']) URL: https://sourceforge.net/p/miktex/bugs/save_ticket File '/var/local/env-allura/lib/python2.7/site-packages/WebError-0.10.3-py2.7.egg/weberror/errormiddleware.py', line 162 in __call__ app_iter = self.application(environ, sr_checker) 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 39 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 27 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/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/decoratedcontroller.py', line 120 in _call output = controller_callable(*remainder, **dict(params)) File '/var/local/allura/ForgeTracker/forgetracker/tracker_main.py', line 707 in save_ticket ticket = TM.Ticket.new() File '/var/local/allura/ForgeTracker/forgetracker/model/ticket.py', line 283 in new ticket_num = c.app.globals.next_ticket_num() File '/var/local/allura/ForgeTracker/forgetracker/model/ticket.py', line 71 in next_ticket_num new=True) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/odm/mapper.py', line 269 in inner return method(self.mapped_class, *args, **kwargs) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/odm/odmsession.py', line 111 in find_and_modify obj = self.impl.find_and_modify(m.collection, *args, **kwargs) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/session.py', line 115 in find_and_modify return cls.make(bson) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/metadata.py', line 361 in make return cls.m.make(data, **kwargs) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/metadata.py', line 293 in make data, allow_extra=allow_extra, strip_extra=strip_extra) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/schema.py', line 228 in _validate_optional return self._validate(value, **kw) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/schema.py', line 380 in _validate d, allow_extra=allow_extra, strip_extra=strip_extra)) File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/schema.py', line 335 in _validate raise Invalid('Extra keys: %r' % extra_keys, d, None) Invalid: Extra keys: set([u'_milestone_counts_expire', u'_milestone_counts'])
allura:cj/5932
To QA:
db.globals.update({app_config_id: cid}, {$set: {_milestone_counts: [{name: '1.0', hits: 1, closed: 0}], _milestone_counts_expire: new ISODate()}})
(where
cid
is theapp_config_id
for your tracker)