apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.93k stars 4.64k forks source link

[Bug] [API] edit file in resource center and do nothing exit will recive err #15644

Closed Anubisxcw closed 7 months ago

Anubisxcw commented 9 months ago

Search before asking

What happened

i open a file in resource center ,and do nothing ,press exit button,then i will recive an error. pay attention,the file is not created by me,but the createror 's tenant is same as me,and we are admin in ds 企业微信截图_5a07b441-0f27-4320-9db3-1340d7c79102

What you expected to happen

the file `s creater is same as me as a admin,and we have same tenant ,so i have right,there is no reason to get this err

How to reproduce

1.give user A and user B admin right by change database,t_ds_user table ,user_type coulme. 2.give user A and B the same tenant 3.A create a file,and B open it ,do nothing just exit 4.we weill recive a ok msg,and a err msg 企业微信截图_cace0c13-6fdf-40cc-a361-db93d645a0d3

Anything else

1.i read the source code and log 2.and i comparison the good request and bad requeest,i find the bug is about fullName 3.the good request is:xxxxxx/dolphinscheduler/resources?fullName=&tenantCode=&type=FILE&searchVal=&pageNo=2&pageSize=10 4.if you do the reproduce step ,you will caughe bad request:xxxxx/dolphinscheduler/resources?fullName=work&tenantCode=&type=FILE&searchVal=&pageNo=1&pageSize=10 5.if u cut the fullName's value in bad request you will get right response 6.i try to debug,but sorry i just can`t,the backed is good i think,probbly is fronted image

Version

dev

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 9 months ago

Search before asking

What happened

i open a file in resource center ,and do nothing ,press exit button,then i will recive an error. pay attention,the file is not created by me,but the createror 's tenant is same as me,and we are admin in ds 企业微信截图_5a07b441-0f27-4320-9db3-1340d7c79102

What you expected to happen

the file `s creater is same as me as a admin,and we have same tenant ,so i have right,there is no reason to get this err

How to reproduce

1.give user A and user B admin right by change database,t_ds_user table ,user_type coulme. 2.give user A and B the same tenant 3.A create a file,and B open it ,do nothing just exit 4.we weill recive a ok msg,and a err msg 企业微信截图_cace0c13-6fdf-40cc-a361-db93d645a0d3

Anything else

1.i read the source code and log 2.and i comparison the good request and bad requeest,i find the bug is about fullName 3.the good request is:xxxxxx/dolphinscheduler/resources?fullName=&tenantCode=&type=FILE&searchVal=&pageNo=2&pageSize=10 4.if you do the reproduce step ,you will caughe bad request:xxxxx/dolphinscheduler/resources?fullName=work&tenantCode=&type=FILE&searchVal=&pageNo=1&pageSize=10 5.if u cut the fullName's value in bad request you will get right response 6.i try to debug,but sorry i just can`t,the backed is good i think,probbly is fronted image

Version

dev

Are you willing to submit PR?

Code of Conduct

Anubisxcw commented 9 months ago

the version is 3.2.1

Anubisxcw commented 9 months ago

thx,if your code pass the merge,i will buid it~

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] commented 7 months ago

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.