(no commit message)
authormatrss <matrss@web>
Mon, 7 Oct 2024 14:40:19 +0000 (14:40 +0000)
committeradmin <admin@branchable.com>
Mon, 7 Oct 2024 14:40:19 +0000 (14:40 +0000)
doc/bugs/p2phttp__58___checkpresent_uses_POST__44___but_could_be_GET.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/p2phttp__58___checkpresent_uses_POST__44___but_could_be_GET.mdwn b/doc/bugs/p2phttp__58___checkpresent_uses_POST__44___but_could_be_GET.mdwn
new file mode 100644 (file)
index 0000000..1579664
--- /dev/null
@@ -0,0 +1,27 @@
+### Please describe the problem.
+
+The checkpresent endpoint (and also less importantly the gettimestamp endpoint) of the p2phttp protocol is specified to use POST, when what it does is really a GET request for the presence information without any mutation of data warranting a POST. In the dumb http realm this function is served by a HEAD request for the file, which is conceptually also a GET, just without the actual data.
+
+In forgejo-aneksajo there is a blanket authentication requiring read permissions for all GETs and write/admin permissions for all POSTs (or anything other than GET, really), so right now I have to special case checkpresent while it would just do the right thing if checkpresent was a GET.
+
+This isn't really a problem, just a bit of an annoyance.
+
+### What steps will reproduce the problem?
+
+
+### What version of git-annex are you using? On what operating system?
+
+
+### Please provide any additional information below.
+
+[[!format sh """
+# If you can, paste a complete transcript of the problem occurring here.
+# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
+
+
+# End of transcript or log.
+"""]]
+
+### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
+
+