wordpress-mobile / wordpress-mobile/WordPress-Utils-Android
isValidUrlAndHostNotNull is not IDN compatible
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 34
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
The UrlUtils.isValidUrlAndHostNotNull() method is reporting false for Internationalized Domain Names (IDN) and that's a false negative. We should revise it to be IDN compatible.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the UrlUtils.isValidUrlAndHostNotNull() entry point and inspect its existing URL validation tests, if present. Reproduce the false negative with an Internationalized Domain Name, then add coverage and verify that valid IDN URLs are accepted without weakening other validation cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100