Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-237

Item.isNew() does not work correctly within a transaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None
    • r293331

    Description

      javadoc on Item.isNew() states:

      • Returns <code>true</code> if this is a new item, meaning that it exists only in transient
      • storage on the <code>Session</code> and has not yet been saved. Within a transaction,
      • <code>isNew</code> on an <code>Item</code> may return <code>false</code> (because the item
      • has been saved) even if that <code>Item</code> is not in persistent storage (because the
      • transaction has not yet been committed).

      but currently, Item.isNew() returns "true" after beeing saved in a transaction.

      Attachments

        Issue Links

          Activity

            People

              tripod Tobias Bocanegra
              tripod Tobias Bocanegra
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: