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

Michael Osipov commented on MLINKCHECK-30:
------------------------------------------

I am somewhat confused what the real issue is? The rediect happens by 
Sourceforce nginx config because of the user agent transmitted by your browser.

>From Firefox:
{noformat}
curl 
"https://downloads.sourceforge.net/project/checkstyle/checkstyle/7.7-SNAPSHOT/checkstyle-7.7-SNAPSHOT-all.jar";
 -H "Host: downloads.sourceforge.net" -H "User-Agent: Mozilla/5.0 (Windows NT 
10.0; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0" -H "Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -H 
"Accept-Language: de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "DNT: 1" 
-H "Upgrade-Insecure-Requests: 1" -H "Connection: keep-alive" -H "Pragma: 
no-cache" -H "Cache-Control: no-cache"
{noformat}

I have found the crappy issue: Doxia Linkcheck, see 
[here|http://maven.apache.org/doxia/doxia-tools/doxia-linkcheck/xref/org/apache/maven/doxia/linkcheck/validation/OnlineHTTPLinkValidator.html#155]:

{code:java}
System.setProperty( HttpMethodParams.USER_AGENT, "Mozilla/4.0 (compatible; MSIE 
6.0; Windows NT 5.0)" );
this.cl.getParams().setParameter( HttpMethodParams.USER_AGENT, "Mozilla/4.0 
(compatible; MSIE 6.0; Windows NT 5.0)" );
{code}

This code is horribly old, Commons HttpClient 3.x...

> https link does not exists and redirected by website to another url 
> --------------------------------------------------------------------
>
>                 Key: MLINKCHECK-30
>                 URL: https://issues.apache.org/jira/browse/MLINKCHECK-30
>             Project: Maven Linkcheck Plugin
>          Issue Type: Bug
>            Reporter: Roman Ivanov
>
> there is 
> during site creation of checkstyle project 
> (https://github.com/checkstyle/checkstyle) - "mvn site"
> there is url - 
> http://downloads.sourceforge.net/project/checkstyle/checkstyle/7.7-SNAPSHOT/checkstyle-7.7-SNAPSHOT-all.jar
> it does not exists on sourceforge, as we publish only released jars,
> http://wheregoes.com/retracer.php for 
> "http://downloads.sourceforge.net/project/checkstyle/checkstyle/7.7-SNAPSHOT/checkstyle-7.7-SNAPSHOT-all.jar";
>  show a problem(404) but in browser this link is redirected to 
> https://sourceforge.net/projects/checkstyle/files/
> Redirections are not allowed in config. Previously validation worked fine so 
> that we have this link in excludes. Now it does not generate a error.



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

Reply via email to