Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345054 - Unable to create Makefile project with existing code on a root owned folder
Summary: Unable to create Makefile project with existing code on a root owned folder
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 10:58 EDT by Vikram Narayanan CLA
Modified: 2020-09-04 15:21 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 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