Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2783

UPnP Web Console plug-in expects that action arguments have a constructor with a string argument

    XMLWordPrintableJSON

Details

    Description

      That expectation works on types like Integer, Long, Boolean etc. but it is problematic in case of byte[]. For example, when try to call an action with bin.base64 parameter:

      {code|title ControlServlet.invoke(UPnPAction, String[], String[])}

      java.lang.NoSuchMethodException: [B.<init>(java.lang.String)
      at java.lang.Class.getConstructor0(Unknown Source)
      at java.lang.Class.getConstructor(Unknown Source)
      at org.apache.felix.webconsole.plugins.upnp.internal.ControlServlet.invoke(ControlServlet.java:347)
      at org.apache.felix.webconsole.plugins.upnp.internal.ControlServlet.doPost(ControlServlet.java:157)
      at org.apache.felix.webconsole.plugins.upnp.internal.WebConsolePlugin.doPost(WebConsolePlugin.java:102)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:815)
      ...

      
      

      The supported data types should be reviewed to be compatible with the OSGi UPnP specification.

      Attachments

        Activity

          People

            v_valchev Valentin Valchev
            evgeni Evgeni Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: