Actions
Bug #9987
closedUser story #9698: Import node properties from external data sources
Cannot use " in the result of a Datasource
Status:
Rejected
Priority:
N/A
Assignee:
Category:
Web - Compliance & node report
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
I defined a datasource to return a quoted ip adress
Name Value test_key "86.246.132.30"
when I try to use this property in "Enforce a file content", for content of the file, I get the following error:
⇨ Cannot build target configuration node ⇨ Error with parameters expansion for node 'server.rudder.local' (root): When processing directive 'Enforce a file content': On variable 'GENERIC_FILE_CONTENT_PAYLOAD': Error when parsing value "${node.properties["test_key"]}", error message is: string matching regex `[\-_a-zA-Z0-9]+' expected but `"' found
Quote are valid in this field (i can put " in it, and it works as expected)
So there is something in the interpolation preventing me from using " in properties
Updated by Nicolas CHARLES almost 8 years ago
- Status changed from New to Rejected
Ha, the issue is in the name of the key,
it should be ${node.properties[test_key]} and not ${node.properties["test_key"]}
Actions