PDA

View Full Version : [FIXED] 2.0M3 HtmlContainer Bug setUrl



Georg
17 Jun 2009, 10:20 AM
The HtmlContainer does not allow to set the url more then once, because in method requestData the requestBuilder is not reseted if a new url is set




protected void requestData() {
if (requestBuilder == null) {
requestBuilder = new RequestBuilder(httpMethod, url);
}
...
}

public void setUrl(String url) {
this.url = url;
if (!deferDownload) {
requestData();
}
}

In addition the modifier 'protected' in method requestData does not help well because requestBuilder is private.

Also any exception that requestBuilder throws is silently ignored.

Regards,

Georg

darrellmeyer
24 Jun 2009, 5:41 AM
Fixed in SVN.