Daniel Holmes created IVY-1442:
----------------------------------

             Summary: ApacheURLLister does not properly handle links with URL 
encoding
                 Key: IVY-1442
                 URL: https://issues.apache.org/jira/browse/IVY-1442
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.2.0
         Environment: Ant 1.8.0, Java 6
            Reporter: Daniel Holmes


This element of the listing 
            } else {
                // text is not truncated, so it must match the url after 
stripping optional
                // trailing slashes
                String strippedHref = href.endsWith("/") ? href.substring(0, 
href.length() - 1) : href;
                String strippedText = text.endsWith("/") ? text.substring(0, 
text.length() - 1) : text;
                if (!strippedHref.equalsIgnoreCase(strippedText)) {
                    continue;
                }
            }

checks that the href text matches the displayed text of the link.  When we 
altered our version strings to use Debian package syntax, that included the use 
now of a colon ":" in the version labels, and in our Jenkins display which we 
are using for the URL endpoint, the href value is now URL encoding the : while 
the text shows it plain.  This now falls to the continue in the above and we 
don't get the version URL in the list this class is supposed to return.

Example <a> tag that should work.  (%3A is URLEncode of :)
<a href="1%3A2013.09.J821">1:2013.09.J821</a>



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to