Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix behavior on nginx #704

Open
isc-tleavitt opened this issue Jan 31, 2025 · 0 comments
Open

Fix behavior on nginx #704

isc-tleavitt opened this issue Jan 31, 2025 · 0 comments

Comments

@isc-tleavitt
Copy link
Collaborator

isc-tleavitt commented Jan 31, 2025

From separate internal investigation (internal ref: DP-437290):

The Git Source Control module uses a CGI variable of REQUEST_URI during URL parsing / construction.

Relevant code in webuidriver.csp:
Set url = $Piece($Get(%request.CgiEnvs("REQUEST_URI"),$Get(%request.CgiEnvs("HTTP_URL"))),"?")

However, traffic from the Nginx web gateway does not come with this variable and causes "Set url" to an empty string and the malformed URL mentioned in the customer's description. (i.e. this variable is good with Apache, not Nginx).

For a workaround for Nginx users, adding this line of code right after the above one fixes the issue.
Set:(url="") url = %request.URL _ %request.CgiEnvs("PATH_INFO")

@isc-tleavitt isc-tleavitt added bug Something isn't working and removed bug Something isn't working labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant