http://coldfusion.com logo
Join Slack
Powered by
# cfml-general
  • r

    risto

    04/05/2022, 6:21 PM
    I can't remember how to reference a struct key with hypens in it. log.["X-Mailgun-Sid"] didn't work.
    a
    a
    m
    • 4
    • 5
  • j

    Jim Partin

    04/07/2022, 4:42 PM
    Anyone ever run into local scope corruption within a cfc in cf21 when using ArrayMap in parallel mode, followed by an ArraySort? By local scope corruption, I mean that the local scope is now based off the ArraySort closure, outside of the closure, so that function level variables are no longer seen
    a
    m
    • 3
    • 41
  • a

    Adam Cameron

    04/07/2022, 7:30 PM
    Lazy question (I have not RTFMed at all). One can create an ordered struct via literal:
    [a=1, b=2, c=3]
    . How does one create an empty ordered struct, using literal syntax? ie: the equiv of
    st = structNew("Ordered")
    m
    m
    +3
    • 6
    • 23
  • f

    foundeo

    04/08/2022, 3:43 PM
    @rickmason posted my blog entry about AWS Lambda to Hacker News: https://news.ycombinator.com/item?id=30950094
    I had a good chuckle about the .cfm in the URL, until I clicked through and realized its a blog from a ColdFusion enthusiast about a serverless ColdFusion framework. Who knew?
    🎉 2
    😆 6
    r
    • 2
    • 2
  • r

    risto

    04/08/2022, 4:31 PM
    Hi, I'm getting hierarchical data and would like to loop through it. I don't think I will get more than one nested level of data and I wrote the following code that will work for up to 2 nested levels. I'm interested in hearing if what I wrote is okay or there are better ways to write this code. Thanks https://trycf.com/gist/65e57bf1afb3991a73fa2171cbbf8239/lucee5?theme=monokai
    d
    s
    b
    • 4
    • 17
  • s

    Simone

    04/08/2022, 5:53 PM
    in my code i am calling a url using JAVA
    Copy code
    doc = Jsoup.connect(arguments.url).get();
    now in CF i tried this but still not orking
    Copy code
    f[1] = expandPath("../jar/jsoup-1.14.3.jar");
                
                obj=createObject("component","jar.javaloader.JavaLoader").init(f);
                Jsoup = obj.create("org.jsoup.Jsoup"); 
    var doc = Jsoup.parse(url).body();
    but everythingi select is coming as empty
    m
    m
    +3
    • 6
    • 29
  • a

    Adam Cameron

    04/09/2022, 9:02 PM
    I was gonna write a chunk of stuff here about
    import
    aliasing in CFML, but decided to stick it in a blog article instead. https://blog.adamcameron.me/2022/04/cfml-revisit-import-aliasing.html. Input welcome.
    d
    • 2
    • 1
  • s

    Simone

    04/10/2022, 12:12 AM
    anyone have cf_reuseform tag
    a
    • 2
    • 3
  • s

    Simone

    04/10/2022, 12:12 AM
    its a custom tag old one
    s
    m
    • 3
    • 5
  • f

    fmdano

    04/11/2022, 7:22 PM
    Hey all, so just looked at a client site I might be working on and it is in Fusebox 5...is there anything I should be looking out for in the code....security, or other issues? I doubt I'd be able to convince the people to move off of it, but wanted to see if there was any serious issues with Fusebox 5 now....thanks
    g
    s
    d
    • 4
    • 13
  • d

    deactivateduser

    04/11/2022, 7:52 PM
    Sanity question: If there is both an Application.cfc and an Application.cfm file (In cf adobe 2018) the Application.cfm file gets ignored by default and only the Application.cfc is used correct? Is there any instance/circumstance that the system could use the Application.cfm or is it safe to just delete at this point. Application.cfc has existed in the same directory for a few years now. unfortunately I don't have a coverage of tests to test all the calls to verify in all instances the app.cfm file isn't being used.
    b
    m
    • 3
    • 5
  • s

    Sravani

    04/12/2022, 5:03 AM
    Hi all, Need help on sudden error for calling Payment gateway with Java class. We have integrated heartland payment gateway with java class files.
    createobject("java",'com.global.api.paymentMethods.CreditCardData').init()>
    Here is the error details:
    Copy code
    javax.net.ssl.SSLException
    MESSAGE: closing inbound before receiving peer's close_notify
    
    STACKTRACE:
    
    javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
    	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:129)
    	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
    	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:308)
    	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:264)
    	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:255)
    	at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:645)
    	at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:624)
    	at com.mysql.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1319)
    	at com.mysql.cj.NativeSession.quit(NativeSession.java:182)
    	at com.mysql.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1750)
    	at com.mysql.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:720)
    	at coldfusion.server.j2ee.sql.JRunConnection.close(JRunConnection.java:478)
    	at coldfusion.server.j2ee.sql.pool.JDBCPool.expire(JDBCPool.java:863)
    	at coldfusion.server.j2ee.pool.ObjectPool.closeAllResources(ObjectPool.java:434)
    	at coldfusion.server.j2ee.sql.pool.JDBCPool.closeAllResources(JDBCPool.java:1108)
    	at coldfusion.server.j2ee.pool.ObjectPool.destroy(ObjectPool.java:449)
    	at coldfusion.server.j2ee.sql.pool.JDBCManager.removePool(JDBCManager.java:198)
    	at coldfusion.server.j2ee.sql.pool.JDBCManager.clearPools(JDBCManager.java:207)
    	at coldfusion.server.CFService.stop(CFService.java:3868)
    	at coldfusion.server.j2ee.CFStartUpServlet.destroy(CFStartUpServlet.java:573)
    	at coldfusion.bootstrap.BootstrapServlet.destroy(BootstrapServlet.java:333)
    	at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1304)
    	at org.apache.catalina.core.StandardWrapper.stopInternal(StandardWrapper.java:1606)
    	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
    	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5527)
    	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
    	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1414)
    	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1403)
    	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
    	at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:988)
    	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
    	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1414)
    	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1403)
    	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
    	at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:988)
    	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
    	at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:502)
    	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
    	at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:986)
    	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
    	at com.adobe.coldfusion.launcher.Launcher.stop(Launcher.java:2193)
    	at com.adobe.coldfusion.launcher.Launcher$1.run(Launcher.java:1121)
    	at java.base/java.lang.Thread.run(Thread.java:834)
    s
    • 2
    • 10
  • s

    Simone

    04/12/2022, 12:28 PM
    with lots of cf version, what is the best way to get the query column names in same order and case whatever is specified in the sql query
    a
    • 2
    • 2
  • s

    Simone

    04/12/2022, 7:51 PM
    my json is still bring whitespace REReplace(utils.jsonencode(data), "[[space]]+", "", "all" ) in my functions i am using output false
    m
    b
    • 3
    • 8
  • f

    Formiko

    04/12/2022, 11:39 PM
    I found code on github that is using cfsessionswap tag. It doesn't run on lucee and I can't seem to find it on adobe, is this a newer adobe tag? what does it do?
    s
    d
    m
    • 4
    • 7
  • n

    Nicole Liliana

    04/13/2022, 8:43 AM
    I need to block the execution of coldfusion debug in my project, any advice? Possibly without Coldfusion Admin
    a
    a
    +3
    • 6
    • 9
  • j

    James Ramsey

    04/13/2022, 5:38 PM
    I am trying to convert my app from ACF - 2018 to Lucee 5.3.8, but I can't see to get onSessionStart to trigger. Any suggestions?
    b
    d
    • 3
    • 7
  • t

    Todd Bain

    04/13/2022, 8:19 PM
    Howdy all, I am extremely new to json / api calls. I am trying to utilize the slack webhook to post information to our local slack group based on DB information. Would someone who has done something as simple as a test message mind sharing the code so I can understand what it is I'm shooting for? I'm not looking for anything complex, I need those baby steps so I can learn to walk. Here is my code and it absolutely is getting me nowhere:
    Copy code
    <cfhttp url="<https://hooks.slack.com/services/BLAH/BLAH/BLAHHHHHHHH>" method="POST" result="test">
        <cfhttpparam type="header" name="Content-Type" value="application/json">
        <cfhttpparam type="body" value="data { display_information: {name: {Bot}} {text: {Test}}}">
    	</cfhttp>
    b
    • 2
    • 12
  • a

    Adam Cameron

    04/13/2022, 11:07 PM
    Can someone pls remind me which release of Lucee deals with the Log4J issue?
    s
    r
    d
    • 4
    • 14
  • f

    fmdano

    04/14/2022, 1:39 PM
    Hey all, a client of mine says they have RAW TEXT on the page and supposedly bots are hitting the page and scrapping email info and then spamming the users on the page.....besides CAPTCHA on the page (if that would even help), any ideas about how to keep bots from scrapping raw text on a cfml page.....thoughts....I have no ideas so reaching out to you all 🙂
    d
    p
    +8
    • 11
    • 64
  • d

    Dave Merrill

    04/14/2022, 5:17 PM
    Can someone tell me if there's a way to use cfhtmlhead from cfscript in CF 2018? This doesn't work, says Variable CFHTMLHEAD is undefined:
    cfHtmlHead(text="#arrayToList(aList)#<br>");
    d
    s
    a
    • 4
    • 18
  • b

    bhartsfield

    04/14/2022, 10:11 PM
    I am sending a PATCH request into a legacy fusebox app (running on lucee/commandbox) behind an IIS proxy but it is being converted to GET somewhere, somehow. Any ideas what could be causing something like that?
    s
    b
    • 3
    • 17
  • s

    Simone

    04/15/2022, 3:06 PM
    i am trying to use cfqueryparam in rereplace to replace the value using cfqueryparam any sample how can i do it i don't want to use directly like cfqueryparam , i am using in cfsavecontent and using in the functions where needed, here is my code
    Copy code
    <cfif len(trim(arguments.sSearch))>
    				AND
    				    ( 
    				    <cfloop list="#arguments._listColumns#" index="thisColumn">
    				    <cfif thisColumn neq listFirst(arguments._listColumns)> 
    				    OR 
    				    </cfif>
    				    	#thisColumn# LIKE '%#trim(arguments.sSearch)#%'   
    				    </cfloop>
    				    )
    				</cfif>
    m
    s
    +2
    • 5
    • 12
  • d

    Dave Merrill

    04/15/2022, 6:08 PM
    I'm trying to test code to handle queries that run way unexpectedly long. I'm adding timeout="5" to some cfqueries, and in the query itself, using the SQL Server-specific construct
    WAITFOR DELAY '00:01'
    to push execution time out enough to trigger a timeout exception in cf. It's not acting like I'd expect, seems the query times out anyway, which it shouldn't. Seems like MSSQL treats any WAITFOR as meaning something different that the docs I've seen. Thoughts?
    • 1
    • 2
  • d

    David Price

    04/17/2022, 10:42 PM
    Is there anyone else out there getting a permission error using IIS and BonCode1.3 connecting to CommandBox? IIS is giving 500.19 error. It is stating: ConfigError: Cannot read configuration file due to insufficient permissions. Config File: \\?\C:\WebSites\PDFServer\Prod\web.config I am not sure why the \\? is there! It looks like a UNC I have tried changing the permissions but to no avail. I can run my CFML sites on the local port but not the IIS port.
    b
    • 2
    • 9
  • r

    romanstr

    04/18/2022, 12:58 PM
    Hi. I use fileWrite to upload file to S3. But I have problems with file names with special charaters (e.g. @). I'm able to create such files by Amazon Console, but ACF 2018 gives me an error: "*Error occurred while performing write: java.io.FileNotFoundException".* I tires to use url encode, html code, but it hasn't helped me. Is there correct method?
    b
    • 2
    • 2
  • s

    Simone

    04/18/2022, 3:41 PM
    how can i call the this.mappings['/javaloader'] = GetDirectoryFromPath(ExpandPath( "cfc/jar/javaloader/")); in my application.cfm
    s
    b
    • 3
    • 2
  • r

    rickmason

    04/19/2022, 5:45 AM
    John Farrar is presenting on 13 ways to modernize with Vue 3 at tonight’s Mid-Michigan CFUG meeting at 7 pm eastern time. Learn everything that is new and how to transition to Vue 3. Meeting URL: https://bit.ly/3rwOxvq
    👍🏾 1
    d
    • 2
    • 2
  • a

    Ali Jaffrey

    04/19/2022, 4:23 PM
    Anyone having an issue with having CF 2021 on Mac w/ Big Sur or Monterey AND with working on APACHE? CF server works fine but will not plug into apache. Per https://helpx.adobe.com/coldfusion/kb/coldfusion-2021-update-2.html#lambda known issue “On macOS Big Sur, if you start Apache after configuring a connector, you see a warning message, “No code signing authority for module at /private/etc/apache2/mod_jk.so specified in LoadModule directive. Proceeding with loading process, but this will be an error condition in a future version of macOS.“” On Mac I made my own coding signing certificate and signed the mod_jk.so but still no go in apache.
    p
    s
    • 3
    • 6
  • j

    John Wilson

    04/19/2022, 7:25 PM
    Does anyone know how to do direct-to-disk http downloads in lucee? cfhttp wants to read the entire file into memory before I can save it and I need to grab a 28GB file from an S3 signed url regularly.
    b
    f
    e
    • 4
    • 11
1...567...38Latest