History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-363
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Marc Guillemot
Reporter: Ron Mellum
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
WebTest

Project Build Fails on Mac if http.nonProxyHosts Contains Domains

Created: 10/Dec/07 18:55:16   Updated: 11/Dec/07 18:06:13
Affects Version/s: 2.5
Fix Version/s: 2.6

Environment: Mac OS 10.4.11 on Intel Mac
ant -version:
Apache Ant version 1.6.5 compiled on July 2 2006
java -version:
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)


 Description   
Using Build r1641 if there are Hosts and Domains specified in the Proxy bypass settings section of the system preferences, the build of the sample project will fail with a parsing error. The value of http.nonProxyHosts (reference WT-271) contains the host/domain name specified in the System Preferences and a "global" value which is the named value preceded with an "*". The asterisk is causing the parsing error. See below:

[null] INFO (com.canoo.webtest.engine.Configuration) - Surfing with browser 4.0 (compatible; MSIE 6.0; Windows 98)
     [null] INFO (com.canoo.webtest.engine.Configuration) - Configuring proxy from http.proxyHost* system properties: www-proxy.us.oracle.com:80
     [null] INFO (com.canoo.webtest.engine.Configuration) - Configuring proxy from http.nonProxyHosts system property: testlab.intranetsolutions.com|*.testlab.intranetsolutions.com

BUILD FAILED
/Applications/webtest/build_r1641/webtest.xml:163: The following error occurred while executing this line:
/Applications/webtest/yetanotherProject/tests/allTests.xml:5: The following error occurred while executing this line:
/Applications/webtest/yetanotherProject/tests/googleWebTest.xml:9: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*.testlab.intranetsolutions.com
^


 All   Comments   Change History      Sort Order:
Comment by Ron Mellum [10/Dec/07 19:38:43]
I should have been clearer. The issue isn't with the initial creation of the project, but is with attempting to run the sample tests using the "ant" command from within the created test directory. Sorry for the confusion, I'm rather new to WebTest.

Comment by Marc Guillemot [11/Dec/07 18:06:13]
Fixed in build 1645.

The problem wasn't specific to Mac: the patterns allowed in Ant's setproxy task are not regex patterns and should be converted to valid regular expression.