linkedin / linkedin/URL-Detector
URL-DETECTOR fails to detect a valid URL
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 785
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Description
Executing the following code Url.create("http://013.xxx/");
is resolved with the following error:
java.net.MalformedURLException: We couldn't find any urls in string: http://013.xxx/
at com.linkedin.urls.Url.create(Url.java:69)
It looks like as if the utility treats the xxx part as invalid ip instead of a valid suffix.
Excepted result:
Url should be created, host should be 013.xxx
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 at Url.create and the Url.java:69 stack-trace location, then reproduce the supplied http://013.xxx/ case to trace why the host is rejected. Done means Url.create succeeds and the resulting URL has host 013.xxx; add or update coverage for this example if the project’s existing tests provide a suitable location.
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
- Clearly specified
- Newbie friendliness
- 45/100