Bug 43984 - "HTTP Request Defaults" accepts space ending "Port Number" and causes "Connection refused: connect"
Summary: "HTTP Request Defaults" accepts space ending "Port Number" and causes "Connec...
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.3
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2007-11-28 16:04 UTC by Yang ZHONG
Modified: 2007-12-03 06:42 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Yang ZHONG 2007-11-28 16:04:57 UTC
"HTTP Request Defaults" Config Element accepts space ending "Port Number" and 
causes "HTTP Request" Sampler run into "Connection refused: connect".

Maybe "HTTP Request" Sampler can trim space before connecting.

Copy/Paste very easily leaves a space at the end of "HTTP Request Defaults" 
Config Element "Port Number" input. "HTTP Request" Sampler runs 
into "Connection refused: connect" without logging any hint wrt the space.

Internet search led to NAT support limitation. Wasted many time struggling w/ 
firewall, proxy & tunnelling.

Comment 1 Yang ZHONG 2007-11-28 17:04:47 UTC
"HTTP Request" Sampler parameter "Value" also accepts (ending) space and 
directly puts it into HTTP request w/o URL-encoding.

Maybe "HTTP Request" Sampler can either trim space or URL-encoding at least.

Comment 2 Sebb 2007-11-28 18:16:59 UTC
I don't consider these to be bugs as JMeter behaves correctly when correct 
data is provided.

In the case of spaces in parameter values, they are encoded if encoding is 
selected. No change is needed there.

However, I agree it would be useful to ignore trailing spaces for the port 
field. At present the port is ignored if it is not a valid number. This is a 
bit confusing - but not a bug - so I'm changing this report to an enhancement.
Comment 3 Sebb 2007-12-03 06:42:06 UTC
Trailing port spaces have been fixed in SVN r600547.