solan30003 opened a new issue, #17200:
URL: https://github.com/apache/dolphinscheduler/issues/17200

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   dolphinscheduler V**3.1.9**
   On the DAG designer page, when editing a node and selecting or removing a 
“resource file,” the deleted resource (id) is still retained in the 
taskParams.resourceList when submitting and saving the design.
   
   ### What you expected to happen
   
   When submitting and saving the WF1 process, the request body's 
taskParams.resourceList contains the correct resource ids.
   
   ### How to reproduce
   
   **1、**Create a new workflow WF1, open the DAG designer, drag and drop the 
shell node SNode1 into the designer, double-click the SNode1 node to edit it, 
select resources Res1 (id:1) and Res2 (id:2), save the node edit dialog box, 
and save the current workflow.
   **2、**Go to the resource center page and delete Res1 (id:1).
   **3、**Edit WF1, enter the DAG designer, double-click SNode1 to open the 
SNode1 edit dialog box, delete resource Res1 (id:1), add Res3 (id:3), save the 
SNode1 dialog box, and save the current workflow. At this time, open the 
browser debugger and you can see that the request body taskParams.resourceList 
still contains the item {"id":1}.
   **4、**Repeat step 3 multiple times, alternating between "editing WF1-adding 
resources-saving WF1" and "editing WF1-removing resources-saving WF1." It is 
eventually found that the array in the request body taskParams.resourceList for 
saving WF1 keeps adding ids without removing them.
   
   (1) Request URL:
   <url id="d0na1rkchmtlnfv9odc0" type="url" status="failed" title="" 
wc="0">http://192.168.0.211:12345/dolphinscheduler/projects/17622611942144/process-definition/17622925800320</url>
   (2) Example of the request body after multiple saves:
   `
   [
    {
        "id": 48,
        "code": 17649450967552,
        "name": "exec jar",
        "projectCode": 17622611942144,
        "taskType": "SHELL",
        "taskParams": {
                "localParams": [],
   
                "resourceList": [{
                        "id": 1
                }, {
                        "id": 2
                }, {
                        "id": 3
                }, {
                        "id": 11
                }, {
                        "id": 12
                }, {
                        "id": 13
                }, {
                        "id": 15
                }, {
                        "id": 16
                }, {
                        "id": 17
                }, {
                        "id": 18
                }, {
                        "id": 19
                }, {
                        "id": 20
                }, {
                        "id": 21
                }, {
                        "id": 22
                }, {
                        "id": 23
                }, {
                        "id": 24
                }, {
                        "id": 25
                }, {
                        "id": 14
                }, {
                        "id": 26
                }]
        },
   
   }
   }
   ]
   `
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to