Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1872

Provide a way to hint property type when posting json

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • remoting
    • None

    Description

      When posting JSON stream through http-bindings for creating nodes it
      fails with the exception that the node is missing the
      jcr:primartyType even if posted.

      This is because the Oak servlet treat it as String instead of
      name. We have similar problems (not the exception) when trying to
      create a Date.

      It would be nice if it would be possible to hint a property type with
      something like:

      { "jcr:primartyType" : "{Name}oak:Unstructured" }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            edivad Davide Giannella
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: