[tahoe-lafs-trac-stream] [tahoe-lafs] #1386: KeyError: 'file' if the local file is removed after selection and before Submit
tahoe-lafs
trac at tahoe-lafs.org
Thu Dec 13 17:14:30 UTC 2012
#1386: KeyError: 'file' if the local file is removed after selection and before
Submit
-----------------------------------+------------------------------------
Reporter: zooko | Owner: davidsarah
Type: defect | Status: assigned
Priority: normal | Milestone: 1.11.0
Component: code-frontend-web | Version: 1.8.2
Resolution: | Keywords: http upload error easy
Launchpad Bug: |
-----------------------------------+------------------------------------
Changes (by davidsarah):
* milestone: 1.10.0 => 1.11.0
Old description:
> I left a large upload running through the WUI overnight. In the morning
> it was still running, but I accidentally hit the "private browsing" key
> in Firefox 4 and then hit it again. This seems to have aborted the upload
> (which was probably still transferring the file from the web browser to
> the tahoe-lafs gateway and had probably not even begun to upload from the
> tahoe-lafs gateway to the tahoe-lafs servers). So, I clicked the
> {{{Upload}}} button again, and to my surprise I got this traceback:
> {{{
> 2011-03-31 05:39:07-0600 [HTTPChannel,21,127.0.0.1] Unhandled Error
> Traceback (most recent call last):
> File "/Library/Python/2.6/site-
> packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
> line 297, in addCallback
> callbackKeywords=kw)
> File "/Library/Python/2.6/site-
> packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
> line 286, in addCallbacks
> self._runCallbacks()
> File "/Library/Python/2.6/site-
> packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
> line 542, in _runCallbacks
> current.result = callback(current.result, *args, **kw)
> File "/Users/owhielaclient/tahoe-lafs/support/lib/python2.6
> /site-packages/Nevow-0.10.0-py2.6.egg/nevow/appserver.py", line 163, in
> gotPageContext
> pageContext.tag.renderHTTP, pageContext
> --- <exception caught here> ---
> File "/Library/Python/2.6/site-
> packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
> line 133, in maybeDeferred
> result = f(*args, **kw)
> File "/Users/owhielaclient/tahoe-
> lafs/src/allmydata/web/common.py", line 302, in renderHTTP
> return m(ctx)
> File "/Users/owhielaclient/tahoe-
> lafs/src/allmydata/web/directory.py", line 202, in render_POST
> d = self._POST_upload(ctx) # this one needs the context
> File "/Users/owhielaclient/tahoe-
> lafs/src/allmydata/web/directory.py", line 307, in _POST_upload
> contents = req.fields["file"]
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/cgi.py",
> line 520, in __getitem__
> raise KeyError, key
> exceptions.KeyError: 'file'
> }}}
> I'll attach the debugging output that the gateway returned to my browser.
New description:
I left a large upload running through the WUI overnight. In the morning it
was still running, but I accidentally hit the "private browsing" key in
Firefox 4 and then hit it again. This seems to have aborted the upload
(which was probably still transferring the file from the web browser to
the tahoe-lafs gateway and had probably not even begun to upload from the
tahoe-lafs gateway to the tahoe-lafs servers). So, I clicked the
{{{Upload}}} button again, and to my surprise I got this traceback:
{{{
2011-03-31 05:39:07-0600 [HTTPChannel,21,127.0.0.1] Unhandled Error
Traceback (most recent call last):
File "/Library/Python/2.6/site-
packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
line 297, in addCallback
callbackKeywords=kw)
File "/Library/Python/2.6/site-
packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
line 286, in addCallbacks
self._runCallbacks()
File "/Library/Python/2.6/site-
packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
line 542, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/Users/owhielaclient/tahoe-lafs/support/lib/python2.6
/site-packages/Nevow-0.10.0-py2.6.egg/nevow/appserver.py", line 163, in
gotPageContext
pageContext.tag.renderHTTP, pageContext
--- <exception caught here> ---
File "/Library/Python/2.6/site-
packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py",
line 133, in maybeDeferred
result = f(*args, **kw)
File "/Users/owhielaclient/tahoe-
lafs/src/allmydata/web/common.py", line 302, in renderHTTP
return m(ctx)
File "/Users/owhielaclient/tahoe-
lafs/src/allmydata/web/directory.py", line 202, in render_POST
d = self._POST_upload(ctx) # this one needs the context
File "/Users/owhielaclient/tahoe-
lafs/src/allmydata/web/directory.py", line 307, in _POST_upload
contents = req.fields["file"]
File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/cgi.py",
line 520, in __getitem__
raise KeyError, key
exceptions.KeyError: 'file'
}}}
I'll attach the debugging output that the gateway returned to my browser.
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1386#comment:7>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list