http proxying can break webapi and leak capabilities (manifests as JSON decoding error in CLI tests) #1253

Closed
opened 2010-11-09 21:43:19 +00:00 by daira · 22 comments

On tahoe-dev, Yonggang Wen and Jimmy Tang reported errors with r4803 (nearly current trunk) in the following tests:

  Ln
    test_ln_with_nonexistent_alias
    test_ln_without_alias
  Mv
    test_mv_behavior
    test_mv_with_nonexistent_alias
    test_mv_without_alias
  SystemTest
    test_filesystem

For example:

[ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias

Traceback (most recent call last):
[...twisted and runner stack entries snipped...]
  File
"/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py",
line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File
"/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py",
line 32, in mv
    nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line
384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line
402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line
420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1
column 0 (char 0)

Other tests with errors also go through [line 32 of tahoe_mv.py]source:src/allmydata/scripts/tahoe_mv.py@4803#L32.

It's not clear yet whether simplejson is failing to decode valid JSON, or whether the gateway is producing JSON that is not strictly valid.

[On tahoe-dev](http://tahoe-lafs.org/pipermail/tahoe-dev/2010-November/005572.html), Yonggang Wen and Jimmy Tang reported errors with r4803 (nearly current trunk) in the following tests: ``` Ln test_ln_with_nonexistent_alias test_ln_without_alias Mv test_mv_behavior test_mv_with_nonexistent_alias test_mv_without_alias SystemTest test_filesystem ``` For example: ``` [ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias Traceback (most recent call last): [...twisted and runner stack entries snipped...] File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 32, in mv nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) ``` Other tests with errors also go through [line 32 of tahoe_mv.py]source:src/allmydata/scripts/tahoe_mv.py@4803#L32. It's not clear yet whether simplejson is failing to decode valid JSON, or whether the gateway is producing JSON that is not strictly valid.
daira added the
c/code-frontend-cli
p/major
t/defect
v/1.8.0
labels 2010-11-09 21:43:19 +00:00
daira added this to the 1.8.1 milestone 2010-11-09 21:43:19 +00:00
jcftang commented 2010-11-09 22:13:04 +00:00
Owner
As requested by David-Sarah on the mailing list

Version and path information...

1|jtang@x00:~/sandbox/allmydata-tahoe-1.8.0-r4803 $ ./bin/tahoe --version-and-path
allmydata-tahoe: 1.8.0-r4803 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src), foolscap: 0.5.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/foolscap-0.5.1-py2.6.egg), pycryptopp: 0.5.25 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycryptopp-0.5.25-py2.6-macosx-10.6-universal.egg), zfec: 1.4.7-r361 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zfec-1.4.7_r361-py2.6-macosx-10.6-universal.egg), Twisted: 8.2.0 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), Nevow: 0.10.0 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/Nevow-0.10.0-py2.6.egg), zope.interface: 3.5.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), python: 2.6.1 (/usr/bin/python), platform: Darwin-10.4.0-i386-64bit (None), sqlite: 3.6.12 (unknown), simplejson: 2.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/simplejson-2.1.2-py2.6-macosx-10.6-universal.egg), argparse: 1.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/argparse-1.1-py2.6.egg), pycrypto: 2.3 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycrypto-2.3-py2.6-macosx-10.6-universal.egg), pyOpenSSL: 0.7 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyutil: 1.7.12 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyutil-1.7.12-py2.6.egg), zbase32: 1.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zbase32-1.1.2-py2.6.egg), setuptools: 0.6c9 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyasn1: 0.0.11a (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyasn1-0.0.11a-py2.6.egg), pysqlite: 2.4.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6)

modified /Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py by changing line 32 to:

    print repr(data); nodetype, attrs = simplejson.loads(data)

I then did a python setup.py build and re-ran the tests as instructed. I've copied and pasted anything that failed with an ERROR below

  Ln
    test_ln_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?">http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:18 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                 [ERROR]
    test_ln_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?">http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:19 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                          [ERROR]
  Mv
    test_mv_behavior ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                               [ERROR]
    test_mv_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?">http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                 [ERROR]
    test_mv_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?">http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:23 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                          [ERROR]
allmydata.test.test_system
  SystemTest
    test_filesystem ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?">http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:41:33 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                                [ERROR]
===============================================================================
[FAIL]: allmydata.test.test_client.Basic.test_reserved_4

Traceback (most recent call last):
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4
    78*1000*1000*1000)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual
    self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg))
twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None
not equal:
a = <type 'int'>
b = <type 'long'>

===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_system.SystemTest.test_filesystem

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)

