Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6450

IoC references with mangled closing braces should result in a clear error on component startup.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: IoC System
    • Labels:
      None

      Description

      An IoC reference with a mangled closing brace should be logged as an error on component startup. Instead, the mangled reference is treated as a string, as in this example:

      var fluid = require("infusion");
      var my = fluid.registerNamespace("my");
      
      fluid.defaults("my.mangled.invoker", {
          gradeNames: ["fluid.component"],
          intendedTarget: "Here we are!",
          invokers: {
              log: {
                  funcName: "console.log",
                  args: ["Mangled invoker arg resolves to -> ", "{that].options.intendedTarget"]
              }
          }
      });
      
      var mangledInvoker = my.mangled.invoker();
      mangledInvoker.log(); // The text of the mangled IoC reference is logged.   
      

      For more examples, see https://pastebin.com/cdrhxg1Q

        Attachments

          Activity

            People

            Assignee:
            antranig Antranig Basman
            Reporter:
            the-t-in-rtf Tony Atkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: