Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-731

AJAX-Client: parameters are not added for values 0, false, etc.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.3.5.Final
    • 2.3.4.Final
    • jaxrs
    • None

    Description

      The JS code generated from JSAPIWriter contains checks for all parameters to check whether or not they should be added to the request. The generated code is:

      if(params.xxx) // add it

      For a value FALSE or 0 this evaluates to TRUE and so the parameters are not added.

      The code should better be:

      if(params.xxx != undefined) // add it

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              mdescher Michael Descher (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: