Skip to content

NUTCH-3176 URLUtil and urlnormalizer-basic: add support for IDNA2008#914

Open
sebastian-nagel wants to merge 6 commits into
apache:masterfrom
sebastian-nagel:NUTCH-3176-idna2008
Open

NUTCH-3176 URLUtil and urlnormalizer-basic: add support for IDNA2008#914
sebastian-nagel wants to merge 6 commits into
apache:masterfrom
sebastian-nagel:NUTCH-3176-idna2008

Conversation

@sebastian-nagel
Copy link
Copy Markdown
Contributor

  • URLUtil:
    • make IDNA2008 the default for the methods toASCII and toUNICODE
    • provide methods to convert host names both for IDNA2003 and IDNA2008
  • urlnormalizer-basic:
    • convert host names using IDNA2008 if the property urlnormalizer.basic.host.idna2008 is true
  • refactor to share methods between URLUtil and urlnormalizer-basic

- URLUtil:
  - make IDNA2008 the default for the methods toASCII and toUNICODE
  - provide methods to convert host names both for IDNA2003 and IDNA2008
- urlnormalizer-basic:
  - convert host names using IDNA2008 if the property
    urlnormalizer.basic.host.idna2008 is true
- refactor to share methods between URLUtil and urlnormalizer-basic
URLUtil: also convert host if not already lowercased
urlnormalizer-basic: properly set direction of conversion (to ASCII
or to Unicode) if setConf(conf) is called repeatedly
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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