Changes between Initial Version and Version 2 of Ticket #124


Ignore:
Timestamp:
2007-08-24T15:47:31Z (17 years ago)
Author:
zooko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #124

    • Property Owner changed from nobody to somebody
    • Property Component changed from unknown to code
    • Property Summary changed from poor handling of user error: pasting a dirnode uri into the "get file" field of the wui to exceptions when trying to use dirnode URIs
  • Ticket #124 – Description

    initial v2  
     1poor handling of user error: pasting a dirnode uri into the "get file" field of the wui
     2
    13If you paste a dirnode uri into the "URI of file to download" field, you'll get:
    24
     
    4042            # myFailure = <twisted.python.failure.Failure <type 'exceptions.RuntimeError'>>
    4143}}}
     44
     45Ah, the same thing happens when I paste the dirnode uri into the "URI of new child" field!
     46
     47Here is the twistd.log from that:
     48{{{
     49          File "/Users/wonwinmcbrootles/playground/allmydata/tahoe/instdir/lib/allmydata/dirnode.py", line 282, in set_uri
     50            write, read = self._split_uri(child_uri)
     51            # self = '<allmydata.dirnode.MutableDirectoryNode instance at 0x20e3170>'
     52            # child_uri = "' URI:DIR:pb://xextf3eap44o3wi27mf7ehiur6wvhzr6@207.7.153.180:56677,127.0.0.1:56677/vdrive:y1obs85caz
     53faa8uyd8mb1u8esw'"
     54          File "/Users/wonwinmcbrootles/playground/allmydata/tahoe/instdir/lib/allmydata/dirnode.py", line 306, in _split_uri
     55            u = IURI(child_uri)
     56            # IURI = '<InterfaceClass allmydata.interfaces.IURI>'
     57            # child_uri = "' URI:DIR:pb://xextf3eap44o3wi27mf7ehiur6wvhzr6@207.7.153.180:56677,127.0.0.1:56677/vdrive:y1obs85caz
     58faa8uyd8mb1u8esw'"
     59          File "/lib/python2.5/site-packages/zope/interface/interface.py", line 697, in __call__
     60           
     61          File "/lib/python2.5/site-packages/zope/interface/interface.py", line 765, in __adapt__
     62           
     63          File "/usr/local/stow/Twisted-2.5.0/lib/python2.5/site-packages/twisted/python/components.py", line 113, in _hook
     64            return factory(ob)
     65            # ob = "' URI:DIR:pb://xextf3eap44o3wi27mf7ehiur6wvhzr6@207.7.153.180:56677,127.0.0.1:56677/vdrive:y1obs85cazfaa8uyd
     668mb1u8esw'"
     67          File "/Users/wonwinmcbrootles/playground/allmydata/tahoe/instdir/lib/allmydata/uri.py", line 205, in from_string
     68            raise RuntimeError("unknown URI type: %s.." % s[:10])
     69            # RuntimeError = "<type 'exceptions.RuntimeError'>"
     70            # s = "' URI:DIR:pb://xextf3eap44o3wi27mf7ehiur6wvhzr6@207.7.153.180:56677,127.0.0.1:56677/vdrive:y1obs85cazfaa8uyd8
     71mb1u8esw'"
     72        exceptions.RuntimeError: unknown URI type:  URI:DIR:p..
     73       
     74}}}