odpi / egeria

Egeria core
https://egeria-project.org
Apache License 2.0
807 stars 261 forks source link

Swagger - swagger-ui.html isn't always available #5200

Closed planetf1 closed 3 years ago

planetf1 commented 3 years ago

When building locally, the server chassis is not serving the swagger based rest api documentation at https://localhost:9443/swagger-ui.html

Instead we get:

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue May 18 18:52:45 BST 2021
There was an unexpected error (type=Not Found, status=404).

The page would normally redirect to https://localhost:9443/swagger-ui/index.html which also fails.

Build environment:

$ mvn -version                                                                            [18:54:33]
Picked up JAVA_TOOL_OPTIONS: --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /usr/local/Cellar/maven/3.8.1/libexec
Java version: 16.0.1, vendor: Azul Systems, Inc., runtime: /Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "11.4", arch: "x86_64", family: "mac"

This occurs running both from the jar at open-metadata-distribution/open-metadata-assemblies/target/egeria-2.10-SNAPSHOT-distribution/egeria-omag-2.10-SNAPSHOT and open-metadata-implementation/server-chassis/server-chassis-spring/target/server-chassis-spring-2.10-SNAPSHOT.jar

However this DOES work correctly from the installed helm charts, based on our docker image.

Could be platform, jdk, environment issue, requires investigation

planetf1 commented 3 years ago

User Error!

I had previously set this in my environment

SPRINGDOC_API_DOCS_ENABLED=false

When testing FVTs etc as this slightly improves build and startup times.

Closing ....