You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/03/09 03:10:30 UTC
[Bug 57676] New: A small suggestion: WebSocket check same path
endpoint implement may need to enhance
https://bz.apache.org/bugzilla/show_bug.cgi?id=57676
Bug ID: 57676
Summary: A small suggestion: WebSocket check same path endpoint
implement may need to enhance
Product: Tomcat 8
Version: 8.0.5
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: WebSocket
Assignee: dev@tomcat.apache.org
Reporter: yklovejava@163.com
If there are two websocket endpoint has same path, eg, path is "/",Tomcat start
will report the following errors:
Multiple Endpoints may not be deployed to the same path [/]
...
But the errors info can't provide us more enough info.We can't know which the
two endpoints.If so,we may need to search texts,I think not very convenient.
If report the following errors info, we can know which two endpoints:
Multiple Endpoints may not be deployed to the same path [/], the first endpoint
is [echo.EchoServer], the second endpoint is [echo.annoted.EchoServer]
The simple way is to modify WsServerContainer#addEndpoint() method and
org/apache/tomcat/websocket/server/LocalStrings.properties.
example:
#serverContainer.duplicatePaths=Multiple Endpoints may not be deployed to the
same path [{0}]
serverContainer.duplicatePaths=Multiple Endpoints may not be deployed to the
same path [{0}], the first endpoint is [{1}], the second endpoint is [{2}]
if (old != null) {
// Duplicate path mappings
throw new
DeploymentException(sm.getString("serverContainer.duplicatePaths", path,
old.getEndpointClass().getName(), sec.getEndpointClass().getName()));
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57676] WebSocket check same path endpoint implementation
enhancement
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57676
Christopher Schultz <ch...@christopherschultz.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
Fixed in trunk in r1665292 and Tomcat 8.0.x in r1665296.
Will be in Tomcat 8.0.21.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57676] WebSocket check same path endpoint implementation
enhancement
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57676
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Severity|normal |enhancement
Summary|A small suggestion: |WebSocket check same path
|WebSocket check same path |endpoint implementation
|endpoint implement may need |enhancement
|to enhance |
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57676] WebSocket check same path endpoint implementation
enhancement
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57676
--- Comment #3 from Violeta Georgieva <vi...@apache.org> ---
Fixed in Tomcat 7 trunk and will be in 7.0.63 onwards.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57676] WebSocket check same path endpoint implementation
enhancement
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57676
--- Comment #2 from Christopher Schultz <ch...@christopherschultz.net> ---
Note that I do not intend to back-port this to Tomcat 7 unless someone requests
it.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org