Skip to content

Commit 104debd

Browse files
authored
Don't crawl actions again after being redirected to them (#2557)
1 parent 6fc4ab3 commit 104debd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/org/labkey/test/util/Crawler.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,13 @@ private List<UrlToCheck> crawlLink(final UrlToCheck urlToCheck)
997997
actualUrl = _test.getURL();
998998
if (!actualUrl.toString().endsWith(relativeURL))
999999
{
1000+
try
1001+
{
1002+
String actualRelativeUrl = WebTestHelper.makeRelativeUrl(actualUrl.toString());
1003+
_actionsVisited.add(new ControllerActionId(actualRelativeUrl));
1004+
_urlsVisited.add(actualRelativeUrl);
1005+
_urlsChecked.add(EscapeUtil.decodeUriPath(stripQueryParams(actualRelativeUrl)));
1006+
} catch (IllegalArgumentException ignored) {}
10001007
originMessage = originMessage + "\nRedirected to: " + actualUrl;
10011008
}
10021009

0 commit comments

Comments
 (0)