An issue has been noticed with uploading documents into the Risk, Issue and Change Request objects from the Modern UX.
Also note that:
- Upload is possible through the Classic UI
- Happens to an account with all the rights in the system
- Same behavior against Risk and Issue objects as well
Steps to Reproduce:
- Navigate to Administration -> Objects. Filter for the "Change Request" object
- Navigate into the object -> Attributes tab. Click on New
- Provide Name, ID for the attribute. Choose Data Type as "Attachment". Choose "Multiple Documents". Provide an API Attribute ID
- Navigate to the Modern UX
- Open a Project that has "Changes" tab displayed within it
- Create a new instance. Click on Details
- Click on Configure -> Select the attribute created in Step 3 and display it. Exit
- Upload a document against this attribute
Expected Results: Document is uploaded successfully
Actual Results: Document is not uploaded. The following error is thrown in the UI:
API-1007 : You are not authorized to process request. Contact your system administrator for necessary security rights.
Following error is thrown in the app-ca.log:
ERROR 3333-23-21 44:88:31,573 [http-nio-80-exec-151] security.RiskIssueChangeSecurityDelegate (clarity:admin:5364__D0356143-1-4343-B38F-27D1D5279C93:PPM_REST_API) Can't load Object of type: null
java.lang.NullPointerException
at com.niku.odf.object.ObjectControllerImpl.getNewODFObject(ObjectControllerImpl.java:464)
at com.niku.union.odf.ObjectController.getODFObject(ObjectController.java:495)
at com.niku.union.odf.ObjectController.getODFObject(ObjectController.java:392)