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

Bug 404814

Summary: Folder deletion fails in Node v0.10
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: NodeAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-04-03 10:55:39 EDT
Platform: Mac OS X

Ken reports that folder deletion fails when the Orion Node server is run on Node v0.10.2. Symptom is:

1. Hit Delete on a folder from the Navigagtor
2. The DELETE rest call goes away and never gets a response.

First thing to try would be dumping our hand written deletion code and using a library (see bug 402667).

This is important -- the server needs to work 100% with the latest Node version.
Comment 1 Mark Macdonald CLA 2013-04-04 15:55:39 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=c9200b837509a25b7067f40804d7da69e5c40af4

Updated. If you're running the Node server from source, please use `npm install` to pick up the new dependency. If you're running the Node server installed through npm, update to version 0.0.15.
Comment 2 Mark Macdonald CLA 2013-04-04 15:57:40 EDT
Switching to the rimraff library for deleting folders (see bug 402667) fixed this issue. We think it was a race condition between deleting all files in a directory tree, and deleting the directories themselves.