Bug 6907 - API: IFile.appendContents spec does not mention non-local
Summary: API: IFile.appendContents spec does not mention non-local
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 98
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2001-12-13 14:39 EST by Jim des Rivieres CLA
Modified: 2002-05-20 21:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2001-12-13 14:39:16 EST
The spec for IFile.appendContents spec does not 
mention what happens when the file is non-local.

It should fail indicating the file is non-local.
Comment 1 DJ Houghton CLA 2002-05-03 09:38:00 EDT
Spec mentioned that if FORCE=true then the contents are appended and the 
resource is marked as being local even if it wasn't before.

Is this correct?
Comment 2 Jim des Rivieres CLA 2002-05-03 10:57:15 EDT
If force=true, IFile is non-local, file exists in local file system:
make IFile local, append contents (the thinking being that this file,
though marked non-local, was in fact local awaiting discovery; so 
force=true says we it is ok to make file local and proceed as per normal)

If force=true, IFile is non-local, file does not exist in local file system:
fail - file not local (this file is not local for real - cannot append
something to a file that you don't have)

If force=false, IFile is non-local, file exists in local file system:
fail - file not local

If force=false, IFile is non-local, file does not exist in local file system:
fail - file not local


Comment 3 DJ Houghton CLA 2002-05-20 21:58:18 EDT
Clarified spec.
Updated tests.
Fixed implementation. (bug found by new tests)
Released.