This issue has been created
There is 1 update.
 
 
Blog Application / cid:jira-generated-image-avatar-3e96177b-8d36-419b-8abb-cdef0494cf01 BLOG-275 Open

Migrating the blog categories replaces the shipped Blog.Categories pages with the legacy ones

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-37882041-6ad0-45d2-8728-9fc1689e0f46 Vincent Massol created this issue on 14/Oct/26 12:12
 
Summary: Migrating the blog categories replaces the shipped Blog.Categories pages with the legacy ones
Issue Type: cid:jira-generated-image-avatar-3e96177b-8d36-419b-8abb-cdef0494cf01 Bug
Affects Versions: 9.15.14
Assignee: Unassigned
Created: 14/Oct/26 12:12
Priority: cid:jira-generated-image-static-major-222f5333-26bd-45a4-8017-84286a513569 Major
Reporter: Vincent Massol
Description:

The category location migration (Blog.Code.CategoriesLocationMigrator, $services.blog.migrateCategoryLocation()) moves every category page of the Blog space to Blog.Categories. The extension still ships the legacy category pages Blog.Categories, Blog.News, Blog.Other and Blog.Personal (with a Blog.CategoryClass object) next to the new ones (Blog.Categories.WebHome, Blog.Categories.News, ...). The migration renames them too, overwriting the new pages:

  • Blog.Categories.News, Blog.Categories.Other and Blog.Categories.Personal are replaced by the legacy pages (losing their changes and history)
  • Blog.Categories.WebHome is replaced by the legacy Blog.Categories page, which has a Blog.CategoryClass object: the categories home page becomes a category again (see BLOG-238)
  • the pages Blog.News, Blog.Other, Blog.Personal and Blog.Categories of the extension are deleted (the installed extension is then seen as modified)

Steps to reproduce

  1. Have a blog post in a legacy category (e.g. Blog.Travel) so that the migration is proposed
  2. Run the migration from Blog.Code.CategoriesLocationMigrator
  3. Look at Blog.Categories.WebHome and Blog.Categories.News

Cause

CategoryLocationMigration.java:158-169: the query selects all the Blog.CategoryClass pages of the Blog space except Blog.CategoryTemplate, so it includes the default categories of DEFAULT_CATEGORIES (already handled without a rename by migrateDefaultCategories), which are then renamed with overwrite = true. They should be excluded.

The current behaviour is pinned by CategoryLocationMigrationTest#migrateReplacesTheShippedCategoriesWithTheShippedLegacyOnes (BLOG-269).

 
 

1 update

 
cid:jira-generated-image-avatar-37882041-6ad0-45d2-8728-9fc1689e0f46 Changes by Vincent Massol on 14/Oct/26 12:12
 
Assignee: Vincent Massol