Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356974 - Remove user rights on project deletion
Summary: Remove user rights on project deletion
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 M1   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 360277 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-07 13:08 EDT by John Arthorne CLA
Modified: 2012-06-08 16:12 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 John Arthorne CLA 2011-09-07 13:08:27 EDT
0.3 M1

When a project is deleted, we do not delete the user rights entry for that project. I can see from the metadata that I have a very long list of user rights for things that no longer exists...
Comment 1 John Arthorne CLA 2011-10-21 09:12:46 EDT
*** Bug 360277 has been marked as a duplicate of this bug. ***
Comment 2 John Arthorne CLA 2011-10-21 13:36:35 EDT
While working on this I discovered some of the user rights are redundant anyway. When we create a project 'B' in workspace 'A', we add the following rights:

/workspace/A/project/B
/workspace/A/project/B/*
/file/B
/file/B/*

However the first two are redundant. The user will already have rights to:

/workspace/A/*

Because of their workspace ownership. So all we need to add when a project is created is:

/file/B
/file/B/*
Comment 5 John Arthorne CLA 2012-06-08 16:12:27 EDT
For cross-reference, this bug only fixed the file servlet. Similar code is used in the Git servlet which was not fixed. See bug 382147 for the git servlet case.