You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2006/04/04 20:39:00 UTC

DO NOT REPLY [Bug 39205] New: - StackOverflow in listeners w/"Retrieve All Embedded" and multiple redirects

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39205>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39205

           Summary: StackOverflow in listeners w/"Retrieve All Embedded" and
                    multiple redirects
           Product: JMeter
           Version: 2.1.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: msechres@redhat.com


StackOverflow in View Results Tree and Simple Data Writer listeners for an HTTP
request that has "Retrieve All Embedded Resources from HTML File" and "Follow
Redirects" set, and more than 1 redirect.

Root cause seems to be inside of HTTPSamplerBase::downloadPageResources(). A
redirect from Apache/Tomcat can have a content length of zero, and a
content-type of text/html. In this case, getEmbeddedResourceURLs() should NOT be
called. Recommend changing

if (res.getContentType().toLowerCase().indexOf("text/html") != -1)

to

if (res.getContentType().toLowerCase().indexOf("text/html") != -1 &&
res.getResponseData().length > 0)

in HTTPSamplerBase::downloadPageResources().

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39205] - StackOverflow in listeners w/"Retrieve All Embedded" and multiple redirects

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39205>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39205


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From sebb@apache.org  2006-04-04 23:49 -------
Thanks very much for the report and solution.

Not sure why scanning an empty document should cause a stack overflow (seems
like a separate bug), but the suggested fix is a good idea, and will do no harm
even if the scanning is fixed.

Fix applied in 2.1 branch.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org