maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Boué (JIRA) <j...@apache.org>
Subject [jira] [Closed] (MJAVADOC-532) <link> entries that do not redirect are ignored
Date Thu, 09 Aug 2018 18:03:00 GMT

     [ https://issues.apache.org/jira/browse/MJAVADOC-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Boué closed MJAVADOC-532.
-----------------------------------
       Resolution: Fixed
         Assignee: Guillaume Boué
    Fix Version/s: 3.0.2

> <link> entries that do not redirect are ignored
> -----------------------------------------------
>
>                 Key: MJAVADOC-532
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-532
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.1
>            Reporter: Andy Wilkinson
>            Assignee: Guillaume Boué
>            Priority: Major
>             Fix For: 3.0.2
>
>
> If the URL included in a <link> entry does not redirect, the entry is ignored.
This appears to happen due to a bug in {{JavadocUtil.getRedirectUrl}} which results in a {{NullPointerException}}
being thrown for URLs that do not redirect.
> At the time of writing, you can reproduce the problem with the following code:
> {code:java}
> package org.apache.maven.plugins.javadoc;
> import java.io.IOException;
> import java.net.MalformedURLException;
> import java.net.URI;
> public class JavadocRedirectBug {
> 	public static void main(String[] args) throws MalformedURLException, IOException {
> 		JavadocUtil.getRedirectUrl(URI.create("https://docs.oracle.com/javase/8/docs/api/").toURL(),
null);
> 	}
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message