Skip to main content
Participant
Dec 17, 2021 6:40 PM UTC
Answered

CFScript deprecation question

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 is closed to new replies. Start a new post to keep the conversation going.
    Priyank Shrivastava.
    Priyank Shrivastava.Correct answer
    Inspiring
    Dec 17, 2021 7:32 PM UTC

    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

    8 replies

    Priyank Shrivastava.
    Priyank Shrivastava.Correct answer
    Inspiring
    Dec 17, 2021 7:32 PM UTC

    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:

     

     

     

    Translate
    Thanks, Priyank Shrivastava
    Participant
    Dec 17, 2021 7:51 PM UTC

    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();
    Translate
    Priyank Shrivastava.
    Inspiring
    Dec 17, 2021 8:00 PM UTC

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

     

     

    Translate
    Thanks, Priyank Shrivastava