Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3846

JcrModifiableValueMap: Date object not supported for writing data

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.3.6
    • JCR Resource 2.3.8
    • JCR
    • None

    Description

      the JCR value map implementation supported for a long time accessing date values either with Calendar.class or Date.class - the calendar value was converted automatically if required.

      this does currently not work when writing values - for writing only Calendar objects are supported, no date objects.

      the attached patch ensures that this behavior is symmetric (incl. an unit test).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cziegeler Carsten Ziegeler
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment