Skip to content

String arguments passed to DefaultScriptOperations.execute() appear quoted in script [DATAMONGO-1465] #2382

Closed
@spring-projects-issues

Description

@spring-projects-issues

Soeren Unruh opened DATAMONGO-1465 and commented

DefaultScriptOperations.execute() calls convertScriptArgs() to convert the script's arguments. For Strings it performs a local single-quoting.

This is necessary for DefaultScriptOperations.call() arguments (as the function call is constructed as a string) but not for execute() (as the arguments will be transfered in a DBObject


Affects: 1.9.2 (Hopper SR2)

Referenced from: pull request #383

Backported to: 1.9.3 (Hopper SR3), 1.8.5 (Gosling SR5)

Metadata

Metadata

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions