[WEBSOCKET_SPEC-144] Discrepancy between URIs of programmatic and annotated endpoint Created: 17/Feb/13  Updated: 21/Feb/13  Resolved: 21/Feb/13

Status: Resolved
Project: websocket-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: arungupta Assignee: dannycoward
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: v013


There is a discrepancy between programmatic and annotated endpoint. The following two code work in GlassFish b76:

public class MyEndpoint {


public class MyServerConfiguration extends DefaultServerConfiguration implements ServerEndpointConfiguration {

public MyServerConfiguration()

{ super(MyEndpoint.class, "websocket"); }

But annotated endpoint takes the URI as "/websocket" and the programmatic endpoint takes the URI as "websocket".

The spec requires annotated endpoint URI to start with / but could not find any such requirement in programmatic endpoint.

Comment by dannycoward [ 21/Feb/13 ]

yes I agree the programmatic config should require the leading / consistent with the annotation. So this is updated in v013 of the spec.

Generated at Tue Oct 25 19:39:12 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.