FLUID-6136: Cannot override an invoker specified with "changePath" with one of a different form

Metadata

Source
FLUID-6136
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Justin Obara
Created
2017-02-27T15:32:06.838-0500
Updated
2017-03-01T13:21:25.774-0500
Versions
  1. 2.0
Fixed Versions
  1. 3.0
Component
  1. Framework
  2. IoC System

Description

If an invoker is specified using a "changePath" to directly update a model value, it cannot be overridden with an invoker of a different form.

Default config:

invokers: {
            toOverride: {
                changePath: "value",
                value: "{arguments}.0"
            }
        }

overrideConfig:

toOverride: {
                    funcName: "fluid.tests.overrideInvokerChangePath.overridden",
                    args: ["{that}"]
                }

Additionally if we try to the work around of providing null for the "changePath" and "value" properties, an error is thrown. "Cannot read property 'segs' of null"

Comments