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

Improve backward compatibility for Item.save and Item.refresh

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11
    • Component/s: jcr
    • Labels:
      None

      Description

      As described in OAK-132 and OAK-141, both methods are implemented by delegating back to the respective Session methods and writing a warning to the log. This might introduce difficult to diagnose errors for those clients that rely on being able to only save/refresh parts of the transient space. A better solution might be to detect whether a save/refresh covers all transient changes and only then delegate back to the respective Session operation but throw an UnsupportedRepositoryException otherwise.

        Attachments

          Activity

            People

            • Assignee:
              mduerig Michael Dürig
              Reporter:
              mduerig Michael Dürig
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: