Bug 42185

Summary: If a HTTP Sampler follows a redirect, and is set up to download images, then images are downloaded multiple times
Product: JMeter - Now in Github Reporter: Alf Hogemark <alf>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Test plan to show the problem
Suggested patch

Description Alf Hogemark 2007-04-22 05:24:48 UTC
If you tick on the "Download images" in the HTTP Request GUI, to make the sample
download images and other resources referenced on the web page, and you are
testing a URL which will return a redirect that the sampler follows, then you
can see in the "ViewFullResultsVisualizer" that the sampler will actually
download all the references resources twice. In fact, I think it will download
it as many times as it follows a redirect for the sample.
Comment 1 Alf Hogemark 2007-04-22 05:26:21 UTC
Created attachment 20009 [details]
Test plan to show the problem

If you run this test plan, and look in the "View Results Tree", and expand the
nodes, you will see that images and javascript and css files are downloaded
twice.
Comment 2 Alf Hogemark 2007-04-22 05:30:42 UTC
Created attachment 20010 [details]
Suggested patch

The suggested patch makes the images and other resources only be downloaded for
the sample that sampling the url one was redirected to.

The patch also takes away incorrect "TO-DO" text for following redirects in
Norwegian message file.
Comment 3 Sebb 2007-04-22 06:51:15 UTC
Thanks.

Patch applied in r531180

BTW, I just removed the English translation for "follow_redirects" - if a 
property is missing, it should pick up the default English translation anyway.
Comment 4 The ASF infrastructure team 2022-09-24 20:37:39 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1918