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

clarify DocumentStore contract with respect to number formats

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

Details

    Description

      The DS API allows setting properties as java.lang.Integer, but implementations vary in whether they can roundtrip Integers; some do, some convert to Long.

      The former is observed for MongoMK (which uses BSON internally), the latter is see in RDBMK (which uses JSON).

      We should

      • clarify that integers can be set, but they will come back as longs, and
      • modify existing implementations to always return longs, so bugs surface early

      Attachments

        1. OAK-3288.diff
          5 kB
          Julian Reschke
        2. OAK-3288.diff
          3 kB
          Julian Reschke

        Issue Links

        Activity

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

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment