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

Host-based mappings require a fallback toUri

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.5.8, 5.6
    • 5.5.6
    • Virtual URI mappings
    • None

    Description

      Since the Virtual URI mapping API extraction/revamp, HostBasedVirtualUriMapping now requires the toUri property to be configured, in order for the mapping to be considered "valid", and effectively work (same goes for the regex sub-class).

      Was not the case before we introduced the sanity-checks (#isValid method), which was also ported to the old/deprecated mappings.

      DefaultVirtualUriMapping mandates having both fromUri and toUri configured; this should be overridden for the host-based mappings, so that only fromUri is mandatory, and toUri is left optional.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                hieu.nguyen Hieu Nguyen Duc
                mgeljic Mikaël Geljić
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - 1d Original Estimate - 1d
                      1d
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 2d 0.5h
                      2d 0.5h