DATAREST-41 Fix bug in JSON reading that wasn't advancing JSON parser past the value of "links" on incoming JSON, causing the entity properties to not be read correctly which prevents the update from succeeding correctly.

This commit is contained in:
Jon Brisbin
2012-09-04 10:17:40 -05:00
committed by Jon Brisbin
parent 18616d9c89
commit ae8d7d9326

View File

@@ -259,6 +259,13 @@ public class RepositoryAwareJacksonModule extends SimpleModule implements Initia
continue;
}
if("links".equals(name)) {
while((tok = jp.nextToken()) != JsonToken.END_ARRAY) {
// Advance past the links
}
continue;
}
if(null == attrMeta) {
// do nothing
continue;