Trouble with Unsuscribe with CyberLink 1.6

2005-01-15
2013-05-02
  • Stefano Lenzi
    Stefano Lenzi
    2005-01-15

    Hi,
        when you try to unsuscribe to a suscribed service. The device will crush with java.lang.StackOverflow
        The reason is that the two following method go in a recurive loop:
    org.cybergarage.upnp.event.SubscriptionRequest::getSID()
    org.cybergarage.upnp.event.SubscriptionRequest::hasSID()

    I solved the problem modifing the method
    org.cybergarage.upnp.event.SubscriptionRequest::getSID()
    here is the fixed method.

    public String getSID(){
       /*if (hasSID() == false)
             return "";*/
       return Subscription.getSID(getHeaderValue(HTTP.SID));
    }

    Finaly some notice for the user:
    - The bug was found in CyberLink 1.6
    - CyberLink 1.4.1 doesn't have the bug

    Thanks to:
    - Oscar Bigu that found the bug
    - Matteo Demuru made a first search to reproduce and fix the trouble

    Bye
    Stefano Lenzi

     
    • Satoshi Konno
      Satoshi Konno
      2005-01-19

      Hi Stefano,

      It is a fatal bug X-<

      I have released the new package with the patch as v1.6.1. Please see the following release note in more detail.

        http://sourceforge.net/project/shownotes.php?release_id=283096

      Thanks for Oscar Bigu and Matteo Demuru too :-)