Hi,I installed login-redirect on Gerrit 3.6. It properly redirects to login page while accessing the change page like <site>/12234.But now it's not possible to clone anonymously over HTTPS:
$ git clone https://gerrit.<site>.com/project
Cloning into 'project'...
fatal: unable to update url base from redirection:
asked for: https://gerrit.<site>.com/project/info/refs?service=git-upload-pack
redirect: https://gerrit.<site>.com/login/%2Fproject%2Finfo%2Frefs%3Fservice%3Dgit-upload-packI found filter [1], so git clone doesn't work by plugin design. Could you confirm that?
On Saturday, 17 September 2022 at 19:10:40 UTC+2 @gmail.com wrote:Hi,I installed login-redirect on Gerrit 3.6. It properly redirects to login page while accessing the change page like <site>/12234.But now it's not possible to clone anonymously over HTTPS:
$ git clone https://gerrit.<site>.com/project
Cloning into 'project'...
fatal: unable to update url base from redirection:
asked for: https://gerrit.<site>.com/project/info/refs?service=git-upload-pack
redirect: https://gerrit.<site>.com/login/%2Fproject%2Finfo%2Frefs%3Fservice%3Dgit-upload-packI found filter [1], so git clone doesn't work by plugin design. Could you confirm that?
login-redirect was designed for instances without any anonymous access, AFAIK, so yes.You could possibly fork it to allow clones, but I am not sure why you would need login-redirect if you allow anonymous access?

воскресенье, 18 сентября 2022 г. в 14:35:14 UTC+3, Rikard Almgren:On Saturday, 17 September 2022 at 19:10:40 UTC+2 @gmail.com wrote:Hi,I installed login-redirect on Gerrit 3.6. It properly redirects to login page while accessing the change page like <site>/12234.But now it's not possible to clone anonymously over HTTPS:
$ git clone https://gerrit.<site>.com/project
Cloning into 'project'...
fatal: unable to update url base from redirection:
asked for: https://gerrit.<site>.com/project/info/refs?service=git-upload-pack
redirect: https://gerrit.<site>.com/login/%2Fproject%2Finfo%2Frefs%3Fservice%3Dgit-upload-packI found filter [1], so git clone doesn't work by plugin design. Could you confirm that?
login-redirect was designed for instances without any anonymous access, AFAIK, so yes.You could possibly fork it to allow clones, but I am not sure why you would need login-redirect if you allow anonymous access?When an unauthenticated user visits link like <site>/12345 gerrit returns page with confusing "Not found"..Only in that case I would prefer to redirect user for login page.