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

    bdw429s

    09/28/2022, 3:08 PM
    I just received the sad news that long-time CF-er @joe.gooch passed away unexpectedly this week. https://www.stephensfuneral.com/obituary/joseph-j-gooch/
  • s

    Simone

    09/28/2022, 3:08 PM
    like as an example, i want to check the table for my login credentials and if success log i me in
  • t

    TEMann

    09/28/2022, 8:53 PM
    Hardening server per Adobe document. Checked the “Disable updating ColdFusion interanl cookies using ColdFusion tags/functions.” Upon doing this, one of the sites hosted on the server stopped working. Unchecked it, and the site started working again. Can’t leave it unchecked. Trying to determine what to tell the developer of the site that stopped functioning for what they might need to modify in their code.
    a
    b
    • 3
    • 3
  • s

    satauros

    09/29/2022, 12:20 PM
    Just a quick question (after a long period of silence), but, it is possible to pass the current user's credentials to a cfhttp request?
    z
    • 2
    • 9
  • v

    Victor B Vieira

    09/30/2022, 1:00 AM
    Good evening, has anyone had the need to perform an upload on an nfs? I'm changing the application to use a network mapping for the upload, but lucee doesn't accept me putting //<ip>/folder or the mapped drive on the server: F:/folder/
    a
    e
    • 3
    • 10
  • f

    foundeo

    09/30/2022, 1:43 PM
    FYI: https://inside.java/2022/09/23/quality-heads-up/ I know ACF / Lucee do not yet even support JDK19, but possibly something to be aware of: Double.toString() and Float.toString() changes
    s
    g
    • 3
    • 11
  • t

    Tim

    09/30/2022, 3:00 PM
    If I call
    cfsetting requesttimeout
    from within a function in a cfc, will it apply that setting to the cfm that called it?
    v
    • 2
    • 5
  • j

    Jim Frankowski

    09/30/2022, 4:34 PM
    Just watched a really informative presentation by @carehart about CFSetup -

    https://www.youtube.com/watch?v=S_UfNptoz4U▾

    (missed it yesterday due to meetings). My anticipation of "am I forgetting something" has significantly reduced after seeing what CFSetup can do -- and especially how to use it! Thanks for the nice demo!
    d
    c
    d
    • 4
    • 11
  • m

    Marc Funaro

    09/30/2022, 6:18 PM
    Anybody think of a reason why this shouldn't work, to be able to pass an object a Struct and have it bulk-update the fields of the object?
    Copy code
    public Boolean function setMemento( required Struct updates )
    	{
    		var setter = "";
    		var value  = "";
    
    		for(var key in updates)
    		{
    			setter = "set#Key#";
    			value = updates[key];
    			invoke( this, setter, value );
    		}
    
    		return true;
    	}
    It's not throwing any errors, but it's also not updating the values.
    a
    m
    • 3
    • 9
  • j

    Jim Partin

    09/30/2022, 10:20 PM
    ugh, this scope corruption bug from each() and map() in ACF is killing me. I really hope it gets patched soon.
    a
    m
    • 3
    • 7
  • a

    Andreas

    10/01/2022, 4:08 PM
    Does anyone know another way of sanitizing SQL without cfqueryparam in cfml? It's for use in the SELECT zone, and not within the WHERE conditions.
    t
    a
    n
    • 4
    • 6
  • g

    gsr

    10/02/2022, 3:16 PM
    i am running a query and its working good in sql but when i execute with CF, i am getting an error, i tried using preservesinglequotes but it is still failing, I am on CF 2016
    Copy code
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select concat(''<a href=index.html?action=newreg&id='',id,''>'') as id ,`name`,a' at line 1 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:389) at com.mysql.jdbc.Util.getInstance(Util.java:372) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:980) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3835)
    a
    g
    m
    • 4
    • 10
  • e

    Evil Ware

    10/03/2022, 12:31 PM
    reboot and then manually check the java path by firing up the console (CMD) line and typing in java .. you should see a bunch of options, otherwise, you may have your paths wrong which happens when Java updates and the path becomes pointed to the wrong subdirectory.
    m
    c
    • 3
    • 2
  • s

    Slackbot

    10/03/2022, 6:56 PM
    This message was deleted.
    j
    a
    j
    • 4
    • 9
  • a

    Alan

    10/05/2022, 11:10 AM
    what I'd imagine is a fairly straight forward question. If I 2 variables defined with the same name at different scopes.
    VARIABLES.foo
    and
    var foo
    within a function (which I think is the equivalent of
    LOCAL.foo
    ?) and within that function I assign foo a value using
    foo = 'test'
    would I be correct in thinking it'd use the local variable ?
    t
    t
    +5
    • 8
    • 18
  • s

    salted

    10/06/2022, 1:12 AM
    Having you back Adam is like IRC again now, as very few of the old ‘regs’ still chat like we all did
    a
    • 2
    • 1
  • s

    Scott Steinbeck

    10/07/2022, 7:30 PM
    can a cfc recursively create an instance of itself?
    b
    s
    +3
    • 6
    • 24
  • j

    johnbarrett

    10/07/2022, 9:41 PM
    The next Hawaii ColdFusion User Group will be a presentation one the new Adobe ColdFusion Builder extentation for VS Code with Mark Takata Please RSVP here https://www.meetup.com/hawaii-coldfusion-meetup-group/events/288977258/?isFirstPublish=true
    👍 2
  • n

    Nate Smith

    10/07/2022, 11:31 PM
    Getting back into cfml from 10 years away. I used to have an ide that was lightweight, would complete tags and show parens. I seem to recall it was inexpensive ($60 USD) or free and the cfml add-on was separate or community. Can't remember the name. Anyway I'm looking for something inexpensive with the tag features and low bloat. Recommendations?
    👋 1
    b
    s
    +3
    • 6
    • 9
  • g

    gsr

    10/08/2022, 6:41 PM
    trying to use the mod operator to display rtwo items on the row, but somehow its always displaying one item on row i have a cfloop over an array and at the bottom before my array ends, i am adding a code to
    Copy code
    <cfif ((e-1 % 2) + 1) mod 0>
              </div>
          </cfif>
    a
    • 2
    • 2
  • a

    Angad Yadav

    10/10/2022, 5:11 AM
    Hi Guys, Is anyone can share ColdFusion 2018 installer link with me, Please?
    s
    • 2
    • 2
  • s

    satauros

    10/10/2022, 10:10 AM
    Does anybody know if the mura channel is still alive?
  • j

    James Balaguer

    10/11/2022, 3:53 PM
    Is there a way to grab the enum values from a mySQL table via
    cfdbinfo()
    ? I’m running it with
    Columns
    but not seeing it.
    g
    • 2
    • 5
  • b

    Brian

    10/12/2022, 2:50 PM
    At the end of Joel Cohen's presentation during the recent CF Summit there was a Q&A period where someone asked about the opportunities for developers to be creative. While it may not apply to all of you, one opportunity that I love is the custom 404 page! This page is often neglected and boring, so why not exercise your creative side and come up with one that is consistent with your organization's brand but fun too? For inspiration try: https://www.canva.com/learn/404-page-design/
    👍 2
    a
    • 2
    • 1
  • d

    davla

    10/12/2022, 4:10 PM
    Has anyone had any success using the Google Indexing API? I am trying to use this https://github.com/coldfumonkeh/googleindex and I got it working on my local commandbox install. When I deploy the code to my EC2 instance (running Lucee on Ubuntu) I can’t even generate an access token. I am seeing the following error when I just call the getAccessToken() method:
    Copy code
    error: invalid_grant
    error_description: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim.
    I have checked the time on the server and it is set correctly in UTC.
    z
    • 2
    • 1
  • d

    Daniel Mejia

    10/12/2022, 7:41 PM
    @Adam Cameron how did you setup this testbox test in trycf.com https://trycf.com/gist/3386f9fb47ba1414634083820ff451f3/acf2021?setupCodeGistId=816ce84fd991c2682df612dbaf1cad11&amp;theme=monokai
    s
    a
    +2
    • 5
    • 35
  • j

    jakobward

    10/13/2022, 4:30 PM
    I’m trying to get a ® in the cfmail subject line. I’ve tried that character, I’ve tried &reg;, I added utf-8 charset, I tried saving it in a variable and outputting…all no good. Anyone had success with this?
    t
    a
    • 3
    • 9
  • b

    Brad Harding

    10/13/2022, 5:21 PM
    Looks like update 15 to ColdFusion 2018 removes the ability to access logs from CF Admin
  • b

    Brad Harding

    10/13/2022, 5:21 PM
    https://helpx.adobe.com/coldfusion/kb/coldfusion-2018-update-15.html
  • b

    Brad Harding

    10/13/2022, 5:22 PM
    LOG FILES PAGE IN COLDFUSION ADMINISTRATOR In the list of log files, the buttons to View, Download, and Delete a log file have been removed. Also, the log files are no longer clickable.
1...192021...38Latest