-
Notifications
You must be signed in to change notification settings - Fork 306
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
PAYARA-2548 OpenAPI 1.0 Implementation #2745
PAYARA-2548 OpenAPI 1.0 Implementation #2745
Conversation
jenkins test please |
Quick build and test passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed the Payara internals pieces. @arjantijms can review the general code. Good job big piece of work!!
} | ||
|
||
private String getContextRoot(ApplicationInfo appInfo) { | ||
return appInfo.getMetaData(WebBundleDescriptorImpl.class).getContextRoot(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can get a NPE here for example when deploying an EJB jar as getMetaData I believe can return null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I've just made a fix for that.
path = "set-openapi-configuration", | ||
description = "Sets the OpenAPI Configuration") | ||
}) | ||
public class SetOpenApiConfigurationCommand implements AdminCommand { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command as written will require a restart to take effect. Can you make sure it indicates that in the administration console.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you mean? From my testing, enabling and disabling the OpenAPI seems dynamic. I've moved the logging into the OpenAPIService to make it more obvious and readable.
Jenkins test |
Jenkins test please |
Quick build and test passed! |
Quick build and test passed! |
Jenkins test please |
Quick build and test passed! |
jenkins test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't deep-dived, but looks OK (even though it has static imports boo! hiss!).
Quick build and test passed! |
…OpenAPI-1.0-REBASE PAYARA-2548 OpenAPI 1.0 Implementation
No description provided.