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 "Michele Mazzucco (JIRA)" <ji...@apache.org> on 2008/01/16 11:03:38 UTC

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

 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


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

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ 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


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

Posted by "Dan Morrow (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566749#action_12566749 ] 

Dan Morrow commented on AXIS2-3453:
-----------------------------------

The reason this issue is seen on the Mac, is because if you go to your "System Preferences -> Network" settings, and bring up your "Ethernet" settings. Look at the "Proxies" tab. At the bottom of the window, you'll see a "Bypass proxy settings for these Hosts & Domains:" section. On my machine, it reads:

*.local, 169.254/16

This setting has to do with connecting to Bonjour services on the local network. Don't know if this helps to diagnose, but I thought I'd mention it.

>  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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-3453.
-------------------------------------

    Resolution: Fixed

Fixed in svn revision 635034

>  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
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>
> 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


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

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michele Mazzucco updated AXIS2-3453:
------------------------------------

    Fix Version/s: 1.4

>  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
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>
> 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


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

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3453:
----------------------------------------

    Assignee: Deepal Jayasinghe

>  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
>            Assignee: Deepal Jayasinghe
>            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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-3453:
------------------------------------

    Priority: Critical  (was: Blocker)

>  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
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>
> 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


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

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559895#action_12559895 ] 

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

An easy way to correct the validateNonProxyHosts method would be to use wildcardMatch from org.apache.commons.io.FilenameUtils. This method has the required semantics, except that it recognizes '?' as an additional wildcard character. Since the question mark is not a valid character in a DNS name, this can do no harm.

>  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