From: matrss Date: Mon, 7 Oct 2024 14:40:19 +0000 (+0000) Subject: (no commit message) X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~17^2~44^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f650627b23a381d2a65089c37404aaf2d05d794a;p=git-annex.git --- 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 index 0000000000..1579664e4c --- /dev/null +++ b/doc/bugs/p2phttp__58___checkpresent_uses_POST__44___but_could_be_GET.mdwn @@ -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) + +