Menu

#479 IndexOutOfBoundsException with empty meta refresh url

closed
None
5
2012-10-21
2007-05-21
No

<meta http-equiv="refresh" content="1; URL="/>

HtmlUnit gives the following exception while trying
to parse it:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPage.java:1052)

Discussion

  • Andre Soereng

    Andre Soereng - 2007-05-21

    Logged In: YES
    user_id=1400162
    Originator: YES

    Both IE and FF just refresh/reload the original page.

    Also see the related bug/patch:

    htmlunit-Patches-1549916 ] More tolerant meta refresh tag handling

     
  • Ahmed Ashour

    Ahmed Ashour - 2007-05-23

    Logged In: YES
    user_id=950730
    Originator: NO

    Fixed in SVN, many thanks.

     

Log in to post a comment.