Bug 3003 - [resources] Test: need test to refreshLocal operation (1G0TP5C)
Summary: [resources] Test: need test to refreshLocal operation (1G0TP5C)
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, test
Depends on:
Blocks:
 
Reported: 2001-10-10 22:47 EDT by Rodrigo Peretti CLA
Modified: 2004-03-25 17:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Peretti CLA 2001-10-10 22:47:39 EDT
Need a test to verify what happens if calling the refresh local operation in a resource placed
in a network drive that went down.
	The resource should not be deleted and the user should be warned about it.
	Does it have a different behaviour in Windows and Linux?

NOTES:

JM (06/05/2001 12:34:21 PM)
	Moving to RTP for consideration
Comment 1 Rafael Chaves CLA 2003-03-17 14:10:55 EST
I have done some manual tests (since it would be difficult to automate such 
tests) on Linux (NFS) and Windows XP (Netware). 

Steps:
1 - add linked folder/file pointing to a NFS/Netware directory/file;
2 - disconnect the network cable
3 - refresh the project

Result on Linux: the refresh operation blocks trying to access non-available 
directories/files. The operation can be cancelled though. 10-20s after 
reconnecting the network cable, the operation completes successfully. In both 
cases, no errors are presented to the user. The same thing happens when trying 
to access those non-available locations using other applications.

Result on Windows XP: the refresh operation faces a short delay trying to 
access non-available directories/files, and then proceeds. The operation 
completes successfully (no errors are presented), the linked resources cannot 
be accessed and are properly decorated as being broken (the children are lost, 
and so are their meta data).

An way to distinguish if a directory is empty or there is I/O errors accessing 
it is checking if java.io.File#list returns null. We could mark such nodes (and 
its children) as problematic and not discard them when refreshing. We could 
have a different flag to specify if this should be done or the nodes should be 
discarded during a refresh local operation.

But do we want to provide such feature? It seems that nobody else (except us) 
has asked for it.
Comment 2 John Arthorne CLA 2004-03-25 17:23:11 EST
Closing.  Unless someone (other than Rodrigo) complains, our current behaviour
seems acceptable (and difficult to test automatically).