Fiori deploy fails with HTTP 403

Published by Tobias Hofmann on

3 min read

Problem

You want to deploy a Fiori app using the Fiori tools. Running fiori deploy fails with an HTTP 403 error.

Ein Bild, das Text, Screenshot, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein.

Error: request failed with status code 403.

The application output contains a reference to an ADT API service. There is also a guided guided answer for deploying to an ABAP system available.

Explanation

HTTP 403 stands for forbidden. The web server understands what you want, but you do not have the required permissions to perform the action.

For the upload to work, some prerequisites must be fulfilled. The UI5 documentation contains some information on this topic: Using an OData Service to Load Data to the SAPUI5 ABAP Repository

Root Cause

As the documentation states, to be able to deploy a Fiori app via the Fiori tooling (fiori deploy), an OData service is used: /UI5/ABAP_REPOSITORY_SRV

Make sure the OData service /UI5/ABAP_REPOSITORY_SRV is activated. See SAP Note 3270246 for more information.

In case the service is not activated, the response from the ABAP system is HTTP 403. As the service and therefore the URL does not exist, it would be better to give back HTTP 404: not found. To fix the 403, it is necessary to activate the service /UI5/ABAP_REPOSITORY_SRV

/UI5/ABAP_REPOSITORY_SRV not active

Check if the upload OData service is active and if not, activate it.

Tx: /n/IWFND/MAINT_SERVICE

Check if the service is already activated

Ein Bild, das Text, Screenshot, Reihe, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein. Nothing is returned. The OData service is not active. Therefore, uploading a Fiori app through this service is not possible.

Ein Bild, das Text, Screenshot, Schrift, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

Solution

Tx: /n/IWFND/MAINT_SERVICE

Add service

  • System Alias: LOCAL
  • Technical Service Name: /UI5/*

Click on Get Services. The service is shown.

Ein Bild, das Text, Screenshot, Schrift, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

Add the service

Ein Bild, das Text, Screenshot, Display, Zahl enthält.

KI-generierte Inhalte können fehlerhaft sein.

If you do not want to have this service transported – to let only deploys happen in this system, e.g. DEV – give as package $TMP.

Ein Bild, das Text, Screenshot, Schrift enthält.

KI-generierte Inhalte können fehlerhaft sein.

The service is now listed in the maintain services transaction.

Ein Bild, das Text, Screenshot, Software, Reihe enthält.

KI-generierte Inhalte können fehlerhaft sein.

In SICF, the service is now listed under /sap/opu/odata/ui5/ as abap_repository_srv

Ein Bild, das Text, Screenshot, Schrift, Zahl enthält.

KI-generierte Inhalte können fehlerhaft sein.

Result

Deploying a Fiori app via the service should now work.

Let the world know

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.