HTTP Proxy Server GUI should not allow both Follow and Auto redirect to be selected

Bugzilla Id: 55545


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1521677 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 67e89a1805
This commit is contained in:
Sebastian Bazley 2013-09-10 23:08:16 +00:00
parent 6c714aa1a2
commit b7f51b401e
2 changed files with 9 additions and 0 deletions

View File

@ -345,6 +345,14 @@ public class ProxyControlGui extends LogicControllerGui implements JMeterGUIComp
public void actionPerformed(ActionEvent action) {
String command = action.getActionCommand();
// Prevent both redirect types from being selected
final Object source = action.getSource();
if (source.equals(samplerFollowRedirects) && samplerFollowRedirects.isSelected()) {
samplerRedirectAutomatically.setSelected(false);
} else if (source.equals(samplerRedirectAutomatically) && samplerRedirectAutomatically.isSelected()) {
samplerFollowRedirects.setSelected(false);
}
// System.err.println(action.paramString()+" "+command+ "
// "+action.getModifiers());

View File

@ -276,6 +276,7 @@ Previously the default was 1, which could cause unexpected additional traffic.
<li><bugzilla>55502</bugzilla> - Proxy generates empty http:/ entries when recording</li>
<li><bugzilla>55504</bugzilla> - Proxy incorrectly issues CONNECT requests when browser prompts for certificate override</li>
<li><bugzilla>55506</bugzilla> - Proxy should deliver failed requests to any configured Listeners</li>
<li><bugzilla>55545</bugzilla> - HTTP Proxy Server GUI should not allow both Follow and Auto redirect to be selected</li>
</ul>
<h3>Other Samplers</h3>