Opened at 2010-06-28T22:20:12Z
Last modified at 2010-06-28T22:34:39Z
#1102 new defect
"tahoe ls $DIRCAP:" gives an unhelpful error message
Reported by: | zooko | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | undecided |
Component: | code-frontend-cli | Version: | 1.7.0 |
Keywords: | usability | Cc: | |
Launchpad Bug: |
Description
$ tahoe ls --node-url=http://127.0.0.1:3456 URI:DIR2-RO:ixqhc4kdbjxc7o65xjnveoewym:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq: This listing included unknown objects. Using a webapi server that supports a later version of Tahoe may help.
But I'm pretty sure none of these are of an unknown type:
$ wget http://127.0.0.1:3456/uri/URI:DIR2-RO:ixqhc4kdbjxc7o65xjnveoewym:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq?t=json --2010-06-28 16:07:00-- http://127.0.0.1:3456/uri/URI:DIR2-RO:ixqhc4kdbjxc7o65xjnveoewym:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq?t=json Connecting to 127.0.0.1:3456... connected. HTTP request sent, awaiting response... 200 OK Length: 2387 (2.3K) [text/plain] Saving to: `URI:DIR2-RO:ixqhc4kdbjxc7o65xjnveoewym:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq?t=json' 100%[=================================================================================================================================================================================================================================================>] 2,387 --.-K/s in 0s 2010-06-28 16:07:00 (134 MB/s) - `URI:DIR2-RO:ixqhc4kdbjxc7o65xjnveoewym:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq?t=json' saved [2387/2387] $ cat URI\:DIR2-RO\:ixqhc4kdbjxc7o65xjnveoewym\:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq\?t\=json [ "dirnode", { "mutable": true, "verify_uri": "URI:DIR2-Verifier:up4mutkj52kcm2l7c7nvg5j2ua:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq", "ro_uri": "URI:DIR2-RO:ixqhc4kdbjxc7o65xjnveoewym:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq", "children": { "blog.html": [ "filenode", { "mutable": false, "verify_uri": "URI:CHK-Verifier:sfj52jkyhsftzyyxilfim6xmym:kkq52h7qtpbik5ntnlyquav5zjkjkts75s363mfdeln4zai3rtra:3:10:879898", "metadata": { "ctime": 1276314330.3699679, "tahoe": { "linkmotime": 1276930797.003685, "linkcrtime": 1276314330.3699679 }, "mtime": 1276930797.003685 }, "ro_uri": "URI:CHK:zbpnvck52z2fgcfibi6pn2zicu:kkq52h7qtpbik5ntnlyquav5zjkjkts75s363mfdeln4zai3rtra:3:10:879898", "size": 879898 } ], "blog.xml": [ "filenode", { "mutable": false, "verify_uri": "URI:CHK-Verifier:7zvi2unds7f3va4rtw73o5swkm:zu3qeccvprrcple62v5y3bizw3tyvntyaaofbexdfe6n3rswh5xq:3:10:160974", "metadata": { "ctime": 1276321880.711781, "tahoe": { "linkmotime": 1276930804.317924, "linkcrtime": 1276321880.711781 }, "mtime": 1276930804.317924 }, "ro_uri": "URI:CHK:osbkcvisbguz3ubsnuu5sgi6ce:zu3qeccvprrcple62v5y3bizw3tyvntyaaofbexdfe6n3rswh5xq:3:10:160974", "size": 160974 } ], "empty.html": [ "filenode", { "mutable": false, "verify_uri": "URI:CHK-Verifier:kcaaqqfnowi3bw6evcvddf5aky:lhpysn56vizu5wh2kdxlpx6z3ldnterj56iafcl34ecblsjgv25q:3:10:350104", "metadata": { "ctime": 1276321895.8413761, "tahoe": { "linkmotime": 1276930796.3684981, "linkcrtime": 1276321895.8413761 }, "mtime": 1276930796.3684981 }, "ro_uri": "URI:CHK:bmvi4ve52rf6sbdzub4hih4adu:lhpysn56vizu5wh2kdxlpx6z3ldnterj56iafcl34ecblsjgv25q:3:10:350104", "size": 350104 } ], "papers": [ "dirnode", { "mutable": true, "verify_uri": "URI:DIR2-Verifier:jfdpm73azl6fxsbacqiwh7l5du:gvgho7fbigyozouzu4n2phnto5dxnubczgiibemenhcjtc4iegba", "ro_uri": "URI:DIR2-RO:gjzs76gqcbcbwpw3p2taj2nzb4:gvgho7fbigyozouzu4n2phnto5dxnubczgiibemenhcjtc4iegba", "metadata": { "tahoe": { "linkmotime": 1277762016.7937951, "linkcrtime": 1277762016.7937951 } } } ] } } ] $ tahoe --version allmydata-tahoe: 1.6.1-r4510, foolscap: 0.5.1, pycryptopp: 0.5.17, zfec: 1.4.5, Twisted: 10.0.0, Nevow: 0.10.0, zope.interface: 3.5.1, python: 2.6.1, platform: Darwin-10.4.0-i386-64bit, sqlite: 3.6.12, simplejson: 2.1.1, distribute: 0.6.13, argparse: 1.1, pycrypto: 2.0.1, pyOpenSSL: 0.7, pyutil: 1.7.8-2, zbase32: 1.1.2, setuptools: 0.6, pyasn1: 0.0.11a, pysqlite: 2.4.1
Change History (1)
comment:1 Changed at 2010-06-28T22:34:39Z by zooko
- Summary changed from "tahoe ls $DIRCAP" says the listing includes unknown objects to "tahoe ls $DIRCAP:" gives an unhelpful error message
Note: See
TracTickets for help on using
tickets.
Oh, I see that I'm supposed to not append a trailing : to the dircap. (I guess I was thinking of it as being like an SSH address with the dircap as being like the remote host identifier and the path as being like the path-within-that-remote-host part.)
To fix this ticket, make it give a nice helpful error message in this case.