Load HTML with dead links hangs


#1

We use Aspose Email to process arbitrary emails and would like
to use Aspose HTML to parse the body HTML of these emails.

We have an issue with marketing/spam emails that link to dead URL, as
that seems to hang Aspose HTML. Other Aspose products have configurable
timeout to deal with these cases.

his is the repor code:

String filename = “/tmp/slow_load.html”;

    String emailHtmlBody = new String(Files.readAllBytes(Paths.get(filename)));
    System.out.println("Started At: "+ new Date());
    HTMLDocument document = new com.aspose.html.HTMLDocument(emailHtmlBody, "about:blank");
    System.out.println("Ended At: "+ new Date());

This is the File:


#2

@russ.nichols

Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID HTMLJAVA-264 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.