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

Error when another user want modify a Content-type under state "draft"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Backlog
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Labels:
    • Environment:

      Linux : PHP 7.0.9-1 / nginx

      Description

      Hello,

      There are this error when we want update a Content-Type in the administration interface :

      [2016-08-10 14:47:45] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: "Argument '$contentType' has a bad state: Draft of the ContentType already exists" at /var/www/ezplatform-dev/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/ExceptionListener.php line 55 "exception":"[ object] (Symfony\\Component\\HttpKernel\\Exception
      BadRequestHttpException(code: 0): Argument '$contentType' has a bad state: Draft of the ContentType already exists at /var/www/ezplatform-dev/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/ExceptionListener.php:55, eZ\\Publish\\Core\\Base\\Exceptions
      BadStateException(code: 0): Argument '$contentType' has a bad state: Draft of the ContentType already exists at /var/www/ezplatform-dev/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:1039)"} []

      The cause is that this content has the state "draft" with another user.

      Step to reproduce :
      1. Create 2 administrators users
      2. Edit Content-Type with the user 1
      3. Edit Content-Type with the user 2

      Best Regards,
      Alexandre

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Alex57 Alexandre Leblanc
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated: