-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Describe the bug
We are getting error in different apex classes :
Graph Engine identified your source and sink, but you must manually verify that you have a sanitizer in this path. Then, add an engine directive to skip the path. Next, create a Github issue for the Code Analyzer team that includes the error and stack trace. After we fix this issue, check the Code Analyzer release notes for more info. Error and stacktrace: UnexpectedException: null: com.salesforce.graph.vertex.SFVertexFactory.load(SFVertexFactory.java:245);com.salesforce.graph.vertex.SFVertexFactory.access$000(SFVertexFactory.java:56);com.salesforce.graph.vertex.SFVertexFactory$1.apply(SFVertexFactory.java:186);com.salesforce.graph.vertex.SFVertexFactory$1.apply(SFVertexFactory.java:183);com.salesforce.graph.cache.AbstractVertexCacheImpl.get(AbstractVertexCacheImpl.java:101);com.salesforce.graph.vertex.SFVertexFactory.loadVertices(SFVertexFactory.java:180)
To Reproduce
Getting these errors on the first line of method Definitions. Eg: Getting the error on public static void revokeUserAccess(String userId) in code :
public static void revokeUserAccess(String userId) {
String access_token = NDAuthController.getAccessToken(userId);
//revoke api access token
HttpResponse res = NDAuthUtility.basicAuthCallout(access_token, 'POST', '/v1/oauth/revoke', 'token='+access_token, 'application/x-www-form-urlencoded');
// delete saved user auth info
delete NDAuthController.getOAuthInfo(userId);
}
"Urgency": We have to resolve this issues for our package's security review.