Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 372473

Summary: Error 500 when trying to delete a repo
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, tomasz.zarna
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Szymon Brandys CLA 2012-02-24 07:32:45 EST
Steps:

1) Create some repos in the repo view (I init'ed 2 repos and cloned one from GitHub)
2) Delete them one by one

I managed to delete two and the third one was error 500.

DELETE http://localhost:8080/gitapi/clone/file/e/ OK
DELETE http://localhost:8080/gitapi/clone/file/f/ OK
DELETE http://localhost:8080/gitapi/clone/file/c/ 500 Error

{"Severity":"Error","Message":"Failed to handle /git/clone request for file/c/","HttpCode":500,"Code":0,"DetailedMessage":"Could not delete file C:\\home\\workspaces\\foo\\c\\.git\\objects\\pack\\pack-0b9f583bdd216f5c1b2916d6c0912bb7b553fc6d.pack"}

When the page was refreshed, the repo disappeared, but there are still some leftovers in the filesystem.

I see the problem from time to time, sometimes it happes for deleting 2nd repo in a row, sometimes 3rd.
Comment 1 Tomasz Zarna CLA 2012-04-16 09:54:20 EDT
*** Bug 376864 has been marked as a duplicate of this bug. ***
Comment 2 Tomasz Zarna CLA 2012-05-25 03:25:19 EDT
A tip from Matthias: see org.eclipse.egit.ui.internal.repository.tree.command.RemoveCommand.deleteRepositoryContent()
Comment 3 Rafael Chaves CLA 2013-03-13 13:45:39 EDT
Saw this today as well on OrionHub, two out of two times I deleted git repositories.
Comment 4 John Arthorne CLA 2015-05-05 14:39:29 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 5 Rafael Chaves CLA 2015-05-06 09:03:59 EDT
The UI is quite different now, can no longer reproduce with the current UI.