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

[management] NPE in ApiPage when not authenticated #2108

Closed
XciD opened this issue Mar 29, 2019 · 0 comments

Comments

@XciD
Copy link

commented Mar 29, 2019

When calling this url unauthenticated
/management/apis/<api_id>/pages/<page_id>
you have a 500 error, with a NPE in backend

14:47:43.635 [gravitee-listener-23] ERROR i.g.m.rest.provider.ThrowableMapper - Internal error
java.lang.NullPointerException: null
	at io.gravitee.management.rest.resource.ApiPageResource.getPage(ApiPageResource.java:77)

Expected Behavior

No error :)

Current Behavior

Error 500

Possible Solution

Check if metadata is not null before clear

Steps to Reproduce (for bugs)

Create an API and a Documentation Page an go on the page with an unauthenticated user

Your Environment

  • Version used: 1.23.1

@aelamrani aelamrani added this to the APIM - 1.24.1 milestone Mar 29, 2019

@aelamrani aelamrani changed the title [management-api] NPE in ApiPage when not authenticated [management] NPE in ApiPage when not authenticated Mar 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.