``` As requested by David-Sarah on the mailing list Version and path information... 1|jtang@x00:~/sandbox/allmydata-tahoe-1.8.0-r4803 $ ./bin/tahoe --version-and-path allmydata-tahoe: 1.8.0-r4803 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src), foolscap: 0.5.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/foolscap-0.5.1-py2.6.egg), pycryptopp: 0.5.25 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycryptopp-0.5.25-py2.6-macosx-10.6-universal.egg), zfec: 1.4.7-r361 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zfec-1.4.7_r361-py2.6-macosx-10.6-universal.egg), Twisted: 8.2.0 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), Nevow: 0.10.0 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/Nevow-0.10.0-py2.6.egg), zope.interface: 3.5.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), python: 2.6.1 (/usr/bin/python), platform: Darwin-10.4.0-i386-64bit (None), sqlite: 3.6.12 (unknown), simplejson: 2.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/simplejson-2.1.2-py2.6-macosx-10.6-universal.egg), argparse: 1.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/argparse-1.1-py2.6.egg), pycrypto: 2.3 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycrypto-2.3-py2.6-macosx-10.6-universal.egg), pyOpenSSL: 0.7 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyutil: 1.7.12 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyutil-1.7.12-py2.6.egg), zbase32: 1.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zbase32-1.1.2-py2.6.egg), setuptools: 0.6c9 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyasn1: 0.0.11a (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyasn1-0.0.11a-py2.6.egg), pysqlite: 2.4.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6) ``` modified /Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py by changing line 32 to: ``` print repr(data); nodetype, attrs = simplejson.loads(data) ``` I then did a python setup.py build and re-ran the tests as instructed. I've copied and pasted anything that failed with an ERROR below ``` Ln test_ln_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?">http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:18 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] test_ln_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?">http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:19 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] ``` ``` Mv test_mv_behavior ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] test_mv_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?">http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] test_mv_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?">http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:23 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] ``` ``` allmydata.test.test_system SystemTest test_filesystem ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?">http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:41:33 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] ``` ``` =============================================================================== [FAIL]: allmydata.test.test_client.Basic.test_reserved_4 Traceback (most recent call last): File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4 78*1000*1000*1000) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg)) twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None not equal: a = <type 'int'> b = <type 'long'> =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_system.SystemTest.test_filesystem Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) ```
Author

OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion:

After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes.

Presumably this would also break actual use of the webapi, not just tests.

In theory, requests to 127.0.0.1 should either not be intercepted or should be passed through transparently, but that's not happening for this particular proxy configuration. The proxy is returning the following HTML error document, which is obviously not valid JSON:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Access Denied.
</STRONG>
<P>
Access control configuration prevents your request from
being allowed at this time.  Please contact your service provider if
you feel this is incorrect.
</UL>
<P>Your cache administrator is <A HREF="mailto:root">root</A>. 


<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)
</ADDRESS>
</BODY></HTML>

Note that any response that starts with a '<' (or a BOM followed by '<') is likely to be HTML coming from something other than the intended gateway; we should give a better error report in that case.

OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion: > After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes. Presumably this would also break actual use of the webapi, not just tests. In theory, requests to 127.0.0.1 should either not be intercepted or should be passed through transparently, but that's not happening for this particular proxy configuration. The proxy is returning the following HTML error document, which is obviously not valid JSON: ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A> <P> The following error was encountered: <UL> <LI> <STRONG> Access Denied. </STRONG> <P> Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. </UL> <P>Your cache administrator is <A HREF="mailto:root">root</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21) </ADDRESS> </BODY></HTML> ``` Note that any response that starts with a '<' (or a BOM followed by '<') is likely to be HTML coming from something other than the intended gateway; we should give a better error report in that case.
daira added
c/code-frontend
and removed
c/code-frontend-cli
labels 2010-11-09 23:23:34 +00:00
daira changed title from JSON decoding error in CLI tests on an OS X 10.6 system to http proxying can break webapi (manifests as JSON decoding error in CLI tests) 2010-11-09 23:23:34 +00:00
Author

Replying to jcftang:

===============================================================================
FAIL: allmydata.test.test_client.Basic.test_reserved_4

Traceback (most recent call last):
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4
    78*1000*1000*1000)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual
    self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg))
twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None
not equal:
a = <type 'int'>
b = <type 'long'>

