dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [Resource] The zombie resources cannot be deleted

Open ErikXu opened this issue 2 years ago • 2 comments

Search before asking

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

What happened

I uploaded some resources using a user account named test. Then I deleted the user before deleting the resources by mistake. The resources become zombie resources and cannot be deleted even using the open api:

curl -X DELETE "http://www.example.com/dolphinscheduler/resources/90034" -H "Request-Origion:SwaggerBootstrapUi" -H "accept:*/*" -H "Content-Type:application/x-www-form-urlencoded;charset=UTF-8"

The response is:

{
  "code": 10010,
  "msg": "user 60,010 not exists",
  "data": null,
  "failed": true,
  "success": false
}

What you expected to happen

It should be a way to force deleting the zombie resources.

How to reproduce

  1. Create a user name test
  2. Use test to create directories or upload some files
  3. Delete the test user
  4. The resources become zombie

Anything else

No response

Version

3.0.0

Are you willing to submit PR?

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

Code of Conduct

ErikXu avatar Sep 22 '22 07:09 ErikXu

Thank you for your feedback, we have received your issue, Please wait patiently for a reply.

  • In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
  • If you haven't received a reply for a long time, you can join our slack and send your question to channel #troubleshooting

github-actions[bot] avatar Sep 22 '22 07:09 github-actions[bot]

hello,current dolphinscheduler deleting a user does not delete the resource created by the current user, and the user is verified when deleting the resource.

boy-xiaozhang avatar Sep 22 '22 07:09 boy-xiaozhang

Is it possile to provide an api to do a force deletion that did not verify the user?

ErikXu avatar Sep 23 '22 01:09 ErikXu

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 Oct 24 '22 00:10 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 Nov 03 '22 00:11 github-actions[bot]