Skip to content

Increase default maxLocaleCount to 20 and complete doc/log updates - #1170

Open
aleksievelizhanin wants to merge 1 commit into
apache:mainfrom
aleksievelizhanin:fix/max-locale-count
Open

aleksievelizhanin wants to merge 1 commit into
apache:mainfrom
aleksievelizhanin:fix/max-locale-count

Conversation

@aleksievelizhanin

@aleksievelizhanin aleksievelizhanin commented Nov 14, 2026 •

Copy link
Copy Markdown

Follow-up to c639c7ef99 and 1665d6b107 after transitioning maxLocaleCount from rejecting requests to ignoring extra locales:

  • Increase the default value of Connector.maxLocaleCount from 10 to 20. Chromium-based browsers (Edge, Chrome) automatically expand each configured regional language (lang-REGION) with its base language fallback (lang), so a user profile with 6 regional languages already sends 11–12 language tags in Accept-Language.
  • Update Connector.getMaxLocaleCount() and Connector.setMaxLocaleCount() Javadocs, which still stated that requests exceeding the limit are rejected.
  • Update Request.maxLocaleCount Javadoc and the parseLocalesHeader() comment (logged instead of rejected).
  • Update coyoteRequest.tooManyLocales in LocalStrings.properties to state that locales beyond the limit have been ignored (consistent with parameters.maxCountFail).
  • Update mbeans-descriptors.xml, http.xml, ajp.xml, changelog.xml, and TestRequest.java to reflect the default of 20.

@aleksievelizhanin aleksievelizhanin changed the title Complete maxLocaleCount documentation and log message updates Increase default maxLocaleCount to 20 and complete doc/log updates Nov 15, 2026
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.

1 participant