This failure (which has nothing to do with the http proxy issue) should have been fixed by changeset:edec9c986917e8f4. jcftang: please check that with current trunk.
Replying to [jcftang](/tahoe-lafs/trac/issues/1253#issuecomment-382059): > ``` > =============================================================================== > FAIL: allmydata.test.test_client.Basic.test_reserved_4 > > Traceback (most recent call last): > File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4 > 78*1000*1000*1000) > File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual > self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg)) > twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None > not equal: > a = <type 'int'> > b = <type 'long'> ``` This failure (which has nothing to do with the http proxy issue) should have been fixed by changeset:edec9c986917e8f4. jcftang: please check that with current trunk.
Author

Replying to davidsarah:

OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion:

After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes.

Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496".

Replying to [davidsarah](/tahoe-lafs/trac/issues/1253#issuecomment-382060): > OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion: > > > After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes. Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496".
Author

Replying to [davidsarah]comment:4:

Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496".

Oh, that probably won't work because the port is dynamic. Try setting no_proxy just to "127.0.0.1" instead.

Replying to [davidsarah]comment:4: > Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496". Oh, that probably won't work because the port is dynamic. Try setting no_proxy just to "127.0.0.1" instead.

hm, perhaps we should add an early test (i.e. alphabetically first) which just tries a simple HTTP request to self, to catch things like HTTP_PROXY? The error message on that test could look at os.environ["HTTP_PROXY"] and mention that it might be interfering with the self-tests, and remind users to configure their proxies to allow 127.0.0.1 to connect directly.

(Foolscap has a test*versions.py that runs before everything else, so that its output is easier to find.. we could add a test*http_proxy.py to Tahoe and maybe even os.abort() the whole test run if it fails, to avoid later confusion)

hm, perhaps we should add an early test (i.e. alphabetically first) which just tries a simple HTTP request to self, to catch things like HTTP_PROXY? The error message on that test could look at `os.environ["HTTP_PROXY"]` and mention that it might be interfering with the self-tests, and remind users to configure their proxies to allow 127.0.0.1 to connect directly. (Foolscap has a `test*versions.py` that runs before everything else, so that its output is easier to find.. we could add a `test*http_proxy.py` to Tahoe and maybe even `os.abort()` the whole test run if it fails, to avoid later confusion)
jcftang commented 2010-11-10 00:29:18 +00:00
Owner

in reply to comment:5, i tried setting the no_proxy variable and leaving my http_proxy (and friends) variables alone, I now get errors such as...


  Ln
    test_ln_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                 [ERROR]
    test_ln_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                          [ERROR]
  Manifest
    test_manifest_with_nonexistent_alias ...                               [OK]
    test_manifest_without_alias ...                                        [OK]
  Mkdir
    test_mkdir ...                                                         [OK]
    test_mkdir_unicode ...                                            [SKIPPED]
    test_mkdir_with_nonexistent_alias ...                                  [OK]
  Mv
    test_mv_behavior ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                               [ERROR]
    test_mv_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                 [ERROR]
    test_mv_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                          [ERROR]
  Put

allmydata.test.test_system
  SystemTest
    test_filesystem ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                                [ERROR]

the end of the tests... just to be sure im pasting the correct error messages...


===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_system.SystemTest.test_filesystem

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
-------------------------------------------------------------------------------
Ran 828 tests in 366.156s

FAILED (skips=15, expectedFailures=3, failures=1, errors=6, successes=803)
1|jtang@x00:...llmydata-tahoe-1.8.0-r4803 $

in response to comment:3 I will need to download the trunk from the trac interface when I'm in work tomorrow morning to test again. I've so far been testing the near trunk branch from the git repo.

in reply to comment:5, i tried setting the no_proxy variable and leaving my http_proxy (and friends) variables alone, I now get errors such as... ``` Ln test_ln_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] test_ln_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] Manifest test_manifest_with_nonexistent_alias ... [OK] test_manifest_without_alias ... [OK] Mkdir test_mkdir ... [OK] test_mkdir_unicode ... [SKIPPED] test_mkdir_with_nonexistent_alias ... [OK] Mv test_mv_behavior ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] test_mv_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] test_mv_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] Put ``` ``` allmydata.test.test_system SystemTest test_filesystem ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] ``` the end of the tests... just to be sure im pasting the correct error messages... ``` =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_system.SystemTest.test_filesystem Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) ------------------------------------------------------------------------------- Ran 828 tests in 366.156s FAILED (skips=15, expectedFailures=3, failures=1, errors=6, successes=803) 1|jtang@x00:...llmydata-tahoe-1.8.0-r4803 $ ``` in response to comment:3 I will need to download the trunk from the trac interface when I'm in work tomorrow morning to test again. I've so far been testing the near trunk branch from the git repo.
Author

Hmm, I see the problem. Most of our code uses httplib (which does not make use of the http_proxy or HTTP_PROXY variables) to establish HTTP connections, but tahoe_mv.py uses urllib.urllopen [here]source:src/allmydata/scripts/tahoe_mv.py@4811#L31. That's why only the tests of tahoe mv are failing.

(There is another use of urllib.urlopen in source:src/allmydata/test/check_load.py, but that's not run by setup.py test.)

Hmm, I see the problem. Most of our code uses `httplib` (which does not make use of the http_proxy or HTTP_PROXY variables) to establish HTTP connections, but tahoe_mv.py uses `urllib.urllopen` [here]source:src/allmydata/scripts/tahoe_mv.py@4811#L31. That's why only the tests of `tahoe mv` are failing. (There is another use of `urllib.urlopen` in source:src/allmydata/test/check_load.py, but that's not run by `setup.py test`.)
Author

This could cause capabilities (specifically, the source arguments to tahoe mv or tahoe ln) to be leaked to the HTTP proxy server. The proxy server is not in our reliance diagram and therefore not supposed to be trusted.

This could cause capabilities (specifically, the source arguments to `tahoe mv` or `tahoe ln`) to be leaked to the HTTP proxy server. The proxy server is not in our [reliance diagram](http://tahoe-lafs.org/source/tahoe-lafs/trunk/docs/about.html) and therefore not supposed to be trusted.
daira added
c/code-frontend-cli
p/critical
and removed
c/code-frontend
p/major
labels 2010-11-10 00:57:31 +00:00
daira changed title from http proxying can break webapi (manifests as JSON decoding error in CLI tests) to http proxying can break webapi and leak capabilities (manifests as JSON decoding error in CLI tests) 2010-11-10 01:12:06 +00:00
Author

Attachment use-do-http-in-tahoe-mv.darcs.patch (16759 bytes) added

tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253

**Attachment** use-do-http-in-tahoe-mv.darcs.patch (16759 bytes) added tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253
Author

Attachment test-1253.darcs.patch (19035 bytes) added

test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253

**Attachment** test-1253.darcs.patch (19035 bytes) added test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253
daira removed their assignment 2010-11-10 04:06:46 +00:00
warner was assigned by daira 2010-11-10 04:06:46 +00:00

I reviewed the patches and they look good. We still need a source:NEWS entry for this ticket. Here, please review this patch that I'm about to attach that adds a NEWS entry.

I reviewed the patches and they look good. We still need a source:NEWS entry for this ticket. Here, please review this patch that I'm about to attach that adds a NEWS entry.
warner was unassigned by zooko 2010-11-10 08:43:59 +00:00
zooko self-assigned this 2010-11-10 08:43:59 +00:00

Attachment news-1253.darcs.patch (16492 bytes) added

**Attachment** news-1253.darcs.patch (16492 bytes) added
zooko removed their assignment 2010-11-10 08:45:33 +00:00
warner was assigned by zooko 2010-11-10 08:45:33 +00:00
Author

Reviewed the news patch. Looks good, but please make the changes to source:docs/configuration.rst and source:misc/simulators/hashbasedsig.py into separate patches.

Reviewed the news patch. Looks good, but please make the changes to source:docs/configuration.rst and source:misc/simulators/hashbasedsig.py into separate patches.

In changeset:531443792e3334a7:

docs: NEWS: refs #1253
In changeset:531443792e3334a7: ``` docs: NEWS: refs #1253 ```
Author

In changeset:01a53650510a9a4e:

test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253
In changeset:01a53650510a9a4e: ``` test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253 ```
Author

In changeset:cb777ad14f12a249:

tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253
In changeset:cb777ad14f12a249: ``` tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253 ```
jcftang commented 2010-11-11 09:12:26 +00:00
Owner

I just did a checkout of the darcs repo, and re-ran the tests in my environment that failed the last time. The tests passes now.

I just did a checkout of the darcs repo, and re-ran the tests in my environment that failed the last time. The tests passes now.

Fixed in changeset:01a53650510a9a4e, changeset:cb777ad14f12a249. Thank you!

Fixed in changeset:01a53650510a9a4e, changeset:cb777ad14f12a249. Thank you!
zooko added the
r/fixed
label 2010-11-11 13:48:12 +00:00
zooko closed this issue 2010-11-11 13:48:12 +00:00

There is now a test failure on zomp (Mac OS 10.6) which looks like it might be caused by these patches:

http://tahoe-lafs.org/buildbot/builders/Zooko%20zomp%20Mac-amd64%2010.6%20py2.6/builds/208/steps/test/logs/stdio

[FAIL]
Traceback (most recent call last):
  File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/src/allmydata/test/test_system.py", line 1609, in _check_mv_with_http_proxy
    self.failUnlessEqual(rc_or_sig, 0, str(res))
twisted.trial.unittest.FailTest: ('', 'Traceback (most recent call last):\n  File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/support/bin/tahoe", line 9, in <module>\n    load_entry_point(\'allmydata-tahoe==1.8.0-r4818\', \'console_scripts\', \'tahoe\')()\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 114, in run\n    rc = runner(sys.argv[1:], install_node_control=install_node_control)\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 100, in runner\n    rc = cli.dispatch[command](so)\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/cli.py", line 504, in mv\n    rc = tahoe_mv.mv(options, mode="move")\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py", line 31, in mv\n    data = urllib.urlopen(from_url + "?t=json").read()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 87, in urlopen\n    return opener.open(url)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 203, in open\n    return getattr(self, name)(url)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 338, in open_http\n    h.endheaders()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 868, in endheaders\n    self._send_output()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 740, in _send_output\n    self.send(msg)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 699, in send\n    self.connect()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 683, in connect\n    self.timeout)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 512, in create_connection\n    raise error, msg\nIOError: [Errno socket error] [Errno 60] Operation timed out\n', 1)
not equal:
a = 1
b = 0
There is now a test failure on zomp (Mac OS 10.6) which looks like it might be caused by these patches: <http://tahoe-lafs.org/buildbot/builders/Zooko%20zomp%20Mac-amd64%2010.6%20py2.6/builds/208/steps/test/logs/stdio> ``` [FAIL] Traceback (most recent call last): File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/src/allmydata/test/test_system.py", line 1609, in _check_mv_with_http_proxy self.failUnlessEqual(rc_or_sig, 0, str(res)) twisted.trial.unittest.FailTest: ('', 'Traceback (most recent call last):\n File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/support/bin/tahoe", line 9, in <module>\n load_entry_point(\'allmydata-tahoe==1.8.0-r4818\', \'console_scripts\', \'tahoe\')()\n File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 114, in run\n rc = runner(sys.argv[1:], install_node_control=install_node_control)\n File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 100, in runner\n rc = cli.dispatch[command](so)\n File "/Library/Python/2.6/site-packages/allmydata/scripts/cli.py", line 504, in mv\n rc = tahoe_mv.mv(options, mode="move")\n File "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py", line 31, in mv\n data = urllib.urlopen(from_url + "?t=json").read()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 87, in urlopen\n return opener.open(url)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 203, in open\n return getattr(self, name)(url)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 338, in open_http\n h.endheaders()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 868, in endheaders\n self._send_output()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 740, in _send_output\n self.send(msg)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 699, in send\n self.connect()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 683, in connect\n self.timeout)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 512, in create_connection\n raise error, msg\nIOError: [Errno socket error] [Errno 60] Operation timed out\n', 1) not equal: a = 1 b = 0 ```
zooko removed the
r/fixed
label 2010-11-13 08:01:29 +00:00
zooko reopened this issue 2010-11-13 08:01:29 +00:00
Author

source:src/allmydata/scripts/tahoe_mv.py@4818#L31 is not
"data = urllib.urlopen(from_url + "?t=json").read()". That's what it was
before the fix.

Somehow the code being tested has the test patch changeset:01a53650510a9a4e, but not the fix patch changeset:cb777ad14f12a249.

Oh, it is testing "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py". Wrong! This looks like the issue that we fixed for the test-from-egg and test-from-prefixdir steps in #1137.

Anyway, this failure is not evidence of this ticket being unfixed, so I'm closing it and opening a new ticket for the wrong-code problem.

source:src/allmydata/scripts/tahoe_mv.py@4818#L31 is not "`data = urllib.urlopen(from_url + "?t=json").read()`". That's what it was before the fix. Somehow the code being tested has the test patch changeset:01a53650510a9a4e, but not the fix patch changeset:cb777ad14f12a249. Oh, it is testing "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py". Wrong! This looks like the issue that we fixed for the test-from-egg and test-from-prefixdir steps in #1137. Anyway, this failure is not evidence of this ticket being unfixed, so I'm closing it and opening a new ticket for the wrong-code problem.
daira added the
r/fixed
label 2010-11-14 03:33:46 +00:00
daira closed this issue 2010-11-14 03:33:46 +00:00
Author

This (the testing-wrong-code problem) might be a duplicate of the remaining issue in #1246. Anyway, the new ticket for it is #1258.

This (the testing-wrong-code problem) might be a duplicate of the remaining issue in #1246. Anyway, the new ticket for it is #1258.
Sign in to join this conversation.
No labels
c/code
c/code-dirnodes
c/code-encoding
c/code-frontend
c/code-frontend-cli
c/code-frontend-ftp-sftp
c/code-frontend-magic-folder
c/code-frontend-web
c/code-mutable
c/code-network
c/code-nodeadmin
c/code-peerselection
c/code-storage
c/contrib
c/dev-infrastructure
c/docs
c/operational
c/packaging
c/unknown
c/website
kw:2pc
kw:410
kw:9p
kw:ActivePerl
kw:AttributeError
kw:DataUnavailable
kw:DeadReferenceError
kw:DoS
kw:FileZilla
kw:GetLastError
kw:IFinishableConsumer
kw:K
kw:LeastAuthority
kw:Makefile
kw:RIStorageServer
kw:StringIO
kw:UncoordinatedWriteError
kw:about
kw:access
kw:access-control
kw:accessibility
kw:accounting
kw:accounting-crawler
kw:add-only
kw:aes
kw:aesthetics
kw:alias
kw:aliases
kw:aliens
kw:allmydata
kw:amazon
kw:ambient
kw:annotations
kw:anonymity
kw:anonymous
kw:anti-censorship
kw:api_auth_token
kw:appearance
kw:appname
kw:apport
kw:archive
kw:archlinux
kw:argparse
kw:arm
kw:assertion
kw:attachment
kw:auth
kw:authentication
kw:automation
kw:avahi
kw:availability
kw:aws
kw:azure
kw:backend
kw:backoff
kw:backup
kw:backupdb
kw:backward-compatibility
kw:bandwidth
kw:basedir
kw:bayes
kw:bbfreeze
kw:beta
kw:binaries
kw:binutils
kw:bitcoin
kw:bitrot
kw:blacklist
kw:blocker
kw:blocks-cloud-deployment
kw:blocks-cloud-merge
kw:blocks-magic-folder-merge
kw:blocks-merge
kw:blocks-raic
kw:blocks-release
kw:blog
kw:bom
kw:bonjour
kw:branch
kw:branding
kw:breadcrumbs
kw:brians-opinion-needed
kw:browser
kw:bsd
kw:build
kw:build-helpers
kw:buildbot
kw:builders
kw:buildslave
kw:buildslaves
kw:cache
kw:cap
kw:capleak
kw:captcha
kw:cast
kw:centos
kw:cffi
kw:chacha
kw:charset
kw:check
kw:checker
kw:chroot
kw:ci
kw:clean
kw:cleanup
kw:cli
kw:cloud
kw:cloud-backend
kw:cmdline
kw:code
kw:code-checks
kw:coding-standards
kw:coding-tools
kw:coding_tools
kw:collection
kw:compatibility
kw:completion
kw:compression
kw:confidentiality
kw:config
kw:configuration
kw:configuration.txt
kw:conflict
kw:connection
kw:connectivity
kw:consistency
kw:content
kw:control
kw:control.furl
kw:convergence
kw:coordination
kw:copyright
kw:corruption
kw:cors
kw:cost
kw:coverage
kw:coveralls
kw:coveralls.io
kw:cpu-watcher
kw:cpyext
kw:crash
kw:crawler
kw:crawlers
kw:create-container
kw:cruft
kw:crypto
kw:cryptography
kw:cryptography-lib
kw:cryptopp
kw:csp
kw:curl
kw:cutoff-date
kw:cycle
kw:cygwin
kw:d3
kw:daemon
kw:darcs
kw:darcsver
kw:database
kw:dataloss
kw:db
kw:dead-code
kw:deb
kw:debian
kw:debug
kw:deep-check
kw:defaults
kw:deferred
kw:delete
kw:deletion
kw:denial-of-service
kw:dependency
kw:deployment
kw:deprecation
kw:desert-island
kw:desert-island-build
kw:design
kw:design-review-needed
kw:detection
kw:dev-infrastructure
kw:devpay
kw:directory
kw:directory-page
kw:dirnode
kw:dirnodes
kw:disconnect
kw:discovery
kw:disk
kw:disk-backend
kw:distribute
kw:distutils
kw:dns
kw:do_http
kw:doc-needed
kw:docker
kw:docs
kw:docs-needed
kw:dokan
kw:dos
kw:download
kw:downloader
kw:dragonfly
kw:drop-upload
kw:duplicity
kw:dusty
kw:earth-dragon
kw:easy
kw:ec2
kw:ecdsa
kw:ed25519
kw:egg-needed
kw:eggs
kw:eliot
kw:email
kw:empty
kw:encoding
kw:endpoint
kw:enterprise
kw:enum34
kw:environment
kw:erasure
kw:erasure-coding
kw:error
kw:escaping
kw:etag
kw:etch
kw:evangelism
kw:eventual
kw:example
kw:excess-authority
kw:exec
kw:exocet
kw:expiration
kw:extensibility
kw:extension
kw:failure
kw:fedora
kw:ffp
kw:fhs
kw:figleaf
kw:file
kw:file-descriptor
kw:filename
kw:filesystem
kw:fileutil
kw:fips
kw:firewall
kw:first
kw:floatingpoint
kw:flog
kw:foolscap
kw:forward-compatibility
kw:forward-secrecy
kw:forwarding
kw:free
kw:freebsd
kw:frontend
kw:fsevents
kw:ftp
kw:ftpd
kw:full
kw:furl
kw:fuse
kw:garbage
kw:garbage-collection
kw:gateway
kw:gatherer
kw:gc
kw:gcc
kw:gentoo
kw:get
kw:git
kw:git-annex
kw:github
kw:glacier
kw:globalcaps
kw:glossary
kw:google-cloud-storage
kw:google-drive-backend
kw:gossip
kw:governance
kw:grid
kw:grid-manager
kw:gridid
kw:gridsync
kw:grsec
kw:gsoc
kw:gvfs
kw:hackfest
kw:hacktahoe
kw:hang
kw:hardlink
kw:heartbleed
kw:heisenbug
kw:help
kw:helper
kw:hint
kw:hooks
kw:how
kw:how-to
kw:howto
kw:hp
kw:hp-cloud
kw:html
kw:http
kw:https
kw:i18n
kw:i2p
kw:i2p-collab
kw:illustration
kw:image
kw:immutable
kw:impressions
kw:incentives
kw:incident
kw:init
kw:inlineCallbacks
kw:inotify
kw:install
kw:installer
kw:integration
kw:integration-test
kw:integrity
kw:interactive
kw:interface
kw:interfaces
kw:interoperability
kw:interstellar-exploration
kw:introducer
kw:introduction
kw:iphone
kw:ipkg
kw:iputil
kw:ipv6
kw:irc
kw:jail
kw:javascript
kw:joke
kw:jquery
kw:json
kw:jsui
kw:junk
kw:key-value-store
kw:kfreebsd
kw:known-issue
kw:konqueror
kw:kpreid
kw:kvm
kw:l10n
kw:lae
kw:large
kw:latency
kw:leak
kw:leasedb
kw:leases
kw:libgmp
kw:license
kw:licenss
kw:linecount
kw:link
kw:linux
kw:lit
kw:localhost
kw:location
kw:locking
kw:logging
kw:logo
kw:loopback
kw:lucid
kw:mac
kw:macintosh
kw:magic-folder
kw:manhole
kw:manifest
kw:manual-test-needed
kw:map
kw:mapupdate
kw:max_space
kw:mdmf
kw:memcheck
kw:memory
kw:memory-leak
kw:mesh
kw:metadata
kw:meter
kw:migration
kw:mime
kw:mingw
kw:minimal
kw:misc
kw:miscapture
kw:mlp
kw:mock
kw:more-info-needed
kw:mountain-lion
kw:move
kw:multi-users
kw:multiple
kw:multiuser-gateway
kw:munin
kw:music
kw:mutability
kw:mutable
kw:mystery
kw:names
kw:naming
kw:nas
kw:navigation
kw:needs-review
kw:needs-spawn
kw:netbsd
kw:network
kw:nevow
kw:new-user
kw:newcaps
kw:news
kw:news-done
kw:news-needed
kw:newsletter
kw:newurls
kw:nfc
kw:nginx
kw:nixos
kw:no-clobber
kw:node
kw:node-url
kw:notification
kw:notifyOnDisconnect
kw:nsa310
kw:nsa320
kw:nsa325
kw:numpy
kw:objects
kw:old
kw:openbsd
kw:openitp-packaging
kw:openssl
kw:openstack
kw:opensuse
kw:operation-helpers
kw:operational
kw:operations
kw:ophandle
kw:ophandles
kw:ops
kw:optimization
kw:optional
kw:options
kw:organization
kw:os
kw:os.abort
kw:ostrom
kw:osx
kw:osxfuse
kw:otf-magic-folder-objective1
kw:otf-magic-folder-objective2
kw:otf-magic-folder-objective3
kw:otf-magic-folder-objective4
kw:otf-magic-folder-objective5
kw:otf-magic-folder-objective6
kw:p2p
kw:packaging
kw:partial
kw:password
kw:path
kw:paths
kw:pause
kw:peer-selection
kw:performance
kw:permalink
kw:permissions
kw:persistence
kw:phone
kw:pickle
kw:pip
kw:pipermail
kw:pkg_resources
kw:placement
kw:planning
kw:policy
kw:port
kw:portability
kw:portal
kw:posthook
kw:pratchett
kw:preformance
kw:preservation
kw:privacy
kw:process
kw:profile
kw:profiling
kw:progress
kw:proxy
kw:publish
kw:pyOpenSSL
kw:pyasn1
kw:pycparser
kw:pycrypto
kw:pycrypto-lib
kw:pycryptopp
kw:pyfilesystem
kw:pyflakes
kw:pylint
kw:pypi
kw:pypy
kw:pysqlite
kw:python
kw:python3
kw:pythonpath
kw:pyutil
kw:pywin32
kw:quickstart
kw:quiet
kw:quotas
kw:quoting
kw:raic
kw:rainhill
kw:random
kw:random-access
kw:range
kw:raspberry-pi
kw:reactor
kw:readonly
kw:rebalancing
kw:recovery
kw:recursive
kw:redhat
kw:redirect
kw:redressing
kw:refactor
kw:referer
kw:referrer
kw:regression
kw:rekey
kw:relay
kw:release
kw:release-blocker
kw:reliability
kw:relnotes
kw:remote
kw:removable
kw:removable-disk
kw:rename
kw:renew
kw:repair
kw:replace
kw:report
kw:repository
kw:research
kw:reserved_space
kw:response-needed
kw:response-time
kw:restore
kw:retrieve
kw:retry
kw:review
kw:review-needed
kw:reviewed
kw:revocation
kw:roadmap
kw:rollback
kw:rpm
kw:rsa
kw:rss
kw:rst
kw:rsync
kw:rusty
kw:s3
kw:s3-backend
kw:s3-frontend
kw:s4
kw:same-origin
kw:sandbox
kw:scalability
kw:scaling
kw:scheduling
kw:schema
kw:scheme
kw:scp
kw:scripts
kw:sdist
kw:sdmf
kw:security
kw:self-contained
kw:server
kw:servermap
kw:servers-of-happiness
kw:service
kw:setup
kw:setup.py
kw:setup_requires
kw:setuptools
kw:setuptools_darcs
kw:sftp
kw:shared
kw:shareset
kw:shell
kw:signals
kw:simultaneous
kw:six
kw:size
kw:slackware
kw:slashes
kw:smb
kw:sneakernet
kw:snowleopard
kw:socket
kw:solaris
kw:space
kw:space-efficiency
kw:spam
kw:spec
kw:speed
kw:sqlite
kw:ssh
kw:ssh-keygen
kw:sshfs
kw:ssl
kw:stability
kw:standards
kw:start
kw:startup
kw:static
kw:static-analysis
kw:statistics
kw:stats
kw:stats_gatherer
kw:status
kw:stdeb
kw:storage
kw:streaming
kw:strports
kw:style
kw:stylesheet
kw:subprocess
kw:sumo
kw:survey
kw:svg
kw:symlink
kw:synchronous
kw:tac
kw:tahoe-*
kw:tahoe-add-alias
kw:tahoe-admin
kw:tahoe-archive
kw:tahoe-backup
kw:tahoe-check
kw:tahoe-cp
kw:tahoe-create-alias
kw:tahoe-create-introducer
kw:tahoe-debug
kw:tahoe-deep-check
kw:tahoe-deepcheck
kw:tahoe-lafs-trac-stream
kw:tahoe-list-aliases
kw:tahoe-ls
kw:tahoe-magic-folder
kw:tahoe-manifest
kw:tahoe-mkdir
kw:tahoe-mount
kw:tahoe-mv
kw:tahoe-put
kw:tahoe-restart
kw:tahoe-rm
kw:tahoe-run
kw:tahoe-start
kw:tahoe-stats
kw:tahoe-unlink
kw:tahoe-webopen
kw:tahoe.css
kw:tahoe_files
kw:tahoewapi
kw:tarball
kw:tarballs
kw:tempfile
kw:templates
kw:terminology
kw:test
kw:test-and-set
kw:test-from-egg
kw:test-needed
kw:testgrid
kw:testing
kw:tests
kw:throttling
kw:ticket999-s3-backend
kw:tiddly
kw:time
kw:timeout
kw:timing
kw:to
kw:to-be-closed-on-2011-08-01
kw:tor
kw:tor-protocol
kw:torsocks
kw:tox
kw:trac
kw:transparency
kw:travis
kw:travis-ci
kw:trial
kw:trickle
kw:trivial
kw:truckee
kw:tub
kw:tub.location
kw:twine
kw:twistd
kw:twistd.log
kw:twisted
kw:twisted-14
kw:twisted-trial
kw:twitter
kw:twn
kw:txaws
kw:type
kw:typeerror
kw:ubuntu
kw:ucwe
kw:ueb
kw:ui
kw:unclean
kw:uncoordinated-writes
kw:undeletable
kw:unfinished-business
kw:unhandled-error
kw:unhappy
kw:unicode
kw:unit
kw:unix
kw:unlink
kw:update
kw:upgrade
kw:upload
kw:upload-helper
kw:uri
kw:url
kw:usability
kw:use-case
kw:utf-8
kw:util
kw:uwsgi
kw:ux
kw:validation
kw:variables
kw:vdrive
kw:verify
kw:verlib
kw:version
kw:versioning
kw:versions
kw:video
kw:virtualbox
kw:virtualenv
kw:vista
kw:visualization
kw:visualizer
kw:vm
kw:volunteergrid2
kw:volunteers
kw:vpn
kw:wapi
kw:warners-opinion-needed
kw:warning
kw:weapi
kw:web
kw:web.port
kw:webapi
kw:webdav
kw:webdrive
kw:webport
kw:websec
kw:website
kw:websocket
kw:welcome
kw:welcome-page
kw:welcomepage
kw:wiki
kw:win32
kw:win64
kw:windows
kw:windows-related
kw:winscp
kw:workaround
kw:world-domination
kw:wrapper
kw:write-enabler
kw:wui
kw:x86
kw:x86-64
kw:xhtml
kw:xml
kw:xss
kw:zbase32
kw:zetuptoolz
kw:zfec
kw:zookos-opinion-needed
kw:zope
kw:zope.interface
p/blocker
p/critical
p/major
p/minor
p/normal
p/supercritical
p/trivial
r/cannot reproduce
r/duplicate
r/fixed
r/invalid
r/somebody else's problem
r/was already fixed
r/wontfix
r/worksforme
t/defect
t/enhancement
t/task
v/0.2.0
v/0.3.0
v/0.4.0
v/0.5.0
v/0.5.1
v/0.6.0
v/0.6.1
v/0.7.0
v/0.8.0
v/0.9.0
v/1.0.0
v/1.1.0
v/1.10.0
v/1.10.1
v/1.10.2
v/1.10a2
v/1.11.0
v/1.12.0
v/1.12.1
v/1.13.0
v/1.14.0
v/1.15.0
v/1.15.1
v/1.2.0
v/1.3.0
v/1.4.1
v/1.5.0
v/1.6.0
v/1.6.1
v/1.7.0
v/1.7.1
v/1.7β
v/1.8.0
v/1.8.1
v/1.8.2
v/1.8.3
v/1.8β
v/1.9.0
v/1.9.0-s3branch
v/1.9.0a1
v/1.9.0a2
v/1.9.0b1
v/1.9.1
v/1.9.2
v/1.9.2a1
v/cloud-branch
v/unknown
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac#1253
No description provided.