Open jpfloresibm opened 3 years ago
@jpfloresibm From the files you attached, it seems that you are trying to use MP Open API. However, in your server.xml, you didn't list the feature mpOpenAPI-1.1. Please try again by adding
<feature>mpOpenAPI-1.1</feature>
to your server.xml.
After trying the mpOpenAPI-1.1 feature the issue still persists. Note that this is only happening if the config is defined via bootstrap.properties (the class still loads and the extra markup is seen in the api explorer page but the error message is showing up). If defined in the microprofile-config.properties the error message is not generated.
Hi guys. Any updates on this?
@arturdzm can you investigate this and provide a update?
@arthurdm @Emily-Jiang are there any updates to this bug? Are service logs keep generating these errors and would be nice to put in a fix for this issue.
@arturdzm - fyi ^
I think there are two things happening here:
bootstrap.properties
, it will apply to all applicationsopenapi-3.1
is trying to process some internal web modules, as well as deployed user applicationsopenapi-3.1
reads the config from bootstrap.properties
and tries to load the configured OpenAPIReader
from the internal web module, which does not have a class by that name.
@arturdzm I think we may just need to add additional context routes to the ignore list in OpenAPIModuleListener
. Does that seem right?
hi @Azquelt has there been any progress on this bug? We still keep seeing it on version 21.0.0.10
No, @arturdzm is the person who owns it, I'll follow up with him.
@Azquelt I agree.
the bootstrap.properties
is used for all applications, so configuration is applied to all WebModules.
Each application can have it's own reader, it's own fitler, exclude package, etc. So, logically these settings should only be inside each application's microprofile-config.properties
and not in bootstrap or system property level.
The list of properties here is really meant as application setting https://download.eclipse.org/microprofile/microprofile-open-api-1.1.2/microprofile-openapi-spec.html#_core_configurations
There are few properties that are global for openapi-3.1
and could be in bootstrap.properties feature such as :
mp.openapi.extensions.liberty.public.url=myAPI
Describe the bug When the configuration properties for the open api reader are provided in the bootstrap properties, the following error is observed:
However if the configuration is provided in the
microprofile-config.properties
, the error is not generated.Steps to Reproduce Create a custom OpenApiReader implementation and define it in the bootstrap.properties file. Start up WLP. Observe messages.log for the following error: CWWKO1658E
Expected behavior The CWWKO1658E error should not be generated when the config is provided in the bootstrap.properties.
Diagnostic information:
$WLP_OUTPUT_DIR/messages.log
messages.logAdditional context Add any other context about the problem here.