webapi.rst fails to document /file/ and /named/ handlers #1662
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#1662
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[This issue affects both the 1.9.0 and 1.9.1 source releases.]Note:
Symptom: I see browser requests for "GET /file/..." but when I grep for '/file' in webapi.rst I see no hits. I have also looked at every hit for "grep -i file" to verify this url path is not mentioned in webapi.rst.
Resolution: Update webapi.rst to describe /file/ urls.
Related Info: It looks as if /file/ may do something similar to /named/ or one may be an older backwards-compatible version of the same feature. If so, clearly document this. If the functional overlap is large and there's no compatibility requirement, we should file a new ticket to remove one of them. If the functionality partially overlaps but is distinct, webapi.rst should make the distinction clear.
Background: I am configuring access control policies based on HTTP method and path for a read-only gateway, so I want webapi.rst to tell me everything necessary for my usecase.
In fact, as I continue reading webapi.rst I see the "Other Useful Pages" section begins by saying:
This is misleading in the face of /file/ requests.
Analyzing the url namespace (see #1663) shows that
/named
and/file
are handled by different instances of the same class. Unless that code switches logic based on this path segment, the two URL segments are synonymous.If so, then in webapi.rst where
/named
is first mentioned, a short note saying "URLs may also use/file/...
as a synonym for/named/...
would close this ticket.webapi.rst fails to mention /file/ handler.to webapi.rst fails to document /file/ and /named/ handlersI can take this one if no one else wants it.
Attachment ticket-1662.patch (833 bytes) added
Adds info on /file
This patch should resolve this ticket as /file and /named are synonyms. Thanks to Brian Warner for assistance with this ticket. The patch is also available as pull request 4 from antagonismorg on Github.
The WUI uses (that is, includes in directory listings)
/file
links but not/named
links, I think. So should the [description in webapi.rst]source:docs/frontends/webapi.rst@5479#viewing-downloading-a-file be of/file
with/named
described as the synonym?Landed in changeset:589179cf. Thanks!