question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specific $metadata URL

See original GitHub issue

Loading the SuccessFactors /odata/v2/$metadata takes between 15 and 30 seconds to load (7.5MB). Yes, seconds… https://launchpad.support.sap.com/#/notes/2755175 specifies the options available to query the $metadata. Limiting the $metadata to the entities that are used in the UI5 app can greatly improve the performance of the app. Unfortunately, UI5 supports specifying specific URL query parameters, but as you can see in the KBA, SF only supports specific URL paths.

E.g. having a UI5 app that uses data from User, FormHeader and Photo entities, the $metadata URL would become: /odata/v2/User,Photo,FormHeader/$metadata

It is currently not possible with UI5 to configure this type of $metadata URL.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
piejanssenscommented, Feb 14, 2022

@stoehr That seems to be working fine! I never thought about trying actual OData calls on that base URL. Thanks!

0reactions
uhlmannmcommented, Oct 27, 2022

Hi Pieter,

security token handling with SFSF services is a bit complicated. To my knowledge, there are no plans to support the HEAD request. Hence for an OData V2 SFSF service, you will at least need to switch off the HEAD request using the model parameter disableHeadRequestForToken. Unfortunately, that is not all for now. The ODataModel would then send a GET request with the value Fetch for the token header which is, to my knowledge, also rejected by the SFSF server. There are internal discussions how to handle that but I cannot provide a date when an improvement would be available. For read-only applications, you may for now simply deactivate the token handling using the model parameter tokenHandling.

Best regards Mathias.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7. Metadata configuration - Spring
Service provider metadata contains keys, services and URLs defining SAML endpoints of your application. Metadata can be either generated automatically upon ...
Read more >
Azure AD as a Service Provider with Metadata URL
The Azure AD metadata can be downloaded from this URL: https://nexus.microsoftonline-p.com/federationmetadata/saml20/federationmetadata.xml. For ...
Read more >
SAML metadata - Wikipedia
The SAML metadata standard belongs to the family of XML-based standards known as the Security Assertion Markup Language (SAML) published by OASIS in...
Read more >
Access SAML Metadata - Identity Cloud Service
Make the metadata URL publicly accessible using Method Two above. Navigate to the metadata URL https://<IDCS-Service-Instance>.identity.oraclecloud.com/fed/v1/ ...
Read more >
Automatic Metadata Lookup | SAML2P Documentation
If this method of configuration is used, any value specified for ... the IdP options from the metadata document at the URL specified....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found