queueit / KnownUser.V3.JAVA

Known User Implementation (v.3.x) for Java
MIT License
7 stars 9 forks source link

Missing feild in IntegrationConfigModel #9

Closed aamir0701 closed 2 years ago

aamir0701 commented 2 years ago

"IsCookieHttpOnly" field is missing causing error

INFO | jvm 1 | main | 2021/09/11 11:49:30.283 |  com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "IsCookieHttpOnly" (class queueit.sdk.integrationconfig.IntegrationConfigModel), not marked as ignorable (12 known properties: "ExtendCookieValidity", "RedirectLogic", "EventId", "CookieDomain", "CookieValidityMinute", "Name", "Culture", "ActionType", "LayoutName", "Triggers", "QueueDomain", "ForcedTargetUrl"])

sp0x commented 2 years ago

We're adding 3 new fields to the integration config JSON: IsCookieHttpOnly, IsCookieSecure and CookieSameSiteSetting(string) You need to update your serialization code so it doesn't fail on new fields. This code snippet might be useful:

mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

We'll release an update to this SDK later on, so the fields are added to IntegrationConfigModel.

frwiqueueit commented 2 years ago

If the above is not a option for you, we have made sure that future publish from GO Queue-it Platform no longer includes the mentioned fields in resulting JSON config file.