]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
webapi: don't allow ETags in t=info or t=rename-form, both are variable
authorBrian Warner <warner@lothar.com>
Sun, 13 May 2012 07:41:53 +0000 (00:41 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 13 May 2012 07:45:11 +0000 (00:45 -0700)
commit5d404db898e1e6dc334c3d125ea12a34ea58b13f
treec8eb1495c9cd08ade7c7dc88f93846f8d10b0909
parentd437a9b33eca3ba08297f2c8eb1b71e67544e1d8
webapi: don't allow ETags in t=info or t=rename-form, both are variable

t=info contains randomly-generated ophandles, and t=rename-form contains the
name of the child being renamed, so neither is eligible for a
short-circuiting ETag. Enhanced test_web to exercise this. Had to improve
FakeCHKFileNode slightly to let it participate. Refs #443.
src/allmydata/test/common.py
src/allmydata/test/test_web.py
src/allmydata/web/directory.py
src/allmydata/web/filenode.py