Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7085

Provide upgrade task for replacing mapping implementations

    Details

    • Type: Task
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.6, 5.6
    • Component/s: Virtual URI mappings
    • Labels:
      None
    • Sprint:
      Saigon 104, Saigon 105, Saigon 106, Saigon 107
    • Story Points:
      5
    • Magnolia Release:
      5.5.6, 5.6

      Description

      Could be in the shape of a groovy script, but ideally also usable as a "regular" version-handling Task.

      • Take one module name as input, and for that module:
      • Rename virtualURIMapping node to virtualUriMappings (plural, camel-case)
      • Visit mapping nodes and upgrade magnolia's known impls
        • Package changed
        • URI is now spelled in camelCase in class-names
        • URI is now spelled in camelCase in fromUri / toUri config properties
        • See table below for mapping replacements
      • Output a warning to install-ctx for custom implementations without replacement
      • Make the task extensible for use by other modules (e.g. multisite)
        • probably expose a protected method to specify additional replacing-mappings
      Old mapping New mapping
      info.magnolia.cms.beans.config.DefaultVirtualURIMapping info.magnolia.virtualuri.mapping.DefaultVirtualUriMapping
      info.magnolia.cms.beans.config.RegexpVirtualURIMapping info.magnolia.virtualuri.mapping.RegexpVirtualUriMapping
      info.magnolia.cms.beans.config.RotatingVirtualURIMapping info.magnolia.virtualuri.mapping.RotatingVirtualUriMapping
      info.magnolia.cms.beans.config.HostBasedVirtualURIMapping info.magnolia.virtualuri.mapping.HostBasedVirtualUriMapping
      info.magnolia.cms.beans.config.HostBasedRegexpVirtualURIMapping info.magnolia.virtualuri.mapping.HostBasedRegexpVirtualUriMapping

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dai.ha Dai Ha
                Reporter:
                oanh.thai Oanh Thai Hoang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5d Original Estimate - 5d
                  5d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 8d 2.75h
                  8d 2.75h