nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2349) urlnormalizer-basic NPE for ill-formed URL "http:/"
Date Wed, 01 Feb 2017 11:43:51 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15848273#comment-15848273
] 

Hudson commented on NUTCH-2349:
-------------------------------

SUCCESS: Integrated in Jenkins build Nutch-nutchgora #1581 (See [https://builds.apache.org/job/Nutch-nutchgora/1581/])
NUTCH-2349 urlnormalizer-basic: NPE for URLs without authority - check (snagel: rev 700857d16c9e1517ddb9868ed41171d91e5c9116)
* (edit) src/plugin/urlnormalizer-basic/src/java/org/apache/nutch/net/urlnormalizer/basic/BasicURLNormalizer.java
* (edit) src/plugin/urlnormalizer-basic/src/test/org/apache/nutch/net/urlnormalizer/basic/TestBasicURLNormalizer.java


> urlnormalizer-basic NPE for ill-formed URL "http:/"
> ---------------------------------------------------
>
>                 Key: NUTCH-2349
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2349
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.4, 1.13
>            Reporter: Sebastian Nagel
>            Assignee: Sebastian Nagel
>             Fix For: 2.4, 1.13
>
>
> NUTCH-2337 introduced a potential (though rare) NullPointerException when an ill-formed
URL (just the protocol followed by "{{:}}", "{{:/}}", "{{:////}}" or even more slashes):
> {noformat}
> % echo "http://///" \
>   | runtime/local/bin/nutch org.apache.nutch.net.URLNormalizerChecker \
>      -normalizer org.apache.nutch.net.urlnormalizer.basic.BasicURLNormalizer 
> Checking URLNormalizer org.apache.nutch.net.urlnormalizer.basic.BasicURLNormalizer
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.nutch.net.urlnormalizer.basic.BasicURLNormalizer.normalize(BasicURLNormalizer.java:120)
>         at org.apache.nutch.net.URLNormalizerChecker.checkOne(URLNormalizerChecker.java:72)
>         at org.apache.nutch.net.URLNormalizerChecker.main(URLNormalizerChecker.java:110)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message