Ticket #750 (closed Defect: fixed)
dm4-webclient: number types are persisted as string values..
Reported by: | Malte | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | |
Component: | DeepaMehta Standard Distribution | Version: | 4.4 |
Keywords: | Cc: | ||
Complexity: | 3 | Area: | |
Module: |
Description
Despite having set a "dm4.core.number" Data Type the webclient sends those topics values back to the REST API as numeric values wrapped in a string, consequently making neo4j initialize such values as of type String.
Making dm4-reviews compatible with 4.4 has brought up this issue again, see addOne() and substractOne() at the bottom of https://github.com/mukil/dm4-reviews/blob/master/src/main/java/org/deepamehta/plugins/review/ReviewPlugin.java
Hope this helps!
Change History
comment:2 Changed 10 years ago by Malte
BTW: It would be of great help if a patch for this would make up for a 4.4.2 and not force us to update to 4.5 to make use of numbers in the webclient.
Otherwise, it would be great if you can some infos here on how to fix/patch this issue in the dm4-webclient source code, since it is of matter in a new project i am currently working on.
Thanks & Cheers!
comment:3 Changed 10 years ago by jri
OK, I'll fix that nasty bug and release 4.4.2 very soon.
Thank you for insisting :-)
Confirmed!
I broke serialization/storage of numbers in DM 4.2 (almost a year ago!) in this commit:
https://github.com/jri/deepamehta/commit/90546faecf258ff65b8a7f9cc342d71d1e302b36
In DM 4.1.3 it still worked correctly.
Thank you very much for reporting!