Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-793

Send to review error after fresh database install

    Details

      Description

      Send to review error after fresh database install.

      Prereq.: Reinstall studio demo database before test.

      Steps:
      1. Go to Content / Content structure.
      2. Select e.g. Blog post content item.
      3. Click Edit.
      4. Click Send for review.
      5. Choose reviewer.
      6. Click Confirm.
      Actual result: User stays in Content Editor, error is displayed in browser console (400, bad request).
      Expected result: Content is sent for review, user leaves Content Editor.

      Remarks: On version 1.3 (opposed to master above) an error message is displayed in browser: "An error occurred while saving the draft".

      Backend investigation: It happens when trying to send to review published content. New draft version is created on send to review action and new version id is returned from backend. But this draft version is ignored on frontend and AJAX request to sent-to-review use published version id which lead to error (it's not possible to review published version).

        Issue Links

          Activity

          Hide
          Michał Szołtysek added a comment -

          More detailed flow:

          • log in as admin
          • in step 2 choose blog post "Why we love NYC"
          • in step 5 choose "Yura Rajzer" as reviewer
          Show
          Michał Szołtysek added a comment - More detailed flow: log in as admin in step 2 choose blog post "Why we love NYC" in step 5 choose "Yura Rajzer" as reviewer
          Hide
          Michał Szołtysek added a comment -

          Dariusz Szut Piotr Nalepa backend analysis complete.

          Show
          Michał Szołtysek added a comment - Dariusz Szut Piotr Nalepa backend analysis complete.
          Hide
          Dariusz Szut added a comment -
          Show
          Dariusz Szut added a comment - PR to 1.4 created: https://github.com/ezsystems/flex-workflow/pull/48
          Show
          Dariusz Szut added a comment - PR to 1.4 merged: https://github.com/ezsystems/flex-workflow/commit/8042a91d52a921933fabef9c1eecd78bb6949b31
          Show
          Dariusz Szut added a comment - Branch 1.4 merged into master: https://github.com/ezsystems/flex-workflow/commit/03b95622286756d918d5cd4d414f11878f8e3e8c

            People

            • Assignee:
              Unassigned
              Reporter:
              Michał Szołtysek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: