Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-3058

makes thrown runtime exception rollback the transaction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2 GA
    • Component/s: None

      Description

      In code called from a Seam bean I have:
      newProxy = session.publishDocument(docToPublish, sectionToPublishTo);
      //following code throws an exception
      newProxy.setProperty("dublincore", "title", "newName");
      session.saveDocument(newProxy);
      session.save();

      the saveDocument throws an exception because no such change is allowed on proxies.
      The proxy is still published when I would expect the transaction to be rolled back and so the proxy not published.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: