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

Bug 345054

Summary: Unable to create Makefile project with existing code on a root owned folder
Product: [Tools] CDT Reporter: Vikram Narayanan <vikram186>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cartu38.opendev, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Vikram Narayanan CLA 2011-05-07 10:58:29 EDT
Build Identifier: 20100917-0705

I am unable to create a Makefile project with existing code on a root owned folder. It should atleast say "I don't have permissions". It doesn't tell any. The wizard doesn't do anything when I click finish.

Reproducible: Always

Steps to Reproduce:
1. Have a source folder which is owned by root.
2. open eclipse as a non root user.
3. Ctrl+N -> Makefile project with existing code.
4. Locate the source directory. 
5. Click Finish.
Comment 1 Prakash Rangaraj CLA 2011-05-09 01:19:25 EDT
I assume this is CDT. Moving the bug ...
Comment 2 cartu38 opendev CLA 2017-03-28 07:45:02 EDT
 Hello,

I agree facing issue myself.

Sounds relying on Makefile project with existing code wizard, end user is able to press Finish button despite provided entries are leading to "overlaps the location of another project" error. Issue is end user is not warned about such issue except a log message rised Thks following catch :

 catch (Throwable e) {
	ManagedBuilderUIPlugin.log(e);
 }

within org.eclipse.cdt.managedbuilder.ui.wizards.performFinish() method.

Would be good to consider org.eclipse.core.internal.resources.LocationValidator.validateProjectLocationURI(IProject context, URI unresolvedLocation) method return status to compute Finish button state.

Thks.
 Br,
  cartu38