Question
HCL Tech
PL
Last activity: 26 Jul 2022 4:29 EDT
Issue with NewCovered Harness resulting in 403 Fordbidden http response
Hello Pega enthusiasts,
I've stumbled upon an issue while using the "NewCovered" Harness (Work- class) in order to create a child case. Once "Create" button is clicked it results in 403 Forbidden http response from my tomcat app server. I did some digging and I believe it might be caused by some OOTB script triggered by the button using window.location DOM object which should probably be overriden by calling openWorkByURL(url, event) js method instead.
The button is supposed to call the "AddCovered" activity from what I can see in the harness definition, but run-time config does not reach it. Instead, in DevTools I can see a URL being called and returning the aforementioned http response:
This URL has got to be somehow generated and I think it must be the rootcause here.
Hello Pega enthusiasts,
I've stumbled upon an issue while using the "NewCovered" Harness (Work- class) in order to create a child case. Once "Create" button is clicked it results in 403 Forbidden http response from my tomcat app server. I did some digging and I believe it might be caused by some OOTB script triggered by the button using window.location DOM object which should probably be overriden by calling openWorkByURL(url, event) js method instead.
The button is supposed to call the "AddCovered" activity from what I can see in the harness definition, but run-time config does not reach it. Instead, in DevTools I can see a URL being called and returning the aforementioned http response:
This URL has got to be somehow generated and I think it must be the rootcause here.
Is anyone able to give me a hint where this URL could be generated?
Many thanks for your help in advance,
Robert
@MarijeSchillernhi, thanks for the response. Truth be told the application I'm contracted to work on is a legacy one not even built on UI-Kit, not to mention Theme Cosmos application. I assume you understand Broken Access Control under "BAC" and indeed it looked like 403 response was caused by Pega blocking unregistered requests and thus throwing "Unregistered request encountered" security alert log message as per the resource highlighted by you.
At the end of the day I've managed to register requests generated by the depracated button control by overriding the NewCovered harness and calling one of js functions under pega.ui.HarnessActions (I think it was addFlowFromActionsMenu) directly with "Run script" action from a button.