[tahoe-dev] [mm] Another FUSE interface

zooko zooko at zooko.com
Thu May 1 05:04:56 PDT 2008


On May 1, 2008, at 2:09 AM, Ben Laurie wrote:

> Its a drag that these URLs do not survive email very well!

Yes.  We have a scheme to make URLs that are nice and small and don't  
have funny characters like "%" that e-mail agents feel okay breaking  
on.  This scheme involves elliptic curve cryptography.  See ticket #217.

> So, once more, I try to list the directory, and I get:
>
> $ bin/tahoe ls
> --dir-cap=URI:DIR2-RO:pgj2oefhipe2uzulz7kyvyfcbe: 
> 7xoalidet7oignxsnhra77ez7qxh6ro5humhumncabv4cghdkc2q
> http://127.0.0.1:8124/uri/URI%3ADIR2-RO%3Apgj2oefhipe2uzulz7kyvyfcbe 
> %3A7xoalidet7oignxsnhra77ez7qxh6ro5humhumncabv4cghdkc2q/?t=json
> Traceback (most recent call last):
...
>    File
> "/disk1.1/usr/home/ben/darcs-work/tahoe/support/lib/python2.5/site- 
> packages/simplejson-1.7.3-py2.5-freebsd-6.3-STABLE-i386.egg/ 
> simplejson/decoder.py",
> line 251, in decode
>      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>    File
> "/disk1.1/usr/home/ben/darcs-work/tahoe/support/lib/python2.5/site- 
> packages/simplejson-1.7.3-py2.5-freebsd-6.3-STABLE-i386.egg/ 
> simplejson/decoder.py",
> line 270, in raw_decode
>      raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded

Sigh.  This is yet another "shallow" user interface bug.  I just  
created a ticket for it: #401 (command-line: tahoe ls's way of saying  
"No such file or directory" leaves something to be desired).

If you run "bin/tahoe ls --dir-cap=URI:DIR2- 
RO:pgj2oefhipe2uzulz7kyvyfcbe: 
7xoalidet7oignxsnhra77ez7qxh6ro5humhumncabv4cghdkc2q" you will find  
what you seek.

Somebody who loves command-line interfaces and starts closing these  
tickets will be a hero:

http://allmydata.org/trac/tahoe/report/23 # the tickets with  
component = "code-frontend-cli".

(Note: no patches accepted without unit tests and documentation.)

Regards,

Zooko

Tickets mentioned in this e-mail:

http://allmydata.org/trac/tahoe/ticket/217 # DSA-based mutable files  
-- small URLs, fast file creation
http://allmydata.org/trac/tahoe/ticket/401 # command-line: tahoe ls's  
way of saying "No such file or directory" leaves something to be desired


More information about the tahoe-dev mailing list