websocket-spec
  1. websocket-spec
  2. WEBSOCKET_SPEC-144

Discrepancy between URIs of programmatic and annotated endpoint

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

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

      @WebSocketEndpoint(value="/websocket")
      public class MyEndpoint {

      AND

      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.

        Activity

        arungupta created issue -
        Hide
        dannycoward added a comment -

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

        Show
        dannycoward added a comment - yes I agree the programmatic config should require the leading / consistent with the annotation. So this is updated in v013 of the spec.
        dannycoward made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee dannycoward [ dannycoward ]
        Tags v013
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            dannycoward
            Reporter:
            arungupta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: