Closed kevin8023 closed 7 years ago
@mkjsix Hello, any update?
hi @kevin8023
it took a while to debug this issue....
basically the problem is that the mongodb driver json parser thorws an exception with {"'$oid" : { "type": "string" } }
.
this is correct, because $oid
is used to represent the bson type ObjectId.
to create the schema you need to underscore prefix it, i.e. _$oid
However the exception was not handled correctly thus returning 500 Internal Server Error
It should return 406 Not Acceptable
with an error message explaining the problem.
just pushed the fix, you'll find last builds on sonatype soon
I'm closing this, feel free to reopen it if you need more support
Hi, when i update collection with below steps, it will throw NullPointerException.
http get http://***:8080/mdm/_schemas/Organization
http put http://***:8080/mdm/_schemas/Organization
-- collection from db as below
-- nullpointerException as below
if i use below collection to update, it can update successfully. so i found we should use _$oid instead of $oid, could you help us to fixed this issues?