Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 07eb399

Browse files
committed
[1860745] setProxyAuthorization caused IllegalArgumentException
1 parent 5319a00 commit 07eb399

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void setProxyAuthorization(String user, String passwd, String host,
118118
this.proxyPasswd = passwd;
119119
this.proxyHost = host;
120120
this.proxyPort = port;
121-
hasProxyAuth = true;
121+
hasProxyAuth = !(null == user && null == passwd);
122122
}
123123

124124
/**

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
</properties>
99
<body>
1010
<release version="1.5" date="UNKNOW" description="The latest major release before Java 1.5 migration">
11+
<action type="fix" dev="henryju" issue="1860745" due-to="Ward Bergmans">
12+
setProxyAuthorization caused IllegalArgumentException with null username/password and not null host/port.
13+
</action>
1114
<action type="add" dev="henryju" issue="1793818" due-to="Achim Huegen">
1215
Added setHiddenField method to WebTestCase.
1316
</action>

0 commit comments

Comments
 (0)