dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

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

Open zui01 opened this issue 2 years ago • 5 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

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?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

zui01 avatar Feb 27 '24 12:02 zui01

Search before asking

  • [X] I had searched in the issues and found no similar issues.

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?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

github-actions[bot] avatar Feb 27 '24 12:02 github-actions[bot]

the version is 3.2.1

zui01 avatar Feb 27 '24 12:02 zui01

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

zui01 avatar Feb 28 '24 06:02 zui01

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] avatar Mar 30 '24 00:03 github-actions[bot]

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.

github-actions[bot] avatar Apr 06 '24 00:04 github-actions[bot]