Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Mappings don't allow periods in CF9 - is there a workaround?

New Here ,
Oct 16, 2009 Oct 16, 2009

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:

5.jpg

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:

6.jpg

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!

470
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 17, 2009 Oct 17, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 18, 2009 Oct 18, 2009
LATEST
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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources