Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-4281

When resolving app names for IoC annotations from the XML components ids - use the longest matching app name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.5.5
    • Fix Version/s: 5.5.7, 5.6
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Basel 111
    • Story Points:
      3
    • Magnolia Release:
      5.5.7, 5.6

      Description

      There might be several apps in the system that might have very similar name, e.g. articles, articles-custom, articlesOld and so on. Currently when module descriptor contains a component mapping section with i.d. equal to e.g. <id>app-articlesOld-mysubapp, the IoC mechanism may screw things up because it might think that the components from this section are bound to the app articles because of the too permissive pattern matching.

      Solution would be to choose the app whose name is longest among the matching ones (instead of picking the first one matching).

        Attachments

          Activity

            People

            • Assignee:
              apchelintcev Aleksandr Pchelintcev
              Reporter:
              apchelintcev Aleksandr Pchelintcev
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: