Project

General

Profile

Defect #1590

Servoy Jackson libs

Added by Marc Boegem 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Start date:
02/09/2024
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

In recent versions of Servoy (at least 2023.3 and higher), Servoy ships a default set of Jackson libs (plugins/Jackson folder) which are used by the JWT plugin and Jasper plugin.
These libraries are conflicting when using the OpenAPI plugin, so the lib files included in the OpenAPI folder are removed from the WAR export as per attached screenshot.

However, when using developer, Servoy is using the OpenAPI version of these files.
Downside is the difference in result when loading the specfile (plugins.OpenAPIPlugin.loadFromFile(file).toJSON())

The Jackson libs which are shipped by Servoy seem to return every possible property of the specification.
Resulting in a lot of 'null' values for the properties that weren't specified in the file.
This means code, not handling the nulls, will work perfectly in developer, but not in the deployed solution.

Is it possible to have the OpenAPI plugin use the same version of libs that Servoy ships, but with the result as it is now: only returning the specified properties of the OpenAPI file?


Files

History

#1

Updated by Patrick Talbot 3 months ago

  • Status changed from New to Resolved
  • Assignee set to Patrick Talbot

Try v1.3 that I've just uploaded. This should fix the issue with the extra null values serialized.
I've updated all the jars, but it's up to you what you include or not. I cannot rely on jasper for example which might not be present.

Also available in: Atom PDF