cancel
Showing results for 
Search instead for 
Did you mean: 

Issues faced in the Building Side-by-Side Extensions on SAP BTP

Elroy
Employee
Employee
0 Kudos

Hi All,

I have implemented the Side by Side Extension on SAP BTP using CAP (https://learning.sap.com/learning-journeys/build-side-by-side-extensions-on-sap-btp) and I am currently facing 3 issues as follows:
1. When I run my Risk Management App locally, I get the below error:

Elroy_0-1714026227170.png

I would like to know which Auth aspect would I need to check to resolve this. This was working fine before but have started to face this after I made the changes to deploy the app in Cloud Foundry.

 

2. I have deployed the app in Cloud Foundry, but get the below message when I run the app in CF:

Elroy_1-1714026377243.png

 

Logs:
{"written_at":"2024-04-25T06:25:42.949Z","written_ts":1714026342949000000,"csn_component":"-","correlation_id":"e068b7c6-eae8-497b-5b67-fd6a35c4e48f","type":"log","logger":"nodejs-logger","layer":"/Handler","level":"error","container_id":"10.32.3.5","component_type":"application","component_id":"5e07e58f-51c7-4412-b094-f1c3faadf443","component_name":"risk-management","component_instance":-1,"source_instance":-1,"organization_id":"5345543f-4ece-41a5-8d90-102a920f6be9","organization_name":"cbca00ddtrial","space_id":"ab716db3-0b31-4224-85eb-ea9432035ed3","space_name":"dev","request_id":"e068b7c6-eae8-497b-5b67-fd6a35c4e48f","msg":"GET request to launchpad.htm/launchpad.html completed with status 404 ENOENT: no such file or directory, stat '/home/vcap/app/launchpad.html'"}

3. While running the CI/CD pipeline, the Release stage faced the below error:

[2024-04-25T05:17:30.379Z] ***
[2024-04-25T05:17:30.379Z] hudson.AbortException: [cloudFoundryDeploy] Step execution failed (category: undefined). Error: running command 'cf' failed: cmd.Run() failed: exit status 1
[2024-04-25T05:17:30.379Z] ***

My project is in the below links:
https://github.com/ElAfc/RiskManagement.git

 

Happy to share any other info that is needed.

Any help on this would be appreciated.

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

Hi @Elroy,

After you've made the modifications that enables authentication and authorization via XSUAA, did you open the application using the App Router URL? Did it open your IdP authentication web page and redirected you to your app afterwards? Did you add a Role Collection and assigned it to your user?

It seems that your front-end is performing a call to an OData service - for which you do not have authorization yet to run.

BTW: keep in mind that you cannot make changes to your user's roles and test your application on the same browser session (tabs). You must either close the browse session altogether or open a new browser in incognito mode. This happens because authorizations on BTP are assigned to the SAML token at logon. Once logon has happened, your authorizations will not change throughout the whole browser session. They won't be revalidated until you have performed a new logon.

Best regards,
Ivan