File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/main/java/com/arangodb/entity Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -348,3 +348,15 @@ Now an edge can be created to set a relation between vertices
348348 null ,
349349 null );
350350```
351+
352+ # Known bugs
353+ Due to deserializition of some attribute combinations of name/type may lead to exceptions.
354+ These combinations are:
355+
356+ | attribute name | attribute type |
357+ | ----------------| ----------------|
358+ | error | boolean |
359+ | code | numeric |
360+ | errorNum | numeric |
361+ | errorMessage | String |
362+ | etag | numeric |
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ private static Class<?> backParameterized() {
136136 }
137137
138138 private static <T extends BaseEntity > T deserializeBaseParameter (JsonObject obj , T entity ) {
139- if (obj .has ("error" )) {
139+ if (obj .has ("error" ) && obj . getAsJsonPrimitive ( "error" ). isBoolean () ) {
140140 entity .error = obj .getAsJsonPrimitive ("error" ).getAsBoolean ();
141141 }
142142 if (obj .has ("code" ) && obj .getAsJsonPrimitive ("code" ).isNumber ()) {
You can’t perform that action at this time.
0 commit comments