tyrus
  1. tyrus
  2. TYRUS-80

org.glassfish.tyrus.server.Server doesn't report a deployment error when changing the optional @WebSocketOpen String to Integer.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-b10
    • Fix Version/s: 1.0-b11
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      As Per the specification section 4.4.@WebSocketOpen.

      .... The decorated method can only have an optional Session parameter, an optional EndpointConfiguration parameter and zero to n String parameters annotated with a @WebSocketPathParam annotation as parameters.
      ......
      Any Java class using this annotation on a method that does not follow these rules may not be deployed by the implementation and the
      error reported to the deployer.

      When Deploying and endpoint with method annotated with @WebSocketOpen that has wrong parameter type (String to Integer) it dosen't report that, And when sending a wrong URI template value (String) to this method which has integer value, the engine calls the following method:

      @WebSocketError
         public void onError(Throwable error){
            System.out.println("Error: "+ (error == null ? "Undefined ":error.getMessage()));            
      }
      

      But it always prints "Undefined".

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Pavel Bucek
            Reporter:
            Mohamed Taman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: