Copy link to clipboard
Copied
Hey All -
We're in the process of upgrading from a (very) old version of Coldfusion to Coldfusion 9. Some of our code/apps use mappings that have a period "." in them. For example, here's what I'm trying to do:
If I try to map "/test.com" to "d:\path\test.com" I get a "please enter a valid name for the mapping" error. We definitely had mappings with periods in our old Coldfusion stuff:
I am hoping that this is just an interface limitation in CF9 and that there's some way I can add these mappings into the new version (otherwise we have a LOT of changes to make!).
Any help is appreciated...
thanks!
Copy link to clipboard
Copied
I can't test this myself because I'm on a friend's compute at present (without CF installed), but you can test your theory regardingit being a UI constraint by using the CFAdmin API to programmmatically add a mapping. Or use Application.cfc to specify your mappings at application level rather than server level. Obviously using Application.cfc is going to require a slight restructuring of your app, but it's not a complicated migration from Application.cfm to Application.cfc
--
Adam
Copy link to clipboard
Copied
I am hoping that this is just an interface limitation in CF9 and that
there's some way I can add these mappings into the new version
(otherwise we have a LOT of changes to make!).
I think Coldfusion 9 is justified to penalize that. The name test.com is ambiguous. So, too, is d:\path\test.com.
Is test.com the name of a directory or is com a subdirectory of test? Suppose myComponent.cfc is in d:\path\test.com. Then it will be mapped to test.com.myComponent. This suggests the structure test/com/myComponent.cfc, which is wrong, for you intended test.com to be just a name.
I think you should make the changes. Use the search facility in Eclipse, and it will be a straightforward task.