[
https://issues.apache.org/jira/browse/IVY-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maarten Coene updated IVY-1232:
-------------------------------
Original Estimate: (was: 1h)
Remaining Estimate: (was: 1h)
Assignee: Maarten Coene
Description:
ApacheURLLister.retrieveListing() was changed for IVY-1175. The method now
handles hrefs with text value ending in "..>" by treating those text values as
truncated, which may be correct behavior. However, the method should also
handle hrefs with text value ending in "..>" and handle those as truncated
as well, since > is the preferred html syntax.
Here is the patch:
{noformat}
165a166,170
> } else if (text.endsWith("..>")) {
> // text is probably truncated, we can only check if the href
> starts with text
> if (!href.startsWith(text.substring(0, text.length() - 6))) {
> continue;
> }
{noformat}
was:
ApacheURLLister.retrieveListing() was changed for IVY-1175. The method now
handles hrefs with text value ending in "..>" by treating those text values as
truncated, which may be correct behavior. However, the method should also
handle hrefs with text value ending in "..>" and handle those as truncated
as well, since ">" is the preferred html syntax.
Here is the patch:
165a166,170
> } else if (text.endsWith("..>")) {
> // text is probably truncated, we can only check if the href
> starts with text
> if (!href.startsWith(text.substring(0, text.length() - 6))) {
> continue;
> }
> Some repositories broken by IVY-1175
> ------------------------------------
>
> Key: IVY-1232
> URL: https://issues.apache.org/jira/browse/IVY-1232
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Reporter: John Tinetti
> Assignee: Maarten Coene
> Priority: Blocker
>
> ApacheURLLister.retrieveListing() was changed for IVY-1175. The method now
> handles hrefs with text value ending in "..>" by treating those text values
> as truncated, which may be correct behavior. However, the method should also
> handle hrefs with text value ending in "..>" and handle those as truncated
> as well, since > is the preferred html syntax.
> Here is the patch:
> {noformat}
> 165a166,170
> > } else if (text.endsWith("..>")) {
> > // text is probably truncated, we can only check if the
> > href starts with text
> > if (!href.startsWith(text.substring(0, text.length() - 6)))
> > {
> > continue;
> > }
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.