[MGNLCDEP-121] Migration from Magnolia 5 to 6 gives NoClassFoundExceptions on DependencyAwareConfirmationActionDefinition Created: 03/Mar/22  Updated: 09/Mar/22  Resolved: 09/Mar/22

Status: Closed
Project: Content Dependencies
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Rico Jansen Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Steps to reproduce

  1. Bootstrap a Magnolia 5 instance with the content dependencies module.
  2. Boot a Magnolia 6 on the resulting repository

This yields several NoClassFoundExceptions for the class 

info.magnolia.module.dependencies.action.DependencyAwareConfirmationActionDefinition

These come from the Magnolia 5 apps still configured in JCR for pages and assets.
Namely the two following paths:

  • /modules/pages/apps/pages/subApps/browser/actions/confirmDeletion
  • /modules/dam-app/apps/assets/subApps/browser/actions/confirmDeleteAsset

It appears that the configuration for these apps is not corrected for the new version (or rolled back to the non-dependencies version).

Workaround:

Set the class to info.magnolia.ui.framework.action.DeleteConfirmationActionDefinition and remove the references subnode.



 Comments   
Comment by Rico Jansen [ 09/Mar/22 ]

I looked into this and found out it is because we still have the old pages app, but forgot to add the compatibility version of magnolia-content-dependencies-ui:
<dependency>
  <groupId>info.magnolia.dependencies</groupId>
  <artifactId>magnolia-content-dependencies-ui-compatibility</artifactId>
  <version>2.0.3</version>
</dependency>

Generated at Mon Feb 12 00:12:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.