The following does not work when i am inside a new thread in Java.
JCoDestinationManager.getDestination("_________")
Context:The Java application is a springboot application deployed in BTP. It uses the connectivity and destination Service. It ...
Hi,
I am trying to implement an endpoint that allows me to upload files from the browser.Here is a sample fetch request from the client(browser)
const files =event.getParameter('files');
const file= files[0];
const formData =new FormData();
form...
I am Javascript developer using the SAP Cloud Application Programming Model.
Creating CRUD functionality and endpoints seems to be straight forward. But what is the best practice to create a custom end point that does NOT do any CRUD actions?An ex...
Thanks for the reply Simon. And aplogies for not commenting in the correct way. I do not use this platform much. Coming back to the topic:I am not using com.sap.cloud.security:java-security as a dependency. But I solved my issue and explained it in t...
Just leaving my findings here for others if they need it: So they key to this was to understand that JCO only uses com.sap.cloud.security:java-api to get the token and set the token. I am using com.sap.cloud.security.xsuaa:xsuaa-spring-boot-starter f...
I debugged and the tokens outside and inside the threadare the same. (correct zoneid)Token token = SpringSecurityContext.getToken(); // SAME RESULT AS INSIDE the THREADSystem.out.println(SecurityContext.getToken()) //
JCoDestinationManager.getDestina...
I find the s3 object by id. I am using the 'aws-sdk' package. To get all the objects i simply use s3.listObjects()And to get a particular object(in this case a file), i simply generate a signed URL with s3.getSignedUrl().Getting the objects from s3 i...