Bug 49294 - Images not downloaded from redirected-to pages
Summary: Images not downloaded from redirected-to pages
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.3.4
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 18:34 UTC by Ian Rees
Modified: 2010-05-14 20:47 UTC (History)
0 users



Attachments
Possible fix (1.40 KB, application/octet-stream)
2010-05-14 18:34 UTC, Ian Rees
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Rees 2010-05-14 18:34:32 UTC
Created attachment 25440 [details]
Possible fix

If an HTTP request sampler with "Retrieve All Embedded Resources from HTML Files" and "Follow Redirects" both enabled samples page1, which redirects to page2 (using HTTP 302), images on page2 will not be retrieved.

This wasn't a bug in jmeter 2.2

I'm attaching a very quick patch that seems to work fine on my system without causing any problems, but I'm not sure what ramifications there might be for creating an excess "container" by removing the if(...
Comment 1 Sebb 2010-05-14 20:47:39 UTC
Thanks very much for the report and fix.

URL: http://svn.apache.org/viewvc?rev=944537&view=rev
Log:
Bug 49294 - Images not downloaded from redirected-to pages

Modified:
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
   jakarta/jmeter/trunk/xdocs/changes.xml

Also:

URL: http://svn.apache.org/viewvc?rev=944538&view=rev
Log:
Only create container if we are going to use it.

Modified:
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java