API-1007 error when trying to access Hierarchy under Projects
search cancel

API-1007 error when trying to access Hierarchy under Projects

book

Article ID: 281531

calendar_today

Updated On:

Products

Clarity PPM SaaS

Issue/Introduction

Users with sufficient security rights get a toast message API-1007 error when trying to access the hierarchy in projects (new UX).

Steps to Reproduce: 

  1. Create a custom project blueprint with the Hierarchy module published
  2. Create a parent project and a few child projects. for example project names: PARENT and CHILD 1 and CHILD 2
  3. Assign the custom project blueprint (step1) to PARENT
  4. Navigate to the PARENT project and open the hierarchy grid view and enable show widget and create a dummy widget and it to the view, save the view as a custom label. example: 'With widgets'
  5. Navigate to a child project and use the global header PARENT header to navigate back to the parent project
  6. Once back on the parent project hierarchy, Switch between the 'standard view' and the custom view 'With widgets'


Expected Results: 
The views to switch between each other

Actual Results: 
Finding toast message 'API-1007: You are not authorized to process request. Contact your system administrator for necessary security rights.'...'TypeError: Cannot read properties of null (reading '_internalId____aggr')'

app logs:

WARN  2024-04-03 00:31:05,534 [http-nio-8080-exec-22] provider.InvestmentResourceProvider (clarity:... User admin tried to retrieve resource [resource name: investments, resource id: ] but does not have permission. ERROR 2024-04-03 00:31:05,535 [http-nio-8080-exec-22] ppm.rest (clarity:admin:...:PPM_REST_API) (..) com.ca.ppm.rest.exception.AuthException: API-1007 : You are not authorized to process request. Contact your system administrator for necessary security rights.

Cause

DE80205

Resolution

DE80205, in review by engineering. 

 

Temporary Workaround is to remove widgets from the saved views