Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Tuttle / Adam Tuttle (Adam Tuttle)
Created: 02/21/2012
Components: Web Services, REST Service
Versions: 10.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: Public Beta / 281801
Priority/Frequency: Major / All users will encounter
Locale/System: English / Mac 10.7 64-bit
Vote Count: 5
Problem Description:
Using block-comments (/* commented */) to comment out a method in a script-only CFC that is a rest service causes the REST refresh to fail.
The failure message is also not helpful. It reports:
>Unable to refresh REST service.
>Application {serviceMapping} could not be initialized.
>Reason: The application does not contain any rest enabled CFCs.
Steps to Reproduce:
Place this CFC into a working REST api and refresh -- the refresh will fail. https://gist.github.com/d3f4803bfb405cd0e851
Note that if you use line comments (//comented) the refresh will succeed and everything will work as expected. Block comments are quirky:
/*
*/
-- works
/**/
-- fails
/*
*/
--fails
/* test */
--fails
/*
a
b
c
*/
--works
/*
a
b
c
*/
--fails (this one has a single space before each line of the comment)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3119366
External Customer Info:
External Company:
External Customer Name: Adam.Tuttle
External Customer Email:
External Test Config: My Hardware and Environment details:
MacBook Pro
OSX Lion
CF10 Standard Install
Attachments:
Comments: