cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Java Multitenant MTA with Portal service UI gets 500 error upon redirect

0 Kudos

Hi all,

I am facing problem in setting up multi tenant Portal service. I am getting

"msg":"GET request to /cp.portal/site completed with status 500 Request failed with status code 401"}

I am able to access the html5 UI directly /app/index.html, I am even able to access the backend service apis from consumer subscribed application. Only from portal service /cp.portal/site I am getting 401 error.

I have configured the routes in approuter xs-app.json

{
"welcomeFile": "/cp.portal",
"authenticationMethod": "route",
"routes": [
{
"source": "^/app/(.*)$",
"cacheControl": "no-cache, no-store, must-revalidate",
"target": "$1",
"authenticationType": "xsuaa",
"localDir": "./"
},
{
"source": "^/odata/(.*)$",
"target": "/odata/$1",
"destination": "backend",
"csrfProtection": false
},
{
"source": "^/webapp(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
},
{
"source": "^(/applications/.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}

I can share code as needed, any guidance is appreciated!

johnny_zong
Discoverer
0 Kudos

Hi medhahegde, any progress of this issue. I met the same one.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Zong,

Yes, I was able to resolve it by updating the getDependency call to return the xsappname of the portal service.

0 Kudos

Hi Zong,

I was able to resolve this issue by updating the getDependency call to include xsappName of the portal service.