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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.4.Final
    • Fix Version/s: 2.3.5.Final
    • Component/s: jaxrs
    • Labels:
      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: