You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2006/01/06 19:41:01 UTC
[jira] Closed: (MPJXR-1) xref's misinterpretation of URL causes
linkcheck exception
[ http://jira.codehaus.org/browse/MPJXR-1?page=all ]
Lukas Theussl closed MPJXR-1:
-----------------------------
Resolution: Won't Fix
Brackets are valid characters in URIs [1], it would therefore be difficult to filter them out as delimiters in the present case.
Also according to [1], the recommended way to delimit URIs within plain text is with double-quotes, angle brackets or just white space.
[1] http://www.ietf.org/rfc/rfc2026.txt
> xref's misinterpretation of URL causes linkcheck exception
> ----------------------------------------------------------
>
> Key: MPJXR-1
> URL: http://jira.codehaus.org/browse/MPJXR-1
> Project: maven-jxr-plugin
> Type: Bug
> Reporter: Charlie Dobbie
> Priority: Minor
>
>
> I have a source file (specifically JAXPTransletOneTransformation.java) that includes the Apache Software License in a comment. It contains the following text:
> * 3. The end-user documentation included with the redistribution,
> * if any, must include the following acknowledgment:
> * "This product includes software developed by the
> * Apache Software Foundation (http://www.apache.org/)."
> * Alternately, this acknowledgment may appear in the software itself,
> * if and wherever such third-party acknowledgments normally appear.
> The included link is interpreted by jxr as "http://www.apache.org/)."
> Further down is the text:
> * This software consists of voluntary contributions made by many
> * individuals on behalf of the Apache Software Foundation and was
> * originally based on software copyright (c) 2001, Sun
> * Microsystems., http://www.sun.com. For more
> * information on the Apache Software Foundation, please see
> * <http://www.apache.org/>.
> This link is interpreted as "http://www.apache.org/>."
> These then appear in the generated xref HTML as:
> <a href="http://www.apache.org/)." target="alexandria_uri">http://www.apache.org/).</a>
> and:
> <a href="http://www.apache.org/>." target="alexandria_uri">http://www.apache.org/>.</a>
> respectively, and thus cause linkcheck to log them as errors. On the second URL linkcheck throws the exception:
> maven-linkcheck-plugin:report-real:
> [mkdir] Created dir: C:\Development\Workspace\uk.co.cmp1.expression.web\target\linkcheck
> [mkdir] Created dir: C:\Development\Workspace\uk.co.cmp1.expression.web\target\linkcheck\docs
> maven-linkcheck-plugin: Not using a proxy
> java.lang.IllegalArgumentException: Invalid uri 'http://www.apache.org/>.': escaped absolute path not valid
> at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:285)
> at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:183)
> at org.apache.maven.linkcheck.validation.HTTPLinkValidator.validateLink(HTTPLinkValidator.java:134)
> [...]
> Which is a fair complaint! ;-)
> Is there anything sensible that can be done about this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org