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

Bug 407669

Summary: Trying to save a deleted file pops up strange message.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, Silenio_Quarti
Version: 2.0   
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2013-05-09 12:17:08 EDT
Steps:
1.Create a new file and open it in a new browser tab.
2.In the previous tab, delete the file.
3.In the new tab add/change the file contents.
4.try to save.
The status bar pops up a message:
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 500 File not found: /home/admin/current/eclipse/serverworkspace/li/liwang/C0/test2.txt.</title> </head> <body> <h2>HTTP ERROR: 500</h2> <p>Problem accessing /file/R/testfolder1/test2.txt. Reason: <pre> File not found: /home/admin/current/eclipse/serverworkspace/li/liwang/C0/test2.txt.</pre></p> <hr /><i><small>Powered by Jetty://</small></i> </body> </html>

There are two things:
1.The message is strange.
2.The message should be an error message(red color) but currently it is a normal message(green), which will disappear in 5 seconds.
Comment 1 Silenio Quarti CLA 2013-05-10 14:03:36 EDT
The server is thrown an exception while generating the ETag to determine if the file is out of sync.

I believe It should send back a out of sync error (412) instead of a 500.