You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Gintas Grigelionis (JIRA)" <ji...@apache.org> on 2018/02/02 20:14:00 UTC

[jira] [Assigned] (IVY-1442) ApacheURLLister does not properly handle links with URL encoding

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

Gintas Grigelionis reassigned IVY-1442:
---------------------------------------

    Assignee: Gintas Grigelionis

> 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
>            Assignee: Gintas Grigelionis
>            Priority: Major
>
> This element of the listing
> {code}
>             } 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;
>                 }
>             }
> {code}
> checks that the href text matches the displayed text of the link.  
> When we altered our version strings to use Debian package syntax, our version numbers now include the of a colon ":".  So, when this logic now is looking for links on the module page, the link for the subdirectory of the version is no longer being returned by this class because this equality check is now failing.  We are using Jenkins build artifact pages and an Ivy URL resolver to locate these modules/versions and the issue is that due to the colon, the href value is URLEncoded and the text shows it plain.  This now falls to the continue in the above code and we don't get the version URL in the list this class is supposed to return.
> Example <a> tag that should work and no longer is now that our versions include the ":".  (%3A is URLEncode of : )
> <a href="1%3A2013.09.J821">1:2013.09.J821</a>



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