Getting 403 - Forbidden when accessing accounts/self with Basic Auth header

174 views
Skip to first unread message

Sascha Vogt

unread,
Mar 27, 2024, 3:16:03 AM3/27/24
to Repo and Gerrit Discussion
Hi,

I'm currently trying to debug an issue with the VS Code Plugin for Gerrit (https://github.com/SanderRonde/VSCode-Gerrit/) which gets errors during the call to .../accounts/self. 

We host our Gerrit under a path (<host>/r) so the full url is <host>/r/a/accounts/self.

The endpoint works in a authenticated browser or via curl if I supply "--cookie 'GerritAccount=<token>' but not if I send the basic auth header with it. 

We have Gerrit 3.8.2 currently running. Is this a known issue or even "by-design"? Other endpoints below /a work fine with basic auth

Greetings
.sascha

Sascha Vogt

unread,
Apr 15, 2024, 7:02:09 AM4/15/24
to Repo and Gerrit Discussion
Any input on this one? Is this by-design or a bug?

Saša Živkov

unread,
Apr 17, 2024, 7:53:57 AM4/17/24
to Sascha Vogt, Repo and Gerrit Discussion
On Mon, Apr 15, 2024 at 1:02 PM Sascha Vogt <sasch...@gmail.com> wrote:
Any input on this one? Is this by-design or a bug?
This is not by design and this issue is not reproducible, for me at least.
Why don't you set a breakpoint in the filter where the basic auth is performed and see why the error occurs?

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/5238830b-2ac6-46d5-b7e5-00c6e22fa1d1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages