cht-core icon indicating copy to clipboard operation
cht-core copied to clipboard

CouchDb `/_utils` faulty redirect

Open dianabarsan opened this issue 2 years ago • 2 comments

Describe the issue Using self hosted 4.0 docker setup, accessing Fauxton through https://localhost/_utils will redirect to https://_/_utils/. Using https://localhost/_utils/ works as expected. This looks like it's a CouchDb internal redirect that doesn't match the host name correctly.

Describe the improvement you'd like Fix the redirect, so Fauxton is accessible with or without the trailing slash.

Describe alternatives you've considered Worse case scenario, we implement a redirect directly in the API router.

dianabarsan avatar Sep 22 '22 10:09 dianabarsan

I think this is the same as https://github.com/medic/cht-core/issues/7504 but happening on the new architecture.

dianabarsan avatar Sep 22 '22 10:09 dianabarsan

This is ready for AT on 7815-no-server-name.

dianabarsan avatar Sep 22 '22 20:09 dianabarsan

Environment: Local with docker Platform: WebApp Browser: Chrome


Reproducible on Master

Video attached:

video

Fixed on 7815-no-server-name

Video attached:

video

tatilepizs avatar Sep 27 '22 15:09 tatilepizs

Merged into master.

dianabarsan avatar Sep 28 '22 06:09 dianabarsan