Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jans-auth-server): NPE during client registration #5559

Closed
yuriyz opened this issue Jul 17, 2023 · 0 comments · Fixed by #5560
Closed

fix(jans-auth-server): NPE during client registration #5559

yuriyz opened this issue Jul 17, 2023 · 0 comments · Fixed by #5560
Assignees
Labels
comp-jans-auth-server Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Milestone

Comments

@yuriyz
Copy link
Contributor

yuriyz commented Jul 17, 2023

Describe the bug

Registration with following payload leads to NPE

{
  "subject_type" : "pairwise",
  "application_type" : "web",
  "scope" : "openid profile address email phone user_name",
  "minimum_acr_priority_list" : [ ],
  "redirect_uris" : [ "https://jenkins-build.jans.io/jans-auth-rp/home.htm", "https://client.example.com/cb", "https://client.example.com/cb1", "https://client.example.com/cb2" ],
  "sector_identifier_uri" : "https://jenkins-build.jans.io/jans-auth/sectoridentifier/a55ede29-8f5a-461d-b06e-76caee8d40b5",
  "client_name" : "jans test app",
  "additional_audience" : [ ],
  "response_types" : [ "code", "id_token" ]
}
2023-07-17 11:46:59,727 ERROR [qtp1072410641-19] 014fbe60-559d-4f61-b157-e1a296017c02 [server.register.ws.rs.action.RegisterCreateAction] (RegisterCreateAction.java:190) - null
java.lang.NullPointerException: null
        at io.jans.as.server.register.ws.rs.RegisterValidator.validateIssuer(RegisterValidator.java:258) ~[classes/:?]
        at io.jans.as.server.register.ws.rs.RegisterValidator.validateSoftwareStatement(RegisterValidator.java:228) ~[classes/:?]
        at io.jans.as.server.register.ws.rs.action.RegisterCreateAction.createClient(RegisterCreateAction.java:102) ~[classes/:?]
        at io.jans.as.server.register.ws.rs.RegisterRestWebServiceImpl.requestRegister(RegisterRestWebServiceImpl.java:52) ~[classes/:?]
        at io.jans.as.server.register.ws.rs.RegisterRestWebServiceImpl$Proxy$_$$_WeldClientProxy.requestRegister(Unknown Source) ~[classes/:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

To Reproduce
Try to register client with payload specified above.

@yuriyz yuriyz assigned moabu and yuriyz and unassigned moabu Jul 17, 2023
@yuriyz yuriyz added kind-bug Issue or PR is a bug in existing functionality comp-jans-auth-server Component affected by issue or PR labels Jul 17, 2023
@yuriyz yuriyz added this to the 1.0.16 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-auth-server Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants