flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Martin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34324) Operation class improperly builds rest call parameters
Date Tue, 20 May 2014 00:21:37 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Martin updated FLEX-34324:
--------------------------------

    Attachment: 0018-fix-FLEX-34324.patch

possible patch for this issue.  Basically after moving the params array object into args,
we reset params to be a new object so when we build our parameters we are not building on
top of the array object.

> Operation class improperly builds rest call parameters
> ------------------------------------------------------
>
>                 Key: FLEX-34324
>                 URL: https://issues.apache.org/jira/browse/FLEX-34324
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: RPC: General
>    Affects Versions: Adobe Flex SDK 4.6 (Release), Apache Flex 4.12.0
>         Environment: Windows 8, FP 12.0.0.77
>            Reporter: Chris Martin
>              Labels: easyfix, easytest
>         Attachments: 0018-fix-FLEX-34324.patch, OperationClassTest.zip
>
>
> If a user were to use the Operation class to make a rest call, the parameters are improperly
built.  The parameters get doubled up in the body. The extra parameters may be ignored by
the service layer.  In the attached example, you will have to wait after clicking "click"
button because the endpoint will not exist and it will need to timeout.
> Steps to Reproduce
> 1.) Run the attached project code.
> 2.) click on the button
> 3.) Wait for the textarea to display the contents of the request body
> Result
> The parameters being sent are "doubled up".  In this case we only have one parameter
called id but we send two parameters in the request
> * [0] = 54
> * id = 54
> Expected Result
> Only the one parameter is send in the request
> * id=54



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message