[MGNLUI-5663] Wrong error when a user is editing a page and the page is deleted by another user Created: 12/Feb/20  Updated: 05/Mar/22  Resolved: 30/Dec/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.7.6, 6.1.4
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Javier Benito
Resolution: Cannot Reproduce Votes: 0
Labels: maintenance, to-verify
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Page does not exist message.png    
Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Old framework
Sprint: Pages Maintenance 3, Pages Maintenance 4
Story Points: 2

 Description   

If a user has a page open for editing in pages app and the page is deleted by another user, a strange error is shown to the user (see below).

Error:
RpcInvocationException: Unable to invoke method closeTab in com.vaadin.shared.ui.tabsheet.TabsheetServerRpc
caused by InvocationTargetException
caused by CacheUpdateException: Error during Table cache update.
caused by MgnlInstantiationException: Failed to create instance of [class info.magnolia.contenttags.form.field.TagFieldFactory]
caused by MgnlInstantiationException: Unable to resolve parameters [Item at 1] of ctor [TagFieldFactory(TagFieldDefinition, Item, UiContext, I18NAuthoringSupport, TagManager, TagsModule, SimpleTranslator)]

Steps to reproduce on demoauthor:

  • LogIn with user Peter
  • Create a page in pages app
  • Open this page for editing in pages app
  • Log in with user superuser on a different browser
  • Delete the page created by Peter and publish the deletion
  • User Peter now sees the error message above (at least after he tries to Close the tab)

If superuser is logged in both browsers, then a different message is displayed ("Page was removed").


Generated at Mon Feb 12 09:28:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.