hi angela, Thanks for the clarification. indeed I saw those methods, but overall it looks like something is missing here. I followed Michael Duerig's advice and manually added a uuid and the commit goes through fine.
So I can create my repo based on the plugins that I see in the Jcr class, then I can try to upload a 'file' which apparently comes in with a set of node type constraints (the content needs a uuid), but there is no plugin that takes care of the auto-generated properties, shouldn't there be one? thanks, alex On Fri, Jun 27, 2014 at 6:02 PM, Angela Schreiber <[email protected]> wrote: > hi alex > > there are some 'generete-autocreated-items' methods... some parts of > are located in TreeUtil.autoCreateItems but i don't recall exactly > where it is used. > > in any case, jcr:uuid is one of these autocreated properties. > maybe a bug somewhere or some sort of backwards incompatibility. > > regards > angela > > On 27/06/14 17:29, "Alex Parvulescu" <[email protected]> wrote: > > >Hi, > > > >I have a question about the automatic UUID generation. > >I have some code that's not working, based on oak-core only. It's a copy > >of > >JcrUtils.putFile method [0]. > > > >The insertion fails with the following exception: > >org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0021: > >/file/jcr:content[[nt:resource]]: Mandatory property jcr:uuid not found in > >a new node > > > >So who is supposed to add this information (node uuid)? > >And who is doing so right now in the oak jcr layer? > > > >thanks, > >alex > > > > > >[0] https://gist.github.com/alexparvulescu/aafe80228853ad948459 > >
