[ckan-dev] Error when trying to create a dataset without resource
Aleksi Suomalainen
aleksi.suomalainen at nomovok.com
Wed Dec 5 09:01:45 UTC 2012
Hello,
I have encountered a bug in CKAN which relates to creating a dataset
without a resource (eg. clicking next on add data phase without entering
resource data). The creation fails to error 500.
Full trace:
URL:
http://localhost:5000/dataset/new_resource/urn%3Anbn%3Afi%3Acsc-kata20121130155433260572
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/weberror/evalexception.py',
line 431 in respond
app_iter = self.application(environ, detect_start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
line 147 in __call__
resp = self.call_func(req, *args, **self.kwargs)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
line 208 in call_func
return self.func(req, *args, **kwargs)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/fanstatic/publisher.py',
line 234 in __call__
return request.get_response(self.app)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/request.py',
line 1053 in get_response
application, catch_exc_info=False)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/request.py',
line 1022 in call_application
app_iter = application(self.environ, start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
line 147 in __call__
resp = self.call_func(req, *args, **self.kwargs)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
line 208 in call_func
return self.func(req, *args, **kwargs)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/fanstatic/injector.py',
line 54 in __call__
response = request.get_response(self.app)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/request.py',
line 1053 in get_response
application, catch_exc_info=False)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/webob/request.py',
line 1022 in call_application
app_iter = application(self.environ, start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/beaker/middleware.py',
line 73 in __call__
return self.app(environ, start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/beaker/middleware.py',
line 155 in __call__
return self.wrap_app(environ, session_start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/routes/middleware.py',
line 131 in __call__
response = self.app(environ, start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 125 in __call__
response = self.dispatch(controller, environ, start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 324 in dispatch
return controller(environ, start_response)
File '/home/locusfwork/pyenv/src/ckan/ckan/lib/base.py', line 291 in
__call__
res = WSGIController.__call__(self, environ, start_response)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
line 221 in __call__
response = self._dispatch_call()
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
line 172 in _dispatch_call
response = self._inspect_call(func)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
line 107 in _inspect_call
result = self._perform_call(func, args)
File
'/home/locusfwork/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
line 60 in _perform_call
return func(**args)
File '/home/locusfwork/pyenv/src/ckan/ckan/controllers/package.py', line
587 in new_resource
if not len(data_dict['resources']):
KeyError: 'resources'
--
-- Aleksi Suomalainen Software Developer at Nomovok Ltd.
<http://www.nomovok.com/> <mailto:aleksi.suomalainen at nomovok.com=>
More information about the ckan-dev
mailing list