Bug 42019 - Content type not stored in redirected HTTP request with subresults
Content type not stored in redirected HTTP request with subresults
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.2
All All
: P2 major (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-04-02 04:29 UTC by Jens Vo
Modified: 2007-04-02 17:08 UTC (History)
0 users



Attachments
Copy content type in HTTPSampleResult copy constructor (384 bytes, patch)
2007-04-02 04:30 UTC, Jens Vo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.