Closed BohoCode closed 4 years ago
The issue here is with the ability of minidev (used by nimbusds to convert JWTClaims sets to a string) to access the eidas-psd2-sdk's RoleOfPsp private member. The library creates code on the fly to access members and serialise and for some reason it has an issue with RoleOfPsp.
Reproduction test code;
package com.forgerock.cert.psd2;
import net.minidev.json.JSONStyle;
import net.minidev.json.reader.BeansWriterASM;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.reflect.Field;
public class Test {
public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException, IOException {
RoleOfPsp roleOfPsp = new RoleOfPsp(Psd2Role.PSP_AI);
Field f = RoleOfPsp.class.getDeclaredField("role");
BeansWriterASM bASM = new BeansWriterASM();
PrintWriter pw = new PrintWriter(System.out);
bASM.writeJSONString(roleOfPsp, pw, JSONStyle.NO_COMPRESS);
}
}
Describe the bug When running the postman End to End Tests (generated) against jamie-dev after having deployed
3.1.2-oasis-rc1-oasis-dc1
to that cluster I noticed that the Postman End to End testTest Data->GetSession
was failing.To Reproduce Deploy 3.1.2-oasis-rc1-oasis-dc1` to a clusert
Expected behaviour All tests pass
Current behaviour GetSession fails
Code analysis
The following stack trace was seen in stackdriver;