[COMMENTING-33] Commenting module can't be installed (1.1.1 and 1.1.2) Created: 14/Jun/23  Updated: 04/Oct/23

Status: In Progress
Project: Commenting
Component/s: None
Affects Version/s: 1.1.1, 1.1.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Yen Lac Tue
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 2.25h
Original Estimate: Not Specified

Attachments: PNG File Comments subapp.png     PNG File commenting-error.png     PNG File commenting-version.png     PNG File commenting_core_db_config.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:
Team: Services
Work Started:

 Description   

Steps to reproduce

  1. On a vanilla project, include the commenting module and throttling-filter dependencies
  2. Include the config.yaml within the commenting-core to match your database settings
  3. Start your server
  4. Check that at your logs, there is an error related to the commenting module:

    INFO info.magnolia.commenting.CommentingCoreModule : start module CommentingCoreModule
    DEBUG canner.internal.scanner.classpath.ClassPathScanner: determining location urls for classpath:dbmigration/mysql using ClassLoader ParallelWebappClassLoader
    context: test-webapp-1.0-SNAPSHOT
    delegate: false
    ----------> Parent Classloader:
    java.net.URLClassLoader@5383967b

    DEBUG canner.internal.scanner.classpath.ClassPathScanner: Unable to resolve location classpath:dbmigration/mysql
    DEBUG io.ebean.migration.runner.LocalMigrationResources : resources: []
    DEBUG io.ebean.migration.MigrationRunner : no migrations to check

  5. If you go to Pages-app, select a page and click the View Comments action, an error is shown because the comments table does not exists

Expected results

The commenting module is properly installed at the empty database

Actual results

The commenting module cannot be installed regarding the error Unable to resolve location classpath:dbmigration/mysql

Workaround

N/A

Development notes

N/A


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