http://coldfusion.com logo
Join SlackCommunities
Powered by
# cfml-general
  • l

    lmajano

    11/03/2022, 1:17 PM
    Hey Folks! Our ColdBox Master class is completely FREE until the end of the year! This is our initiative to help the community to start building amazing apps! All we asks is you please follow us, tag us, star our projects, become a patreon or just help spread the word! Together we can truly innovate and modernize! https://www.cfcasts.com/series/cb-master-class
    👏🏾 1
    👏 4
    🚀 2
    🎉 3
  • j

    justincook

    11/03/2022, 2:33 PM
    I’m having an issue and wanted to see if anyone here knows of a solution. I have a # in file name that is passed via query string. I tried to replace the #, I tried using encodeforurl, rereplace and other things, but no matter what I try ColdFusion cuts off everything after the #. There’s gotta be a solution for this. Anyone have it?
    r
    w
    +2
    • 5
    • 32
  • w

    websolete

    11/03/2022, 2:35 PM
    it's just interpreting it as an html anchor
  • b

    bdw429s

    11/03/2022, 8:15 PM
    Just to be sure I'm not missing anything-- is there a CFML BIF that will tell me if a variable contains a CFC instance specifically? The
    isObject()
    BIF in CF returns
    true
    for basically any unrecognized Java class which makes it sort of useless in many instances where a framework needs to deal smartly with any sort of input.
    w
    a
    g
    • 4
    • 20
  • t

    TEMann

    11/04/2022, 4:51 PM
    ColdFusion 2018 Server. What is it running under the hood when it comes to JAVA? Does it come with an Oracle Java license? I am not even sure I am asking the question correctly.
    r
    d
    • 3
    • 3
  • g

    gsr

    11/06/2022, 3:14 PM
    i am trying to display a server time instead of local time, what i am missing here , my code
    Copy code
    <cfset n = dateconvert("local2utc",now())>
    
    <cfoutput>
    
    <script>
    
     d = new Date();
    
     d.setUTCFullYear(#dateformat(n, "yyyy")#);
    
     d.setUTCMonth(#dateformat(n, "m")#);
    
     d.setUTCDate(#dateformat(n, "d")#);
    
     d.setUTCHours(#timeformat(n, "H")#);
    
     d.setUTCMinutes(#timeformat(n, "m")#);
    
     document.getElementById('servertime').innerHTML = d.toLocaleString();
    
    </script>
    
    </cfoutput>
    
    <div id="servertime"></div>
  • d

    drewnathanson

    11/06/2022, 4:01 PM
    @gsr. First of all, you are mixing apples and oranges. You have the first statement in CF (Server) however everything else is in Javascript which in the case is your local machine (Client). In order get the server date/time, just print the variable 'n'. If you want to that that value in Javascript, set a variable to the value of 'n' and go from.
    g
    • 2
    • 4
  • d

    Dave Merrill

    11/07/2022, 3:31 PM
    Am I right that it's possible for a session var to exist at one point in a request, then not exist later in that same request, without having been deleted in code? Session vars can expire mid-request?
  • w

    websolete

    11/07/2022, 3:58 PM
    i don't see how that would be possible as the session would be extended at the start of the request
  • w

    websolete

    11/07/2022, 3:59 PM
    at least not in common scenarios. i suppose a super short session timeout might lead to that, but that would be pretty irregular
    d
    g
    • 3
    • 2
  • r

    richard.herbert

    11/08/2022, 3:57 PM
    I’ve just been asked if this is an issue for ColdFusion/Lucee. Anyone have knowledge or an opinion? /cc @foundeo @carehart https://www.cyborgsecurity.com/threats/emerging-threats/text4shell-vulnerability/
    z
    b
    +4
    • 7
    • 74
  • t

    Tim

    11/08/2022, 9:25 PM
    Is there a trick to getting
    this.javaSettings
    in Application.cfc to work? I don't have access to restart the CF service, so I have
    reloadOnChange=true
    and yet, when I add new jars to my load path, I get class not found errors.
    z
    c
    • 3
    • 4
  • c

    Charles Robertson

    11/09/2022, 1:43 PM
    Hi everyone I am feeling a bit stupid. ☹️ I am using CommandBox and am using ColdBox v6.2.2+1396 Stupidly I did:
    Copy code
    box install commandbox-cfconfig
    When I think the correct version was already installed. Essentially, I think I overwrote the correct module.
    p
    b
    r
    • 4
    • 34
  • z

    zackster

    11/09/2022, 1:46 PM
    @Charles Robertson please use threads! (i'm going to delete this once you delete yours)
  • c

    Charles Robertson

    11/09/2022, 1:47 PM
    Sorry. I don’t understand?
    r
    p
    • 3
    • 3
  • p

    PwrSrg

    11/10/2022, 1:10 PM
    Good morning all, 🌻🌞 I have been a ColdFusion developer for almost 25 years, but am still doing everything the "*old way*", and would like to bring my code production into the modern era. Does anyone know of an existing video course that teaches intermediate to advanced techniques on modern application development using CFML/Lucee? There are of course a bunch of random one-off videos on YouTube, but nothing of real substance that focuses specifically on modern development and debugging techniques, design patterns, and best practices. Of those videos, most are severely outdated, and the ones that aren't are all ColdFusion Basics 101. And the only decent Udemy course is focused specifically on the ColdBox framework, not CFML development itself. (Though I do use CommandBox) Thanks!
    p
    a
    +3
    • 6
    • 6
  • c

    Charles Robertson

    11/10/2022, 2:00 PM
    Hi Guys When I start ACF11, using the following CommandBox recipe:
    Copy code
    cd C:\domains\<http://acf11-0-19_314546.com|acf11-0-19_314546.com>\wwwroot
    server set web.http.port=8080
    server show web.http.port
    server start cfengine=adobe@11
    The server never starts I have also tried [which I think is the same thing] but the server never starts:
    Copy code
    cd C:\domains\<http://acf11-0-19_314546.com|acf11-0-19_314546.com>\wwwroot
    server set web.http.port=8080
    server show web.http.port
    server start cfengine=adobe@11.0.19+314546
    I should tell you that I also have a stand-alone version of ACF2018 running on localhost:8500
    r
    b
    • 3
    • 75
  • b

    bdw429s

    11/10/2022, 6:42 PM
    Fun poll. Which version do you guys prefer? I just found myself writing the first version without thinking about it, but then wondered why I didn't write the second version. Then after typing out version 2, I couldn't decide which was actually clearer to read. Use the emoji's to vote, and the thread to discuss 🙂 1️⃣
    Copy code
    var headerReducer = (headers) => {
    	return headers.reduce( ( list, header)=>{
    		list = list.listAppend( "#header.name#: #header.value#", chr(13) & chr(10) );
    		return list;
    	}, '' );
    };
    2️⃣
    Copy code
    var headerReducer = (headers) =>
        headers.reduce( ( list, header) =>
            list.listAppend( "#header.name#: #header.value#", chr(13) & chr(10) ), '' );
    1️⃣ 9
    2️⃣ 5
    d
    s
    s
    • 4
    • 11
  • s

    satauros

    11/10/2022, 9:09 PM
    Does
    __iter__()
    work in CF 2016? Anyone know?
    a
    • 2
    • 4
  • t

    TEMann

    11/10/2022, 9:33 PM
    Which do you think is better? When running CF on a Windows 2019 Enterprise server, should I use IIS or Apache?
    s
    c
    +5
    • 8
    • 33
  • p

    paolo79

    11/11/2022, 2:54 PM
    Are there any problems with the Adobe ticket system? -> "No issues found" for example:
    z
    t
    +3
    • 6
    • 9
  • s

    Scott Steinbeck

    11/11/2022, 5:15 PM
    using the great spreadsheet-cfml library and i am encountering an error with an excel sheet
    Copy code
    javax.xml.parsers.FactoryConfigurationError
    Provider for class javax.xml.parsers.SAXParserFactory cannot be created
    @cfsimplicity or other, any thoughts on what is going on?
    c
    p
    • 3
    • 19
  • s

    Scott Steinbeck

    11/12/2022, 9:14 PM
    I haven’t had much use for using locking in cfml. But i would like to have a better understanding of when and why to use one. Could anyone give me some practical uses for cflock?
    b
    a
    • 3
    • 14
  • g

    gavinbaumanis

    11/13/2022, 11:20 PM
    Hi Everyone, We're doing a run-through / re-edit of our Application.cfc logic. Could I please bother you to share with me your onError() handlers? We're after some ideas of what we we should include. Thanks!
  • d

    drewnathanson

    11/14/2022, 3:33 AM
    @gavinbaumanis Here is one of my error handlers. Its very complicated but should give you an idea.
    Copy code
    public void function onError( exception, event )
    {
    
    	// Save the email body
    	savecontent variable="local.body"
    	{
    		writeOutput("
    		<h1>Error on Web Site</h1><br />
    		<table><tr valign='top'><td>");
    		writeDump(var:cgi,label:"CGI");
    		writeOutput("</td></tr><tr><td>");
    		writeDump(var:url,label:"URL");
    		writeOutput("</td></tr><tr><td>");
    		writeDump(var:form,label:"FORM");
    		writeOutput("</td></tr><tr><td>");
    		writeDump(var:arguments,label:"ERROR");
    		if ( structKeyExists(session, "userInfo") )
    		{
    			writeOutput("</td></tr><tr><td>");
    			writeDump(var:session,label:"SESSION");
    		}
    		writeOutput("</td></tr></table>");
    
    	}
    
    	// Send email
    	application.smtpObj.sendEmail("#application.emailAddress#", local.body, "Error on Web Site");
    
    }
    👍🏼 1
    p
    z
    +2
    • 5
    • 4
  • d

    drewnathanson

    11/14/2022, 3:34 AM
    This basically dump everything to an email.
    a
    d
    • 3
    • 4
  • g

    GVJustDOIT

    11/14/2022, 5:13 PM
    Hi, does anyone face issues like <script> tags are converting to <invalidTag> in index.cfm page only? recently upgraded to CF 2021, but need to install the latest patch. Can anyone please help me on this to find the root cause?
    a
    a
    m
    • 4
    • 3
  • s

    Slackbot

    11/14/2022, 5:24 PM
    This message was deleted.
  • j

    John Merholtz

    11/14/2022, 8:44 PM
    Apologies but does anyone know how to preserve case for query columns?
    w
    t
    • 3
    • 19
  • m

    Mark Takata (Adobe)

    11/15/2022, 6:04 AM
    https://cfml.slack.com/archives/C06TABBT8/p1668486417563119
    👍 4
1...212223...38Latest