Bug 49294

Summary: Images not downloaded from redirected-to pages
Product: JMeter - Now in Github Reporter: Ian Rees <ian.rees>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.3.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Possible fix

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
Comment 2 The ASF infrastructure team 2022-09-24 20:37:44 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2368