Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3528

BrowserPresenter deletedItem handling causes exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.4.2
    • 5.4.1
    • None
    • None
    • Sprint 7 (Basel)
    • 1

    Description

      While developing add and delete resource actions to resources app, i noticed the following case is throwing exception.

      given(user).deletes(item);
      given(action).throwsContentChangedEvent();

      when(browser).refresh();

      then(browser).throwsException();

      This happens because the selected item cannot be found since its deleted in the transaction. Our browserPresenter should be checking if the selected is present / can be handled.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ilgun Ilgun Ilgun
                ilgun Ilgun Ilgun
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1h
                      1h