Bug 42019

Summary: Content type not stored in redirected HTTP request with subresults
Product: JMeter - Now in Github Reporter: Jens Vo <jens>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 2.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Copy content type in HTTPSampleResult copy constructor

Description Jens Vo 2007-04-02 04:29:44 UTC
* Create an HTTP Request to a location which returns a 302 (redirect)
* Ensure that the page to which the response redirects is an HTML page with a 
reference to an external file (like a CSS stylesheet)
* Turn on "follow redirects" and "retrieve all embedded resources" in the HTTP 
request
* Add a "Save Response to file" postprocessor.
* Run the test plan.

The directory to which the responses are saved will contain a file 
named "x.unknown" (with x some number) containing valid HTML, i.e. the content 
type has not been recognized correctly.
This is due to the (already correctly detected) content type being lost during 
HTTPSampleResult's "copy" constructor.
Patch is attached.
Comment 1 Jens Vo 2007-04-02 04:30:50 UTC
Created attachment 19868 [details]
Copy content type in HTTPSampleResult copy constructor
Comment 2 Sebb 2007-04-02 17:08:04 UTC
Thanks - fix applied to SVN; it will be in the nightly after r524979.

Note: I moved the setup of the fields to the parent class where the fields are 
actually defined.
Comment 3 The ASF infrastructure team 2022-09-24 20:37:39 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1903