View Issue Details

IDProjectCategoryView StatusLast Update
0031080mantisbtsub-projectspublic2022-10-07 10:31
Reporterjose.lopez Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
Product Version2.25.2 
Summary0031080: Cannot create a subproject inside a project
Description

If I select a project in the project list and then I try to create a subproject from within a project with the "Create New Subproject" button, I get an ACCESS DENIED error (#13) when submitting the new subproject. However, the subproject gets created as a project, not as a subproject of the parent project.

On the other hand, if I select "All projects" first and then I perform the same operation, the subproject is created as a subproject of that parent project correctly.

Steps To Reproduce
  1. Select a project in project list.
  2. Go to "Manage Projects" and click on the same project.
  3. Click on "Create New Subproject" button.
  4. Fill in the form and click "Add Project".
  5. An "ACCESS DENIED" error is triggered.
Additional Information

From what I've been able to review:

  • $g_cache_access_matrix DOES NOT contain the newly created subproject if you follow the steps above.
  • $g_cache_access_matrix DOES contain the newly created subproject if you select "All projects" in the project list before creating the new subproject.

I guess this global variable is used to assess the access level in "access_get_local_level", which is eventually called from "access_has_project_level" in ProjectHierarchyAddCommand::validate().

TagsNo tags attached.
Attached Files
image.png (56,590 bytes)   
image.png (56,590 bytes)   

Activities