Skip to content

URLParser fails if URL contains empty port #5

@sebastian-nagel

Description

@sebastian-nagel

If the port in a URL is empty (e.g., in http://example.com:/) the URLParser throws an exception:

java.net.URISyntaxException: bad port : http://fc-zenit.ru:/news/turnir-pamyati-sadyrina/2010/12/17/odin-iz-chetyrnadcati/
     at org.archive.url.URLParser.parse(URLParser.java:253)
     at org.archive.url.WaybackURLKeyMaker.makeKey(WaybackURLKeyMaker.java:60)

Cf. NUTCH-2337

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions