Uploaded image for project: 'Wookie'
  1. Wookie
  2. WOOKIE-123

DELETE {wookie}/properties creates property with NULL value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • Server
    • None

    Description

      Hi.

      I've got deleting participants/properties working. I had some errors
      with my request.

      Now I am curious why does propeties request ->

      DELETE

      {wookie}

      /properties

      {params: instance_params, propertyname}

      <- create new property in database, if it doesn't exist.

      So -> i create request like (from the php framework i am working on):

      $request = '?api_key='.$this->getConnection()->getApiKey();
      $request .= '&shareddatakey='.$this->getConnection()->getSharedDataKey();
      $request .= '&userid='.$this->getUser()->getLoginName();
      $request .= '&widgetid='.$widgetInstance->getIdentifier();
      $request .= '&propertyname='.$propertyInstance->getName();

      So if, in the first request propertyname doesn't exist, Wookie returns
      '404 not found' BUT creates property, with value 'NULL'. On second
      request the same property is correctly deleted.

      Obviously it should not do that, just return 404.

      Attachments

        Activity

          People

            Unassigned Unassigned
            raido357 Raido Kuli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: