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

    Brad Harding

    10/13/2022, 5:22 PM
    @Mark Takata (Adobe) Do you know why? I find the log page of CF Admin pretty useful.
    t
    m
    d
    • 4
    • 5
  • j

    John Varady

    10/17/2022, 1:03 PM
    Attempting to convert a doc to pdf without open office installed results in an untrappable error:
    Could not initialize class com.sun.star.lib.loader.WinRegKey
    I'd like to be able to attempt to convert and catch the error but that seems impossible-
    Copy code
    <cftry>
      <cfdocument format='pdf' srcfile='C:\ColdFusionWebroot\upload-testing\6personal_essay.docx' name='mydoc' />
      <cfcatch type='any'>
        <cfdump var='#cfcatch#'>
      </cfcatch>
    </cftry>
    a
    • 2
    • 4
  • a

    Adam Cameron

    10/18/2022, 6:58 PM
    Hey all. Does anyone have CF10 running in dev that they can experiment on? CF10 on trycf won't help here. Trying to help this person: https://stackoverflow.com/q/74061026/894061
    w
    p
    +2
    • 5
    • 47
  • d

    Dave Merrill

    10/19/2022, 1:20 PM
    Arrrggg. We keep getting hit by intermittent template not found errors, and Element EXECUTIONMODE is undefined in THISTAG. Once it starts, there are a lot of them, missing the same file, which is the same one throwing the EXECUTIONMODE error. Clearing the template cache fixes it, but I'm not happy doing manual interventions to get the site back running. Happened yesterday, and again this morning. I've talked about this before, but since I don't have steps to repro not much came of it. We're not saving class files. Two completely different apps, different servers, different domains, one CF2018, one CF2021. Both ran for many years on CF9 without any of this. One of my colleagues has heard rumors that absolute paths for cfinclude and cfmodule are less reliable than relative paths. I'm reluctant to go through these big apps and change that everywhere, just to see if it makes a difference. Does anyone have any concrete experience that it did or didn't help in your case? Any other ideas?
    e
    • 2
    • 2
  • t

    TEMann

    10/19/2022, 5:35 PM
    Can someone tell me what Jetty is? There is folder in the cfusion install name jetty. Inside of that is a JRE folder. Our security group states that it found an old JRE (1.10.0) in /jetty that is EOL. They are saying to upgrade it. Trying to discover what it is. Why it is there. Shouldn’t it have been upgrade automatically with hotfixed? and most importantly - what is the best course of action ?
    f
    b
    e
    • 4
    • 24
  • g

    gus_dancy

    10/19/2022, 8:01 PM
    So I have a report that I display in html, and have an option to download as pdf. Now I need it MS word. This works in chrome: <cfheader name="Content-Disposition" value="attachment;filename=downloadReport.doc"> <cfoutput><!--- <META http-equiv="Content-Type" content="application/rtf;" /> ---> <html> <head> <title>Word</title> <link rel="stylesheet" type="text/css" href="#application.serverroot_secure#/docs/css/layout_print.css" src="#application.serverroot_secure#/docs/css/layout_print.css"> <meta http-equiv="Content-Type" content="application/msword"> </head> #fusebox.layout# </html> </cfoutput> But Firefox opens it with excel!
    m
    • 2
    • 1
  • h

    hemi345

    10/19/2022, 10:24 PM
    Anyone know the cfzip script syntax for ACF 2021 using cfzipparam? I can make it work with tag syntax, but would rather use cfscript. The following results in the error "No source specified in cfziptag."
    Copy code
    cfzip(file = 'c:\files\pictures.zip') {
        cfzipparam(source = "c:\files\picture.jpg");
    }
    g
    b
    • 3
    • 11
  • j

    joechastain

    10/20/2022, 2:07 PM
    Howdy everyone. I've been messing around with some oop stuff and ran into something that has me scratching my head. I can successfully call a static method from a class without instantiating an object of that class as advertised. However, whenever I try to call a static method from an abstract class, CF blows up and states that it can't create the abstract component. This is confusing to me since I'm calling a static function which by definition shouldn't need to create an instance. So calling a static method works until I define the class I'm calling it from as abstract. Not sure what I'm missing.
    b
    z
    +3
    • 6
    • 46
  • m

    Marc Funaro

    10/20/2022, 5:57 PM
    Updated my local CF2021 install to update 5, and now CF will not start. server.log file shows the lines below. Not sure where to look next... any advice?
    Copy code
    "Severity","ThreadID","Date","Time","Application","Message"
    "Information","main","10/20/22","10:13:12","","C:\ColdFusion2021\cfusion\logs\server.log initialized"
    "Fatal","main","10/20/22","10:13:12","","Unable to install Logging package: java.lang.NoSuchMethodError: org.apache.logging.log4j.util.StackLocatorUtil.getCallerClassLoader(I)Ljava/lang/ClassLoader;"
    "Information","main","10/20/22","10:13:12","","Unable to initialise CFStartupServlet:Unable to install Logging package: java.lang.NoSuchMethodError: org.apache.logging.log4j.util.StackLocatorUtil.getCallerClassLoader(I)Ljava/lang/ClassLoader;"
    "Information","main","10/20/22","10:13:12","","ColdFusion: application services are now available"
    c
    s
    • 3
    • 15
  • j

    John Wilson

    10/20/2022, 9:56 PM
    Does anyone have an opinion on the fastest/most elegant way to turn a query into a CSV file while maintaining column order?
    s
    a
    +2
    • 5
    • 74
  • d

    Dave Merrill

    10/21/2022, 8:33 PM
    Docs for cflocation say this:
    Copy code
    ColdFusion 11: The addToken attribute is modified. If Secure Profile is enabled, addToken's default value will be "false".
    Is there some other way to set that default to false, without using the whole Secure Profile?
    f
    • 2
    • 3
  • d

    Daniel Mejia

    10/23/2022, 12:53 AM
    id  |   String   |   The unique identifier for the object. For example, 12345678-9abc-def0-1234-56789abcde. The value of the id property is often but not exclusively in the form of a GUID; treat it as an *opaque identifier* and do not rely on it being a GUID. Key. Not nullable. Read-only.
    How would you treat this string in your database? Say you needed to save this value in your database. varchar(50)?
    w
    a
    • 3
    • 6
  • d

    dfgrumpy

    10/24/2022, 1:18 AM
    I can’t even make this up… This is actual code I found in an old system I am reworking. These are the exact lines in the code, in order, no alterations.
    Copy code
    <cfset workdate = '*****'>
    <cfset workdate = dateformat(#qry.closingdate#, 'mm/dd/yyyy')>
    
    <cfif isdefined('qry.closingdate') and len(qry.closingdate) gt 0>
    	<cfset workdate = dateformat(#qry.closingdate#, 'mm/dd/yyyy')>
    <cfelse>
    	<cfset workdate = ''>
    </cfif>
    🙃 1
    😆 3
    😱 4
    slowclap 1
    g
    a
    • 3
    • 2
  • s

    satauros

    10/24/2022, 10:25 AM
    Just dropping a quick design question in here, what do you guys implement / prefer, including a beanFactory (di/1 e.g. ) as a dependency in a component for creating (transient) beans or just creating the beans using the fully qualified path (e.g.
    new <app>.models.beans.BeanName( args )
    )?
    e
    a
    • 3
    • 3
  • m

    Mauro caresimo

    10/24/2022, 12:48 PM
    When an external request is made to an API built in Fusebox which file is called first fbx_switch.cfm or fbx_settings.cfm
  • d

    Dave Merrill

    10/24/2022, 2:11 PM
    Is there a way to see the last time the CF service started in cf admin, or in code? I know it shows in FusionReactor, but one app's dev box doesn't have it.
    f
    a
    • 3
    • 12
  • r

    rickmason

    10/26/2022, 2:40 AM
    Here's a meeting that I did for Mid-Michigan CFUG on Supabase. What is Supabase? It's an open source package that includes Postgres db, postgREST plug-in that lets you publish API's. There are also plug-ins for oAuth, S3 style storage buckets, edge functions (Serverless), manage user permissions, realtime (websockets), webhooks and more.

    https://youtu.be/9MMoOW9_pIQ▾

    👍 3
    👍🏾 1
  • g

    Graham

    10/27/2022, 4:41 AM
    Here is a session/browser question. If a user is simultaneously logged in to a CF application using two seperate browsers then my understanding is that each browser will have its own unique session ID. If the user logs out of one of the web browsers is there any way known that they can also be force logged out, and session expired, from the other browser? Thanks, and sorry if it's a bit of a newbie question.
    z
    e
    • 3
    • 15
  • g

    garciadev

    10/27/2022, 2:29 PM
    Is cfdocs.org down at the moment? @foundeo Some pages come up, others are displaying a Cloudflare Bad Gateway message
    r
    w
    m
    • 4
    • 5
  • s

    sknowlton

    10/27/2022, 3:53 PM
    What are people using for 2FA / 'trust this device' & text a code to a phone number? rolling your own? auth0? something else?
    r
    t
    +5
    • 8
    • 8
  • z

    zackster

    10/27/2022, 3:55 PM
    Just released! 5.3.9.166 Stable https://dev.lucee.org/t/lucee-5-3-9-165-stable-release/11319
    🎉 4
  • s

    Scott Steinbeck

    10/28/2022, 6:23 PM
    if i have a reference to a closure, is there a way (outside of a doing a file read for the lines in the code) to get back a the code block of the function?
    Copy code
    var test = function(a){ return a + 2 };
    and i want to get back
    Copy code
    'function(a){ return a + 2 };'
    b
    • 2
    • 2
  • c

    ccsimmons

    10/28/2022, 6:26 PM
    After installing ColdFusion 2021 Update 5 today I am unable to install the caching package. Has anyone else received the error "An error has occurred while installing the package caching. Exception : Read timed out"
    d
    c
    • 3
    • 5
  • j

    johnbarrett

    10/28/2022, 8:58 PM
    One hour until the next Hawaii ColdFusion User Group next meeting with Mark Takata on the new CF Builder extention for VS Code, please RSVP for your spot https://www.meetup.com/hawaii-coldfusion-meetup-group/events/288977258/
    s
    • 2
    • 4
  • j

    John Wilson

    10/29/2022, 5:38 PM
    I needed to use javacast() for the split function. Can someone tell me how to convert this back to a coldfusion array?
    Copy code
    javaCast("string", row).split(',(?=([^\"]*\"[^\"]*\")*[^\"]*$)')
    a
    • 2
    • 4
  • z

    zackster

    10/30/2022, 9:33 AM
    Anyone got an idea how to write to a to an environment variable from cfml? I want to output the errors from a Lucee build on github actions, i.e.
    $GITHUB_STEP_SUMMARY
    https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-4
    a
    • 2
    • 7
  • s

    Scott Bennett

    10/31/2022, 4:01 PM
    Just a curiosity for me.... why does this code output "10" in ACF and "truefalse" in Lucee? Is it just a quirk, or is it intentional for some reason?
    Copy code
    <cfscript>
     myVar1 = true;
     myVar2 = 1;
     myVar3 = 0;
        
     writeoutput(myVar1 and myVar2);
     writeoutput(myVar1 and myVar3);
    </cfscript>
    m
    s
    a
    • 4
    • 68
  • p

    pauls

    11/01/2022, 3:09 PM
    A cfspreadsheet question: I have an app that generates complex spreadsheets and streams them to the user’s browser in .xlsx format. The resulting spreadsheets used to work in Excel but now error (invalid file format or extension) due (I think) to extension hardening. Is there a way to generate “real” .xlsx spreadsheets out of CF that Excel will accept?
    m
    m
    +2
    • 5
    • 18
  • i

    iknowkungfoo

    11/01/2022, 3:37 PM
    QQ: How do new people join this workspace? Is the Heroku app still the only way to get an invite?
    w
    e
    s
    • 4
    • 3
  • z

    zackster

    11/03/2022, 10:30 AM
    https://dev.lucee.org/t/openssl-and-coldfusion-lucee-tomcat-vulnerabilities-spooky-ssl/11380
    👍🏻 1
    👍 3
    d
    f
    j
    • 4
    • 8
1...202122...38Latest