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-14913 Revise VXML generation, further #4017

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

btangmu
Copy link
Member

@btangmu btangmu commented Sep 4, 2024

-Remove obsolete admin-OutputAllFiles.jsp and related dead code

-Shorten and simplify output; do not write strangely colored vxml xml rxml pxml

-Set percent to 100, and status to READY, only if verification is successful

-Use SpecialLocales.getType to skip generating locales such as mul_ZZ; still generate algorithmic locales

-Use Logger instead of System.out; use at least Level.WARNING since Level.INFO is not displayed (for unknown reasons)

-Do not log timing info that depended on deprecated ElapsedTimer

-Fix compiler warnings and accept compiler-suggested refactoring

-TODO comments

CLDR-14913

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

-Remove obsolete admin-OutputAllFiles.jsp and related dead code

-Shorten and simplify output; do not write strangely colored vxml xml rxml pxml

-Set percent to 100, and status to READY, only if verification is successful

-Use SpecialLocales.getType to skip generating locales such as mul_ZZ; still generate algorithmic locales

-Use Logger instead of System.out; use at least Level.WARNING since Level.INFO is not displayed (for unknown reasons)

-Do not log timing info that depended on deprecated ElapsedTimer

-Fix compiler warnings and accept compiler-suggested refactoring

-TODO comments
finalData = true;
if (s.equals(VXML_PREFIX)) {
WebContext ctx = new WebContext(request, response);
response.sendRedirect(ctx.schemeHostPort() + ctx.base() + VXML_PREFIX + "/");

Check warning

Code scanning / CodeQL

URL redirection from remote source Medium

Untrusted URL redirection depends on a
user-provided value
.
Copy link
Member Author

Choose a reason for hiding this comment

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

this code isn't really new with this PR, it's just less indented

also doesn't really seem to depend on a user-provide value, though I'm not sure about that...

ctx.println("<a href='" + ctx.base() + "'>Return to SurveyTool</a><p>");
ctx.close();
} else if (!s.endsWith(XML_SUFFIX)) {
response.sendRedirect(ctx.schemeHostPort() + ctx.base() + RXML_PREFIX + "/");

Check warning

Code scanning / CodeQL

URL redirection from remote source Medium

Untrusted URL redirection depends on a
user-provided value
.
finalData = true;
if (s.equals(TXML_PREFIX)) {
WebContext ctx = new WebContext(request, response);
response.sendRedirect(ctx.schemeHostPort() + ctx.base() + TXML_PREFIX + "/");

Check warning

Code scanning / CodeQL

URL redirection from remote source Medium

Untrusted URL redirection depends on a
user-provided value
.
ctx.close();
} else if (!s.endsWith(XML_SUFFIX)) {
WebContext ctx = new WebContext(request, response);
response.sendRedirect(ctx.schemeHostPort() + ctx.base() + XML_PREFIX + "/");

Check warning

Code scanning / CodeQL

URL redirection from remote source Medium

Untrusted URL redirection depends on a
user-provided value
.
@btangmu btangmu marked this pull request as ready for review September 4, 2024 20:43
@btangmu btangmu requested review from srl295 and macchiati September 4, 2024 20:46
@btangmu btangmu merged commit 7df10d3 into unicode-org:main Sep 5, 2024
13 checks passed
@btangmu btangmu deleted the t14913_g branch September 5, 2024 13:04
haytenf pushed a commit to haytenf/cldr that referenced this pull request Sep 17, 2024
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