[tahoe-lafs-trac-stream] [tahoe-lafs] #677: WebAPI: GET /uri/$FILECAP?t=json doesn't return size for mutable files, but the HTML version does
tahoe-lafs
trac at tahoe-lafs.org
Fri Jan 4 03:04:59 UTC 2013
#677: WebAPI: GET /uri/$FILECAP?t=json doesn't return size for mutable files, but
the HTML version does
-----------------------------------+--------------------------------------
Reporter: soult | Owner: davidsarah
Type: defect | Status: assigned
Priority: minor | Milestone: 1.11.0
Component: code-frontend-web | Version: 1.3.0
Resolution: | Keywords: test mutable test-needed
Launchpad Bug: |
-----------------------------------+--------------------------------------
Old description:
> Compare:
> [http://testgrid.allmydata.org:3567/uri/URI%3ADIR2-RO%3Aas2uresriaeed44mvdstfu46je%3Auhtfyxhbdwbp4zpeda5hydccwt4szrx6dxl27xkmswxo7xmbus4a
> /mutable-file?t=info HTML version]
> [http://testgrid.allmydata.org:3567/uri/URI%3ADIR2-RO%3Aas2uresriaeed44mvdstfu46je%3Auhtfyxhbdwbp4zpeda5hydccwt4szrx6dxl27xkmswxo7xmbus4a
> /mutable-file?t=json JSON version]
>
> The JSON version is returning "?" as the file size, while the HTML
> version returns the correct size. This only happens on mutable files.
New description:
Compare:
[http://testgrid.allmydata.org:3567/uri/URI%3ADIR2-RO%3Aas2uresriaeed44mvdstfu46je%3Auhtfyxhbdwbp4zpeda5hydccwt4szrx6dxl27xkmswxo7xmbus4a
/mutable-file?t=info HTML version]
[http://testgrid.allmydata.org:3567/uri/URI%3ADIR2-RO%3Aas2uresriaeed44mvdstfu46je%3Auhtfyxhbdwbp4zpeda5hydccwt4szrx6dxl27xkmswxo7xmbus4a
/mutable-file?t=json JSON version]
The JSON version is returning "?" as the file size, while the HTML version
returns the correct size. This only happens on mutable files.
--
Comment (by davidsarah):
Updated to current trunk (taking into account MDMF) and gitified:
[https://github.com/davidsarah/tahoe-lafs/commits/677-current-size-in-
mutable-json]. Tests still needed.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/677#comment:20>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list