[Solved] Unable to load groups on Fiori Launchpad with error "Invalid URI segment 'PageSets(''"
"Failure - Unable to load groups" and in the HTTP trace you get error "400 Bad Request"
While accessing
Fiori Launchpad
from Apache Reverse Proxy, you get the error in browser Unable to load groups, and your application will not open. You can see below-mentioned request getting failed.
Request:
/sap/opu/odata/UI2/PAGE_BUILDER_PERS/PageSets('%2FUI2%2FFiori2LaunchpadHome')?$expand=Pages/PageChipInstances/Chip/ChipBags/ChipProperties,Pages/PageChipInstances/RemoteCatalog,Pages/PageChipInstances/ChipInstanceBags/ChipInstanceProperties,AssignedPages,DefaultPage
In the response of the request, you can see the message: Invalid URI segment 'PageSets(''
However, if you use intranet (without any Reverse Proxy), the Fiori Launchpad can be loaded properly.
Root cause:
When we use Apache proxy, the reverses proxy automatically decodes the entire URL before forwarding the request to the backend. '%2F' is decoded to '/'.
Solution:
Configure proxy server to make sure it will pass the request URL not decoded. check the below configuration using
AllowEncodedSlashes NoDecode
and nocanon
Apache virtual host config:
ServerName sap.mysite-it.in
ServerAlias www.sap.mysite-it.in
ServerAdmin shirish.bathe1@mysite-it.in
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
#Disable proxy check, as we don't have the valid certificate for backend server and it only can access through HTTPS
SSLEngine on
SSLProxyEngine on
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /ssl/wildcard_ssl/my.crt
SSLCertificateKeyFile /ssl/wildcard_ssl/my.key
SSLProxyCACertificatePath /etc/ssl/certs
#SSLProxyMachineCertificateFile /ssl/wildcard_ssl/combined.pem
ProxyPreserveHost on
AllowEncodedSlashes NoDecode
ProxyPass / https://IP:port/ nocanon
ProxyPassReverse / https://IP:port/
Comments
Post a Comment