You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Roman Kalukiewicz (JIRA)" <ji...@apache.org> on 2008/11/14 17:55:05 UTC
[jira] Created: (CAMEL-1091) jetty endpoints ignore host specified
in URI and expose an endpoint on all interfaces
jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
-------------------------------------------------------------------------------------
Key: CAMEL-1091
URL: https://issues.apache.org/activemq/browse/CAMEL-1091
Project: Apache Camel
Issue Type: Bug
Components: camel-jetty
Affects Versions: 1.5.0
Reporter: Roman Kalukiewicz
Assignee: Roman Kalukiewicz
http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47447#action_47447 ]
Jonathan Anstey commented on CAMEL-1091:
----------------------------------------
Another note by Willem:
(02:04:43 PM) willem: There'r a MalformedURLException http://rafb.net/p/8s9PsR33.html when I run the InterfacesTest, It looks like the URL doesn't support IPV6's address. I ran the test on my Windows Vista box with JDK 1.5.0_13.
>From http://rafb.net/p/8s9PsR33.html
{code}
java.net.MalformedURLException: For input string: "0:0:0:0:5efe:c0a8:76%21:4567"
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at org.apache.camel.component.jetty.InterfacesTest.testLocalInterfaceHandled(InterfacesTest.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
{code}
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47445#action_47445 ]
Jonathan Anstey commented on CAMEL-1091:
----------------------------------------
janstey@mojo:/x1/apache/camel-trunk/components/camel-jetty$ svn ci -m "CAMEL-1091 - Fix compilation issue on Java 1.5"
Sending camel-jetty/src/test/java/org/apache/camel/component/jetty/InterfacesTest.java
Transmitting file data .
Committed revision 718279.
Roman, would you mind reviewing my fix for this test? It should work now on Java 1.5/1.6.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Roman Kalukiewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47462#action_47462 ]
Roman Kalukiewicz commented on CAMEL-1091:
------------------------------------------
Hey Willem,
I had no chance to hit this problem without IPv6 interface on my Windows XP :). On the other hand test passes on my linux box at home that have IPv6. Anyway of course we don't want to hurt anyone with Windows with this test ;)
Thank you for finding it out.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1091) jetty endpoints ignore host specified
in URI and expose an endpoint on all interfaces
Posted by "Roman Kalukiewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roman Kalukiewicz resolved CAMEL-1091.
--------------------------------------
Fix Version/s: 1.5.1
2.0.0
Resolution: Fixed
Warning is added when someone creates flow that refers to 'localhost' and it proposes 0.0.0.0 instead. Warning appears once per jetty connector (host+port pair) so if you have 10 flows with localhost:80 you have only one warning.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Roman Kalukiewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47449#action_47449 ]
Roman Kalukiewicz commented on CAMEL-1091:
------------------------------------------
I committed the test that I believe should work for IPv6. Unfortunately I don't have IPv6 interface at my machine so I cannot test it out. If someone that has IPv6 enabled (I can see Willem has) could run this test it would be great. If you find some obvious errors, please fix them, as IPv6 is something I can hardly test.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47458#action_47458 ]
Willem Jiang commented on CAMEL-1091:
-------------------------------------
Hi Roman,
The IPV6 test does not work in my Vista box with JDK1.5.0_13 or JDK1.6.0_6. After struggling this for an hour, I found It's a known issue of SUN's JDK[1].
So I will disable the test of IPV6.
[1] http://bugs.sun.com/view_bug.do;jsessionid=70afcb213c8795d4c8b77a9d4175?bug_id=6230761
Willem
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47463#action_47463 ]
Claus Ibsen commented on CAMEL-1091:
------------------------------------
>From a skin read of the sun bug report it looks like they will only fix the Windows IPv6 on JDK7, that seems a bit harsh I think. But I could be mistaking.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Roman Kalukiewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-1091 started by Roman Kalukiewicz.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47444#action_47444 ]
Claus Ibsen commented on CAMEL-1091:
------------------------------------
And maybe the 0.0.0.0 stuff cant be tested on unix as you normally cant bind to ports under < 1024. Jonathan can help test on all sort of platforms.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1091) jetty endpoints ignore host
specified in URI and expose an endpoint on all interfaces
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47443#action_47443 ]
Claus Ibsen commented on CAMEL-1091:
------------------------------------
Rom it doesn't compile on jdk1.5. Camel should be build with 1.5 only.
> jetty endpoints ignore host specified in URI and expose an endpoint on all interfaces
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-1091
> URL: https://issues.apache.org/activemq/browse/CAMEL-1091
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.5.1, 2.0.0
>
>
> http://www.nabble.com/Jetty-and-Mina%3A-how-to-bind-to-%22anylocal%22-AKA-%22wildcard%22-address--tp20475674s22882p20494645.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.