Coldbox/Transfer – Use Those Quotes!

I’m working on the new Coldbox 2.6/Transfer Code Scan app, and ran across something interesting.

I was setting up the coldbox config file, went and grabbed some existing code:

<YourSettings>
<Setting name=”TransferSettings” value=”{datasourceFile:config/datasource.xml.cfm, transferFile:config/transfer.xml.cfm, definitions:config/definitions}”/>
</YourSettings>

I believe I took this from an example file. It worked fine in the existing app.  I run a page and get a weird JSON error – invalid JSON I believe.

After digging around a bit, I figured out you need quotes around the values, like this:

<YourSettings>
<Setting name=”TransferSettings” value=”{datasourceFile:’config/datasource.xml.cfm’, transferFile:’config/transfer.xml.cfm’, definitions:’config/definitions’}”/>
</YourSettings>

Notice the single quotes. Just wanted to point this out in case others have a problem. If you read the docs, you should be good to go!  :)

No comments yet

Leave a reply