Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25848

PostgreSQL: query error in ezobjectrelation/list publish

    XMLWordPrintable

Details

    Description

      The fix for EZP-25396 introduces a regression under PostgreSQL, when publishing an attribute with no object id (first version)

      test fail stack trace:

      PHP Warning:  pg_query(): Query failed: ERROR:  current transaction is aborted, commands ignored until end of transaction block in /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/lib/ezdb/classes/ezpostgresqldb.php on line 211
      PHP Stack trace:
      PHP   1. {main}() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/tests/runtests.php:0
      PHP   2. PHPUnit_TextUI_Command->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/tests/runtests.php:34
      PHP   3. PHPUnit_TextUI_TestRunner->doRun() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176
      PHP   4. PHPUnit_Framework_TestSuite->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:350
      PHP   5. PHPUnit_Framework_TestSuite->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
      PHP   6. PHPUnit_Framework_TestSuite->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
      PHP   7. PHPUnit_Framework_TestSuite->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
      PHP   8. PHPUnit_Framework_TestSuite->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
      PHP   9. PHPUnit_Framework_TestSuite->runTest() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:749
      PHP  10. PHPUnit_Framework_TestCase->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:779
      PHP  11. PHPUnit_Framework_TestResult->run() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
      PHP  12. PHPUnit_Framework_TestCase->runBare() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
      PHP  13. eZObjectRelationListDatatypeRegression->setUp() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:835
      PHP  14. eZContentLanguage::addLanguage() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/tests/tests/kernel/datatypes/ezobjectrelationlist/ezobjectrelationlist_regression.php:24
      PHP  15. eZContentLanguage::fetchList() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/kernel/classes/ezcontentlanguage.php:78
      PHP  16. eZPersistentObject::fetchObjectList() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/kernel/classes/ezcontentlanguage.php:183
      PHP  17. eZPostgreSQLDB->arrayQuery() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/kernel/classes/ezpersistentobject.php:926
      PHP  18. eZPostgreSQLDB->query() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/lib/ezdb/classes/ezpostgresqldb.php:283
      PHP  19. pg_query() /home/shippable/workspace/src/github.com/ezpublish-legacy-ee/lib/ezdb/classes/ezpostgresqldb.php:211
      Fatal error: A database transaction in eZ Publish failed.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: