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
