[DLUX-86] Yang UI - History tab - It is possible to edit and run sent data with parameter that is not created in parameters tab Created: 10/May/16  Updated: 31/May/16  Resolved: 31/May/16

Status: Resolved
Project: dlux
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Daša Šimková Assignee: Lubomir Balogh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: PNG File Parametrized request with string3.png    
External issue ID: 5870

 Description   

Yang UI - History tab - It is possible to edit and run sent data with parameter that is not created in parameters tab

Repro steps:
1. Yang UI -> API tab
2. Expand network-topology rev.2013-10-21 -> expand config -> click network-topology to load network-topology form.
3. Select DELETE operation and click Send button.
4. Click arrow expander in front of network-topology button in the form.
5. Click topology list + button, insert "t0" into topology-id input field, select PUT operation and click Send button. Request has been sent succesfully.
6. Navigate to HISTORY tab, there is record of PUT method with Sent data.
7. Click sent data button, enter whatever string, e.g. "str9" to topology id path wrapper button and click Save parametrized data.
8. Expected behaviour: The parametrized data has not been saved since there is not parameter created with name "str9".
9. BUGGY BEHAVIOUR: The parametrized data has been saved with nonexistent parameter "str9".
10. Click arrow button to run parametrized request with the same data.
11. Expected behaviour: The parametrized request has not been run because of the nonexistent parameter that was used to edit the request.
12. BUGGY BEHAVIOUR: The parametrized request has been run successfully with nonexistent parameter in it.



 Comments   
Comment by Daša Šimková [ 10/May/16 ]

Attachment Parametrized request with string3.png has been added with description: Run request with invalid parameter

Comment by Lubomir Balogh [ 27/May/16 ]

Fix https://git.opendaylight.org/gerrit/#/c/39170/

Comment by Daša Šimková [ 31/May/16 ]

Retest:
1. Yang UI -> API tab -> Expand network-topology rev.2013-10-21 -> expand config -> expand network-topology -> click topology

{topology-id}

to load topology list.
2. Click topology list + button, insert "t0" into topology-id input field, select PUT operation and click Send button. Request has been sent successfully.
3. Navigate to Parameters tab - add 1 parameter: name: p1, value: v1 so that there is only this one parameter in Parameters table.
4. Navigate to HISTORY tab, there is record of PUT method with Sent data.
5. Click sent data button, enter nonexistent parameter, e.g. "<<p2>>" to topology id path wrapper button and click Save parametrized data.

ACTUAL BEAHVIOUR: The application does not allow to save such edited data. "Parameter does NOT exist" alert shows. RETEST OK

6. Enter "t0" to topology id path wrapper and insert nonexistent parameter, e.g. <<p2>> to codemirror "topology-id": "t0" to replace "t0". Click Save parametrized data.

ACTUAL BEHAVIOUR: The application does not allow to save such edited data. "<<p2>> : undefined - won't be replaced" message shows in codemirror, "Parameter does NOT exist" alert shows. RETEST OK

7. Navigate to Parameters tab - add the parameter: name: p2, value: v2. Navigate to History tab and Save parametrized data with previously added <<p2>> parameter in code mirror.

ACTUAL BEAHVIOUR: Parametrized data is sent. Since path wrapper does not read data from codemirror, the <<p2>> is not present in path wrapper. Thus, when the request is run, it results in erro, erro alert shows "Error sending request - : The value 't0' for key 'topology-id' specified in the URI doesn't match the value 'v2' specified in the message body." RETEST OK

8. Insert existent <<p2>> parameter to topology id path wrapper input and Save parametrized data and run the request. Request was successfully sent. Navigate to Parameters tab and delete p2 parameter. Navigate back to History tab and run saved parametrized request again.

ACTUAL BEHAVIOUR: The request was not run. "Parameter does NOT exist"alert shows. RETEST OK

9. Navigate to Parameters tab and add p2 parameter with value v2. Navigate back to History tab and run saved parametrized request again.

ACTUAL BEHAVIOUR: The request is successfully run. RETEST OK

Generated at Wed Feb 07 19:57:53 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.