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

CLDR-16838 Follow-up, new optional CLDR_REDIRECT_PORT in cldr.properties #3389

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

btangmu
Copy link
Member

@btangmu btangmu commented Nov 15, 2023

-Enable running with nginx on port other than default 80, flexibility for testing on local machine

-No change in behavior if CLDR_REDIRECT_PORT not specified

-Property is retrieved only once, then cached for performance

CLDR-16838

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

-Enable running with nginx on port other than default 80, flexibility for testing on local machine

-No change in behavior if CLDR_REDIRECT_PORT not specified

-Property is retrieved only once, then cached for performance
@btangmu btangmu self-assigned this Nov 15, 2023
@btangmu btangmu requested review from srl295 and macchiati November 15, 2023 19:36
Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if needed for debugging

String port = getRedirectPort();
if (port != null) {
String url =
request.getScheme() + "://" + request.getServerName() + ":" + port + where;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do you know what the scheme is?

couldn't this all just pull from CLDR_SURVEY_URL in the settings?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe -- I didn't try that; I figured, like the original code, use the scheme and server name from the existing request, and just fix the port since that's what was broken when using 8888 for nginx

@btangmu btangmu merged commit 209888e into unicode-org:main Nov 23, 2023
10 checks passed
@btangmu btangmu deleted the t16838_g branch November 23, 2023 17:05
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

Successfully merging this pull request may close these issues.

2 participants