#1414 new defect

tahoe get on DIR2 URIs fails with error message that is too terse

Reported by: gdt Owned by: daira
Priority: minor Milestone: eventually
Component: code-frontend Version: 1.8.2
Keywords: usability error Cc:
Launchpad Bug:

Description (last modified by daira)

When doing 'tahoe get' and giving a directory URI, I get "302 Found" instead of the bits. Changing DIR2 to SSK gets me bits. There's no good reason not to return the directory contents; 'cat .' on at least BSD shows the bits in the directory. While most people don't want to look ever, and the rest only want to look once in a while, being able to understand directories is key to a deep understanding of how access control works.

Further, the writecaps should be decrypted when the directory is fetched with a writecap.

Change History (7)

comment:1 Changed at 2011-06-04T21:12:52Z by davidsarah

I don't think that BSD cat showing the bits is a good argument for tahoe get (or the corresponding web-API request) to do so. Conceptually, the SSK URI refers to the bits, and the DIR2 URI refers to the directory interpretation. In Unix the same pathname is used to refer to both. So it makes sense that in Tahoe, a command that fetches file contents would succeed for the SSK URI and fail for the DIR2 URI.

Since you can see the bits by using the SSK URI, there's no loss of functionality in the current behaviour. So I'm inclined to "wontfix" this.

Further, the writecaps should be decrypted when the directory is fetched with a writecap.

I completely disagree; that would be effectively creating a new directory format that is not the stored format, which seems overcomplicated and unlikely to lead to better understanding.

comment:2 Changed at 2011-06-04T21:14:19Z by davidsarah

  • Component changed from code-frontend-cli to code-frontend
  • Summary changed from tahoe get on DIR2 URis fails to tahoe get on DIR2 URIs fails

comment:3 Changed at 2011-08-26T21:38:49Z by davidsarah

  • Resolution set to wontfix
  • Status changed from new to closed

comment:4 Changed at 2011-08-26T21:42:04Z by davidsarah

  • Keywords error added
  • Milestone changed from undecided to soon
  • Resolution wontfix deleted
  • Status changed from closed to reopened
  • Summary changed from tahoe get on DIR2 URIs fails to tahoe get on DIR2 URIs fails with error message that is too terse

Reopening to fix the error message, which is just:

Error during GET: 302 Found

comment:5 Changed at 2012-04-01T04:55:25Z by davidsarah

  • Milestone changed from soon to 1.11.0
  • Owner set to davidsarah
  • Status changed from reopened to new

comment:6 Changed at 2012-04-01T04:55:37Z by davidsarah

  • Status changed from new to assigned

comment:7 Changed at 2014-12-03T01:08:49Z by daira

  • Description modified (diff)
  • Milestone changed from soon to eventually
  • Owner changed from davidsarah to daira
  • Status changed from assigned to new
Note: See TracTickets for help on using tickets.