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

Fix webengine template rendering when transaction is rollbackonly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: WebEngine

      Description

      When rendrering a freemarker template after the current transaction has been marked as rollbackonly, the AbstractWebContext.initializeBindings method should check the transaction status before trying to get a CoreSession instead of failing with a WebException.
      Indeed, there is no point to access or create a CoreSession if the transaction is meant to be rollbacked (i.e in an error page template).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: