Error When Uploading File

Help
2009-03-23
2012-12-15
  • carlo_camer
    carlo_camer
    2009-03-23

    Error - <type 'exceptions.KeyError'>: "'projectId'"
    02:38:28,618 INFO  summary [1091357008] User: admin: Displaying project summary for Project 7 [w2f]
    02:38:35,972 INFO  summary [1105758544] User: admin: Updating Project 7 [w2f]
    02:38:36,017 INFO  summary [1114151248] User: admin: Displaying project summary for Project 7 [carr]
    02:38:37,996 INFO  filesets [1122543952] User: admin: Displaying file sets for Project 7 [carr]
    02:38:39,309 INFO  selectfileset [1130936656] User: admin: Selecting file sets for project 7
    02:38:48,277 ERROR base [1139329360] User: admin: Uncaught exception
    Traceback (most recent call last):
      File "/usr/lib/python2.5/site-packages/jcr-0.6.6.egg/jcr/lib/base.py", line 98, in __call__
        return WSGIController.__call__(self, environ, start_response)
      File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 164, in __call__
        response = self._dispatch_call()
      File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call
        response = self._inspect_call(func)
      File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call
        result = func(**args)
      File "<string>", line 2, in upload
      File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 36, in validate
        return permission.check(app, request.environ, self.start_response)
      File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py", line 177, in check
        return app(environ, start_response)
      File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 35, in app
        return func(self, *args, **kwargs)
      File "<string>", line 2, in upload
      File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/decorators/__init__.py", line 149, in wrapper
        response = self._dispatch_call()
      File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call
        response = self._inspect_call(func)
      File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call
        result = func(**args)
      File "<string>", line 2, in index
      File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 36, in validate
        return permission.check(app, request.environ, self.start_response)
      File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py", line 177, in check
        return app(environ, start_response)
      File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 35, in app
        return func(self, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/jcr-0.6.6.egg/jcr/controllers/projectadmin/selectfileset.py", line 36, in index
        c.projectId = int(request.params['projectId'])
      File "/usr/lib/python2.5/site-packages/Paste-1.6-py2.5.egg/paste/util/multidict.py", line 259, in __getitem__
        return self._decode_value(self.multi.__getitem__(key))
      File "/usr/lib/python2.5/site-packages/Paste-1.6-py2.5.egg/paste/util/multidict.py", line 36, in __getitem__
        raise KeyError(repr(key))
    KeyError: "'projectId'"
    Error - <type 'exceptions.KeyError'>: "'projectId'"

     
    • John Dickson
      John Dickson
      2009-03-23

      This is caused by a recent change to a third party library used by JCR (see the "Error uploading file set on JCR 0.6.6.1" thread for more information).

      I've made an alpha release of a version that uses updated versions of most libraries - I'm testing it at the moment, and I hope to put it up on SourceForge later today.  I'll add a note to these threads when it's available.

      Cheers ................................ JD

       
    • John Dickson
      John Dickson
      2009-03-24

      I've just uploaded 0.6.7rc1, which updates the third party libraries and therefore fixes this issue.

      Cheers .............................. JD