Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7100

New JCR nodebuilder API's addProperty operation doesn't accept Object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.5.6, 5.6
    • None
    • None
    • None

    Description

      With MAGNOLIA-4183 the Content API based node builder API was migrated to JCR. Unfortunately the addProperty operation (see info.magnolia.jcr.nodebuilder.Ops#addProperty) was migrated correctly, in fact breaking original functionality:

      Previously it was possible to create any JCR property type, while with the new operation everything would be handled as String even though underlying logic remained the same.

      We should open up the method signature form String to Object. This is binary compatible as it's a static class and we're widening the signature.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                pmundt Philip Mundt
                pmundt Philip Mundt
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD