markobean commented on code in PR #7057: URL: https://github.com/apache/nifi/pull/7057#discussion_r1142148320
########## nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/RegistryAboutResource.java: ########## @@ -56,8 +59,13 @@ public RegistryAboutResource( response = RegistryAbout.class ) public Response getVersion() { - final String implVersion = NiFiRegistryApiApplication.class.getPackage().getImplementationVersion(); - final RegistryAbout version = new RegistryAbout(implVersion); - return Response.status(Response.Status.OK).entity(version).build(); + Properties props = new Properties(); + try (InputStream stream = getClass().getResourceAsStream(PROPERTIES_FILE)){ + props.load(stream); + } catch (IOException e) { + return Response.status(Response.Status.OK).entity("unknown").build(); Review Comment: Added log message for exception -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org