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

Host-based mappings require a fallback toUri

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.5.6
    • Fix Version/s: 5.5.8, 5.6
    • Component/s: Virtual URI mappings
    • Labels:
      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Time Tracking

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