Closed gordonwoodhull closed 4 years ago
Forking does work in many cases; the error is specific to forking a notebook from our core lake to research lake. The other direction works and gist-services to/from github also works.
We are taking the whole notebook, including metadata, and passing it to rcloud.create.notebook
And the gist service is returning the error
Could not read document: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: java.io.PushbackInputStream@6d1b2d70; line: 1, column: 394] (through reference chain: com.mangosolutions.rcloud.rawgist.model.GistRequest["owner"]);
nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: java.io.PushbackInputStream@6d1b2d70; line: 1, column: 394] (through reference chain: com.mangosolutions.rcloud.rawgist.model.GistRequest["owner"])
Indeed our specialized gist format has an extra field owner
, which should be be a string, not an object. The gist content has
"owner": {
"login": "gw923c"
},
and this appears to be the cause of barf.
I think this also indicates that the core lake instance is on an earlier version of gist-services without the shared ownership feature.
Something must have gotten broken way back with rcloud-gist-services, because it's not possible to fork a notebook which has a different source ('context' in rcloud.support).
It's failing in here:
https://github.com/att/rcloud/blob/7d369e9da9e7803459dc5384462cebab18092b9d/rcloud.support/R/rcloud.support.R#L399-L424