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

    websolete

    05/19/2022, 2:54 PM
    or at least from a cms standpoint, not as much as mura
  • e

    Evil Ware

    05/19/2022, 3:31 PM
    I am shopping around for a CMS. Sick of PHP in general. Years, too many years on PHP, this latest 8.1 branch has me professionally wanting to quit programming altogether. So back to something that works, is stable, and gives me a warm fuzzy. Coldfusion.
    🎉 1
    s
    z
    +2
    • 5
    • 17
  • b

    bdw429s

    05/19/2022, 6:30 PM
    Here's an interesting question. Given the following code
    Copy code
    <cfloop from="10" to="1" index="i">
        foo
    </cfloop>
    It currently loops zero times. • Should CF default the loop to
    step="-1"
    when the
    from
    is greater than the
    to
    ? • How much existing code would break?
    z
    d
    +6
    • 9
    • 106
  • a

    Adam Cameron

    05/19/2022, 7:01 PM
    @bdw429s (or anyone else here, for that matter) do you see a lot of client code, or are you mostly working on Ortus projects? I am just wondering what %age of CFML out there is five-tags,
    myAccountsPage.cfm
    (etc) which has a query at the top and some mark-up & a
    <cfoutput>
    and maybe a
    <cfif>
    at the bottom, and it works fine? And they have no aspiration to do their work any differently.
    b
    d
    +5
    • 8
    • 97
  • d

    Daniel Mejia

    05/19/2022, 9:50 PM
    Is there a way to protect specific properties and still have implicit getter/setter available?
    Copy code
    component accessors=true {
      private property name="settings"; // <-- do not allow setter/getter publicly
      property name="a"; // this is ok publicly
    }
    b
    b
    +2
    • 5
    • 16
  • n

    Nikhil Lucid

    05/20/2022, 4:51 AM
    Hello Everyone, I am creating a Rest API with core functionality. I logged into cfml administrator and set the REST SERVICE. (Screen shot attached) and the path for REST API is : 'http://127.0.0.1:8500/rest/api/create_data' Now can anyone help me to set the API Path like this : 'http://127.0.0.1:8500/api/create_data' this is client's requirement to use the built-in REST in CF.
    s
    • 2
    • 2
  • z

    zackster

    05/20/2022, 2:27 PM
    https://dev.lucee.org/t/lucee-stable-release-5-3-9-141/10219
    🔥 2
    🙌 2
  • d

    Daniel Mejia

    05/20/2022, 4:09 PM
    Certificate pinning to the http requests. Who knows how to do this in cfml? Doesn't look like cfhttp has this option. I see the clientCert attribute but that is for PKCS12 file, which requires a password to decrypt. I'm working on the SDK for Duo Security, and all their latest SDKs are using PEM certs.
    e
    w
    p
    • 4
    • 13
  • d

    Dave Merrill

    05/20/2022, 7:50 PM
    Don't know if I can ask this app design question in a reasonable way, but here goes... This page basically shows a single record. Thing is, some of the data fields aren't just simple values, they're essentially an array or query with id and title fields, maybe other stuff. It's not as simple as each sub-part of the page asking for its own separate data, because some aspects of the page need to look at multiple "sections" of the data. It all has to be available to the whole page. How would you return that data to the page renderer, in what sort of structure? For instance: 1. Main query, plus a sidecar struct containing a query or array for each of the complex-value columns. 2. Main query, some of whose columns contain that complex-value data directly. Is it evil for a query to have columns with complex data? That feels more sensible to me than a separate sidecar that has to be separately referenced and/or passed around. Thoughts?
    m
    d
    a
    • 4
    • 38
  • a

    Adam Cameron

    05/20/2022, 9:17 PM
    Grrr. I really really wish CFML had proper exceptions, not just a mechanism to throw something.
    👍🏾 1
  • a

    Adam Cameron

    05/20/2022, 10:21 PM
    @abram this is code lifted straight from the CF docs: https://trycf.com/gist/60e6f6a00698f6a5994cd2c0bf19c222/acf2021?theme=monokai It runs OK on my machine (cough), so I know the code is fine. trycf.com chokes on it though, with
    There was a compilation error. '' on line 1
    Docs: https://helpx.adobe.com/coldfusion/using/java-integration-coldfusion.html#java-udf-cfc
    a
    p
    • 3
    • 4
  • g

    gavinbaumanis

    05/22/2022, 10:06 AM
    Is anyone aware of a VSCode extension that will auto document CFML functions? Thanks!
    b
    b
    • 3
    • 12
  • b

    Brian

    05/23/2022, 2:01 PM
    Is there a website with best practices on configuring servers? For example, if we want to set up a couple of redundant ACF servers behind a load balancer, what's the best way to configure the DNS, authentication, session management, security, etc?
  • a

    asishd

    05/23/2022, 3:22 PM
    Hi, Anyone using commandbox's ad-hoc coldfusion 2018 server for running development application in Intel Mac os? I am unable to set “Access-Control-Allow-Credentials” to “true” in server.json file. I have tried using set() and header() in rules section. I am afraid I am not setting it correctly using the function. Any help regarding this is much appreciated.
    b
    j
    • 3
    • 8
  • a

    asishd

    05/23/2022, 3:57 PM
    {
    "name":"api",
    "openBrowser":true,
    "openBrowserURL":"<http://localv5.com:1025/companyusers/?fwreinit=1>",
    "app":{
    "cfengine":"adobe@2018.0.14+330003"
    },
    "web":{
    "host":"<http://localv5.com|localv5.com>",
    "http":{
    "port":"1025"
    },
    "rewrites":{
    "enable":"true"
    },
    "rules":[
    "set(attribute='%{o,Access-Control-Allow-Origin}', value='<http://localv5.com:4200>')",
    "set(attribute='%{o,Access-Control-Allow-Methods}', value='GET, POST, HEAD, OPTIONS')",
    "set(attribute='%{o.Access-Control-Allow-Credentials}', value='true')",
    "set(attribute='%{o,Access-Control-Allow-Headers}', value='Authorization, BAuthorization')"
    ]
    }
    }
  • a

    asishd

    05/23/2022, 3:57 PM
    FYI, this is how the server.json looks like. Let me know if this is not needed and I can remove the above message.
  • w

    websolete

    05/23/2022, 7:12 PM
    are there any negative implications to a cfquery where maxrows=1 is stipulated as an attribute but the query itself is a
    SELECT TOP 1 ...
    (sql server)? clearly maxrows is superfluous, but i wonder if there are additional implications i should include in calling it out in a code review beyond 'this is redundant'
    a
    e
    s
    • 4
    • 20
  • f

    fmdano

    05/23/2022, 7:22 PM
    commandbox question....i installed cbox on my machine without using admin role....installed just fine....then ran server start cfengin=adobe@2018 and it downloaded the server...I am not sure that cf2018 installed correctly or not...then I brought up the site and for some reason it does not seem to be setting the application variables...i put a dump in the onRequeststart, but that dump does not run....any thoughts from anyone?
    b
    d
    • 3
    • 8
  • a

    Adam Cameron

    05/24/2022, 2:08 PM
    Hey is Lucee5 struggling on trycf.com for other ppl, or is it something Abram has set up just for me?
    • 1
    • 1
  • s

    sanjevareddy ch

    05/24/2022, 5:41 PM
    @here we are facing an issue in our project while executing sonar-scanner on coldfusion Log:
    Copy code
    ERROR: Error consuming line WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/C:/ProgramData/Jenkins/.jenkins/workspace/LABMAN/.scannerwork/runner/cflint.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) ERROR: Error consuming line WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 ERROR: Error consuming line WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations ERROR: Error consuming line WARNING: All illegal access operations will be denied in a future release 
    ERROR: Error consuming line Terminated a recursive call to include file C:\ProgramData\Jenkins\.jenkins\workspace\LABMAN\SearchSubPage.cfm
    ERROR: Error consuming line Terminated a recursive call to include file C:\ProgramData\Jenkins\.jenkins\workspace\LABMAN\SearchSubPage.cfm
    ERROR: Error consuming line Terminated a recursive call to include file C:\ProgramData\Jenkins\.jenkins\workspace\LABMAN\SearchSubPage.cfm
    ERROR: Error consuming line Terminated a recursive call to include file
    b
    • 2
    • 4
  • a

    Adam Cameron

    05/24/2022, 10:21 PM
    @sanjevareddy ch don't ever ping @-here again just because you feel like getting eyes on your problem. Thanks.
    s
    • 2
    • 1
  • a

    Abhijit Mukherjee

    05/25/2022, 7:59 AM
    Is there any reduction in ACF Enterprise license cost if I use Docker image ?
    s
    b
    e
    • 4
    • 41
  • s

    sknowlton

    05/25/2022, 3:01 PM
    Today's fun exercise: We have a vendor to whom we send off lots of user data. Turns out they can't accept any unicode characters. So somebody whose name is Tomáš breaks the universe. Anybody ever have to convert Tomáš to Tomas in CF before?
    😲 1
    b
    a
    +3
    • 6
    • 36
  • e

    elpete

    05/25/2022, 3:04 PM
    StackOverflow? https://stackoverflow.com/questions/2096667/convert-unicode-to-ascii-without-changing-the-string-length-in-java/2097224#2097224
  • m

    Mark Takata (Adobe)

    05/25/2022, 4:46 PM
    HEYYYYYY YOUUUUUU GUYSSSSSSS https://cfml.slack.com/archives/C06TABBT8/p1653497121344479
    e
    b
    • 3
    • 3
  • d

    dbinott

    05/25/2022, 5:48 PM
    Has anyone ever come across GENERATEDKEY not being output in the result struct for MSSQL (we are on 2014 and AWS RDS) insert (ACF2018 on Ubuntu)? The key is autoincrement, pk etc. The box is not checked in the datasource config. I tried the SET NOCOUNT ON/OFF. No error on the insert. The insert is happening.
    t
    • 2
    • 4
  • s

    Slackbot

    05/25/2022, 10:42 PM
    This message was deleted.
    s
    • 2
    • 7
  • a

    Angad Yadav

    05/27/2022, 2:00 PM
    HI I am using CFSPREADSHEET to export dynamic data in excel format, actually it's working fine with less data but it's taking too much time to export if i'm having large amount of data. also facing an issue and error message is "The maximum number of cell styles that the exported data exceeds. You can define up to 4000 styles". Can anyone have solution for this, Please help me on this. Thank you🙂
    g
    d
    c
    • 4
    • 6
  • m

    Marco

    05/27/2022, 3:32 PM
    I am adding "webroot":"my_domain" to server.json but when I start the commandbox CF server it quits, the server is not loadingup, any work around to add a web root? like in localhost:8500/my-domain ? thanks.
    d
    • 2
    • 12
  • m

    Marco

    05/27/2022, 3:36 PM
    yes hostname, which in my case is the root name of the directory
1...8910...38Latest