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

Fix SQLIntegrityConstraintViolationException on mariadb

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 9.1-SNAPSHOT
    • Fix Version/s: 9.2
    • Component/s: Core

      Description

      See https://qa.nuxeo.org/jenkins/job/Deploy/job/IT-nuxeo-master-tests-cap-tomcat-mariadb/259/, attached full tests log at IT-nuxeo-master-tests-cap-tomcat-mariadb-259-console.txt and server logs at server.log: error is triggered as "SQLIntegrityConstraintViolationException" but should be thrown as "org.nuxeo.ecm.webengine.WebException: User already exists" as it is done a few lines below.

      This integrity constraint violation is weird because test checks first if user exists before trying to insert it, and there should not be any other concurrent request creating the user in the mean time.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: