Bug 171423 - [EFS] Move Project attempted to read-only location
Summary: [EFS] Move Project attempted to read-only location
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
: 368372 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-23 11:52 EST by Missing name CLA
Modified: 2019-10-28 20:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2007-01-23 11:52:42 EST
Build ID: M20060921-0945

Steps To Reproduce:
Trying to move projects via the Navigator view to a read-only destination does not flag an error and corrupts the project.

Please reproduce the problem as follows:

1- Create a new project (any type, eg. Java, Dynamic Web, etc.)
2- In the navigator view, right-click the project and select Move.
3- The 'Move Project' dialog comes up.  Uncheck 'Use default location', then enter a location that is read-only (eg. a CD-ROM)
4- Click OK.  Note that there is no validation of the location and you get an error message similar to this:
	Problems encountered while moving resources.
 	 Problems encountered while moving resources.
  Could not move: /dynaweb.
    Could not move: D:\jan18\dynaweb.
      Cannot create file because existing file of wrong type exists: Z:\.
  Problems encountered while setting project description.
    Cannot create file because existing file of wrong type exists: Z:\.
  Errors occurred during refresh of resource: /dynaweb.
    Errors occurred while refreshing resources with the local file system.
      The project description file (.project) for dynaweb is missing.  This file contains important information about the project.  The project will not function properly until this file is restored.


   You will also get errors after workspace build attempts, eg: 
	Errors during build.
 	 Errors running builder "Integrated External Tool Builder" on project dynaweb.
 	 The builder launch configuration could not be found.

5- In the Navigator view, there appear to be no files under the project directory anymore. The Project Explorer view is similarly incomplete.
   (the project files have not actually been deleted from the file system).

More information:
Comment 1 Francis Upton IV CLA 2008-04-22 07:02:52 EDT
I verified this is broken in 3.4M6.  The ProjectContentsLocationArea class is the place to start to look at a fix.  It does not call a method to verify that the actual URI can be written to.
Comment 2 Susan McCourt CLA 2009-07-09 19:02:49 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 3 Curtis Windatt CLA 2012-01-13 11:31:24 EST
*** Bug 368372 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2019-10-28 20:13:44 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.