[BUILD-1215] Change mgnl namespace URI in source files Created: 30/Jan/24  Updated: 05/Feb/24

Status: Open
Project: Build
Component/s: None
Affects Version/s: None
Fix Version/s: BOM 6.2.44

Type: Task Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: security
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

MAGNOLIA-9204 changed JCR mgnl namespace URI and adjusted source files for the modules in the release of Magnolia 6.2.43.

The release of 6.2.44 should also do this.

How to do this?

If https://git.magnolia-cms.com/projects/BUILD/repos/magnolia-rewrite-recipes/pull-requests is not integrated (otherwise skip this step) 

git fetch origin refs/pull-requests/15/from:15 && git checkout 15
mvn clean install  

In your module: 

  • Checkout branch on java11/17 (due to java versions, openrewrite might work only on java11/17)
    git checkout master
    git checkout -b MAGNOLIA-9204-6.3  

 

  • Update dependency to latest parent pom (built in step 1). You don't have to commit this change, it's required only for the next step.

 

  • Run openrewrite 
    mvn rewrite:run -DactiveRecipes=info.magnolia.rewrite.UpdateMgnlNodeTypeNamespace  

 

  • As result, the namespace should be updated in
    • XML bootstrap files
    • XML snippets in java code
    • XML node type definitions
  • Manually update CND files
    • check if you module contains any CND (Compact Nodetype Definition)
    • update mgnl namespace manually in these files
  • Commit the changes
     git commit -m "MAGNOLIA-9204 update mgnl namespace URI"
     git push 
  • Create PR
  • Once the changes are building successfully, backport the change to a branch compatible with Magnolia 6.2
    • Copy the commit hash from 6.3 branch
    • Cherry-pick the commit, e.g:
      git checkout release/6.2
      git pull
      git checkout -b MAGNOLIA-9204-6.2
      git cherry-pick <hash>
    • Manually update magnoliaVersion to 6.2.42 (or later/latest, e.g. 6.2-SNAPSHOT)
    • Commit the changes and create a PR
      git commit -m "MAGNOLIA-9204 update mgnl namespace URI"
      git push  

Also create the same ticket for the next release.


Generated at Sun Feb 11 23:49:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.