Skip to main content
Participant
December 17, 2021
Answered

CFScript deprecation question

  • December 17, 2021
  • 1 reply
  • 1323 views

In this post about the 2021 release (https://helpx.adobe.com/coldfusion/deprecated-features.html) it is mentioned that "cfscript support for script-based CFCs, such as query and storedproc." I can't find anything that clarfies what that means. My organization has applications that use pure script based CFCs and ones that mix tags and script inside CFSCRIPT tags. What precisely is being deprecated?

 

Thanks,

    This topic has been closed for replies.
    Correct answer Priyank Shrivastava.

    Hi,

     

    These are the CFCs that we ship with ColdFusion. We implemented these CFCs so that customers can use functionalities like FTP, HTTP etc. directly in CFSCRIPT tag instead of their tag based counterpart. With ColdFusion 11, we introduced the generic syntax so now customers can use all the tags inside CFSCRIPT tag.

     

    It has no impact on user created CFCs. It just that if you are using one of these CFC files listed below and if you are facing any issue, then we will not support it.

     

    Here’s the list of CFCs that we have deprecated:

     

     

     

    1 reply

    Priyank Shrivastava.
    Community Manager
    Priyank Shrivastava.Community ManagerCorrect answer
    Community Manager
    December 17, 2021

    Hi,

     

    These are the CFCs that we ship with ColdFusion. We implemented these CFCs so that customers can use functionalities like FTP, HTTP etc. directly in CFSCRIPT tag instead of their tag based counterpart. With ColdFusion 11, we introduced the generic syntax so now customers can use all the tags inside CFSCRIPT tag.

     

    It has no impact on user created CFCs. It just that if you are using one of these CFC files listed below and if you are facing any issue, then we will not support it.

     

    Here’s the list of CFCs that we have deprecated:

     

     

     

    Thanks, Priyank Shrivastava
    Participant
    December 17, 2021

    To be absolutely sure then this code should continue to work even if you eventually removed the CFCs.

     

    httpService = new http();
    httpService.setMethod("post");
    httpService.setCharset("utf-8");
    httpService.setUrl(urlTxt);
    httpService.setGetAsBinary("yes");
    httpService.addParam(type="header", name="Accept", value="application/octet-stream");
    httpService.addParam(type="body", value=generateToken());
    
    httpResponse = httpService.send().getPrefix();
    Priyank Shrivastava.
    Community Manager
    Community Manager
    December 17, 2021

    You can give it a try and see if it breaks anything.

     

     

    Thanks, Priyank Shrivastava