```var data = mockData( name: "name", age: "age", ...
# adobe
l
Copy code
var data = mockData( name: "name", age: "age", id: "uuid" );
b
The issue might have been caused by the introduction of the new flag, -Dcoldfusion.runtime.remotemethod.matchArguments. If so, I would suggest using the JVM flag
-Dcoldfusion.runtime.remotemethod.matchArguments=false
l
I am not sure this was a wise decision
It basically makes CF not act like CF when it comes to arguments.
I can’t ask everyone to add this flag if they are doing mocks
Even the mocking service so you can simulate APIs works like this, by relying on dynamic arguments
Seems very heavy handed to do
b
Is the introduction of the matchArguments flag the cause of the problem?
l
yes
b
Ah, understood. Thanks for clarifying.
l
@nimitsharma let me know if you need anything
e
@lmajano We are evaluating a few options. Currently thinking of a separate JVM flag with an allowed list of arguments that would be looked past for all remote methods. I understand the current approach seems a bit heavy handed, but unfortunately due to the security implications we do want to be selective. To protect against the scope injection issue, we unfortunately did not have any other choice. We could have changed the scope ordering, but this would have silently changed the way applications function without any error feedback