You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2008/01/16 22:54:34 UTC

[jira] Commented: (AXIS2-3453) java.util.regex.PatternSyntaxException in org.apache.axis2.transport.http.ProxyConfiguration

    [ https://issues.apache.org/jira/browse/AXIS2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559674#action_12559674 ] 

Andreas Veithen commented on AXIS2-3453:
----------------------------------------

According to http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html "http.nonProxyHosts indicates the hosts which should be connected too directly and not through the proxy server. The value can be a list of hosts, each seperated by a |, and in addition a wildcard character (*) can be used for matching. For example: -Dhttp.nonProxyHosts="*.foo.com|localhost"." However the code in ProxyConfiguration#validateNonProxyHosts interprets the items of the list as regular expressions.

Note that the document cited in the Javadoc of the validateNonProxyHosts method (http://java.sun.com/features/2002/11/hilevel_network.html) indeed says: "The value of the http.nonProxyHosts property can be a list of hosts, each separated by a |; it can also take a regular expression for matches; for example: *.sfbay.sun.com would match any fully qualified hostname in the sfbay domain." This is obviously inconsistent because the example is not a valid regular expression.

As a conclusion, validateNonProxyHosts should be modified to conform to the first document (which is consistent and more recent than the second one).

>  java.util.regex.PatternSyntaxException in org.apache.axis2.transport.http.ProxyConfiguration
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3453
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3453
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.3
>         Environment: Mac OS X, java 1.5
>            Reporter: Michele Mazzucco
>            Priority: Blocker
>
> http://www.mail-archive.com/axis-user@ws.apache.org/msg37201.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org