http://coldfusion.com logo
Join Slack
Powered by
# lucee
  • z

    zackster

    04/16/2025, 6:29 PM
    https://docs.lucee.org/reference/functions/filemodetosymbolic.html
    q
    • 2
    • 4
  • e

    emergence

    04/17/2025, 12:56 PM
    I'm stumped, I'm using a Azure Cache for Redis server for session management, it worked for a short amount of time, but stopped at one time, the server reports no Gets or Sets occurring The connection in the admin reports OK app.cfc <cfset this.sessionCluster = true /> <cfset this.sessionStorage = "redisStorage" /> <cfset this.sessionType = "jee" />
    z
    • 2
    • 29
  • z

    zackster

    04/17/2025, 6:48 PM
    https://dev.lucee.org/t/demo-json-pretty-printing-with-lucee-6-2/15015
    👏 2
    ❤️ 1
  • e

    Erin Brewer

    04/17/2025, 11:02 PM
    syntax question i guess i've never noticed before. If i have a function with an argument of type struct, can i not default it to an empty struct {} ?
    Copy code
    <cfargument name="keywordSearchConfig" type="struct" required="no" default={}>
    
    Argument [keywordSearchConfig] is of invalid type, Cannot cast String [{}] to a value of type [struct]
    w
    d
    +2
    • 5
    • 11
  • c

    Carl Jagerski

    04/19/2025, 5:18 AM
    When I read MSSQL with ORM EntityLoadByPK(), when it's any date or datetime column the date displays a day back. In MSSQL the datetime is 2025-03-30 000000.000 but ORM gets 2025-03-29 230000.0000. Does anybody what causes this. What can I do?
    z
    w
    • 3
    • 2
  • l

    leftbower

    04/22/2025, 11:39 PM
    This looks great! https://cfml.slack.com/archives/C06T99N9G/p1744924139666429?thread_ts=1744921867.947549&amp;cid=C06T99N9G
    z
    • 2
    • 3
  • r

    risto

    04/23/2025, 5:55 PM
    I have always used #flash(flashKey)# to display my error,info, etc messages. Above lucee 5.4 it breaks and says "Message Can't cast Complex Object Type Array to String Detail Use Built-In-Function "serialize(Array):String" to create a String from Array" . Anyone know how to rewrite it? if I was hardcoding it would be flash("info").
    b
    z
    d
    • 4
    • 17
  • e

    emergence

    04/23/2025, 9:27 PM
    In lucee, does the cfdocument saveAsName work? tried a few versions, but doesn't appear so, but don't see it in in the code branch 6.2 i did see this older work item about it though [LDEV-3781] cfdocument attribute saveAsName not implemented - Lucee
    e
    • 2
    • 3
  • d

    dswitzer

    04/23/2025, 9:28 PM
    I've got some code where I need to check if a variable is an instance of a specific component. The appropriate function to call would be
    isInstanceOf()
    , but this has huge performance impacts (I'm still on Lucee 5.4.6.9). See https://luceeserver.atlassian.net/browse/LDEV-4905 for details. What's the fastest way to verify if a variable is an instance of a specific component? The fastest method I've found so far is to use
    getMetaData()
    and check the component name, but I feel like there's still got to be a faster way. Using
    isInstanceOf()
    the code I'm testing will take 15-30 seconds to run. Using
    getMetaData()
    , the time drops down < 1s.
    b
    z
    • 3
    • 22
  • c

    Cage S

    04/24/2025, 2:11 PM
    Hopefully, quick questions for the experts :): 1. should hibernate and queryexecute connections automatically be closed when used inside runAsync? 2. Same question for use of cfthread. Asking because seems as if database connections / connection pools are being left open / abandoned resulting in “max connections reached, additional reserved for super user” errors since upgrading from lucee 5 to lucee 6 (all stable + RC) and change of one cfthread to runAsync equivalent.
    z
    • 2
    • 24
  • a

    Asher Densmore-Lynn

    04/24/2025, 2:48 PM
    Okay, perhaps I'm just going mad. I thought
    PROTECTED
    was a private scope for components and our Adobe CF and Lucee 4.x/5.x code is enthusiastically accepting our use of this scope but I can't find any documentation anywhere in the world that acknowledges this scope as a thing that exists. Can anyone tell me what I've done here?
    z
    d
    b
    • 4
    • 15
  • z

    zackster

    04/24/2025, 3:33 PM
    been hacking away at a cfdocs export from lucee-docs, so you can have full lucee help docs in vscode https://luceeserver.atlassian.net/browse/LDEV-5520
    📑 1
    👍 2
    👍🏼 1
    • 1
    • 3
  • a

    alholden

    04/25/2025, 6:22 PM
    Does the S3 extension include a command to
    .close()
    each connection after use? Were getting quite a few of these in the logs (using Masa and S3 for images and assets).
    Unable to execute HTTP request: Timeout waiting for connection from pool;com.amazonaws.SdkClientException
    I found this: https://stackoverflow.com/questions/17782937/connectionpooltimeoutexception-when-iterating-objects-in-s3?rq=4
    z
    • 2
    • 5
  • a

    alholden

    04/25/2025, 6:24 PM
    stack.txt
    stack.txt
  • d

    David Johnson

    04/25/2025, 8:34 PM
    I've clicked Stop Server in my windows bin for my lucee server and my CMD says Runwar: Stopping Server 'Servername' but it's just sitting there. What's the next step to shut the server or services down when that doesn't work?
    p
    b
    • 3
    • 9
  • z

    zackster

    04/26/2025, 8:23 AM
    Lucee docs finally has camel cased args and attributes, much more readable https://dev.lucee.org/t/full-lucee-docs-for-vscode-cfmleditor/15046/2
    🤘 1
    🎉 1
  • q

    quetwo

    04/27/2025, 1:55 AM
    Are there any tutorials or docs other than https://docs.lucee.org/guides/lucee-5/extensions.html to build your own Lucee Extensions? Specifically, I'm having some issues trying to create a server virtual mapping on install to point to a set of code that lives within the {server-context}/ I'm having a hard time figuring out what mappings directive would look like.
    z
    • 2
    • 1
  • z

    zackster

    04/27/2025, 12:43 PM
    https://dev.lucee.org/t/code-block-rendering-fixed-on-lucee-docs/15054
    👍 2
    👍🏼 1
  • z

    zackster

    04/28/2025, 4:33 PM
    6.2.1.122 stable is out https://dev.lucee.org/t/lucee-6-2-1-122-stable-released/15059
    🎉 9
  • b

    Bill Nourse

    04/29/2025, 3:22 PM
    Are there any advantages of using the Async Gateway over schedule tasks. For example, when sending the same request at intervals? They both ultimately can do the same thing, but is the gateway more efficient? Thanks!
    r
    z
    • 3
    • 5
  • z

    zackster

    04/29/2025, 6:26 PM
    https://dev.lucee.org/t/poll-should-errors-on-lucee-start-up-deployment-be-fatal/15064
  • p

    paul

    04/30/2025, 4:58 AM
    In Lucee, I can see how to load extentions dynamically, example by enviroment variable. However if I open a .lex file there are the jars and there is a file that looks to be the definition of the functions/tag that are part of that extention. What I want to know is how I can "pre-load" that in to the lucee lite jar file. I am using Fuseless on lambda so do not have the ability to download extentions via admin. Enviroment variables works fine but slows down startup time.
    b
    z
    • 3
    • 33
  • d

    dswitzer

    04/30/2025, 2:34 PM
    I'm probably looking in the wrong spots, but are there any guides on getting Lucee 6.2.1.122+ manually up and running using Tomcat 11? I see that Lucee 6 installer has recently switched to installing Tomcat 11 for new versions, so I'm using that as a blue print, but not being familiar with all of the installer following the source is slow for me. Is cfml_mod still required? It looks like it, but it looks like you need v2, which I do not see an official release for on https://viviotech.github.io/mod_cfml/download.html.
    z
    • 2
    • 55
  • d

    dswitzer

    05/01/2025, 2:23 PM
    Is there a way to importing multiple .CFConfig.json files at once to configure Lucee 6.2+? I'm working on updating our provisioning from Lucee 5 to 6. We are currently using a tool that we forked from something else which allows us to pass in JSON files to configure Lucee using a designated endpoint. We split our configs into multiple files, because we have like a "base" config and then configs that are specific to different environments. I'd like to migrate this over to .CFConfig.json. I know I can copy a .CFConfig.json to the deploy folder to have it picked up, but I'd hate having to copy each one over, wait for it to be applied, copy the next, etc. Is there a way we can either drop a bunch of files into a .CFConfig folder or possible having it pick up any file starting with .CFConfig?
    b
    z
    • 3
    • 5
  • r

    redtopia

    05/01/2025, 9:05 PM
    Can someone help me with Docker? I can't figure out how to copy my .CFConfig.json and .jar files over to the the container I'm building using the official Lucee Docker image (lucee/lucee:6.2.1.122-nginx)
    b
    d
    z
    • 4
    • 61
  • z

    zackster

    05/02/2025, 10:00 AM
    Why are they comparing against Lucee 5? 🤔
    e
    b
    d
    • 4
    • 14
  • d

    David Johnson

    05/02/2025, 1:48 PM
    I've been happily using cflog for a couple weeks now to debug. However, this morning I am receiving this error when I try to log something: XNIO-1 task-1 ERROR Log4j API could not find a logging provider. Is there an application I should enable?
    z
    e
    • 3
    • 9
  • m

    Monte Chan

    05/02/2025, 4:37 PM
    I came across this couple days ago. Basically, Electron includes Chromium and Node.js which allows you to develop cross-platform desktop apps with JavaScript, HTML, and CSS https://www.electronjs.org/ With CF, it is probably impossible due to the licensing issue. But I wonder if you can include, somehow, a Lucee server in the build, and if you can, you may be able to build desktop apps using Lucee??? For those who may not know, VS Code, Discord, Microsoft Teams, Slack, Postman, ...etc. are all developed using Electron
    b
    a
    +3
    • 6
    • 15
  • d

    dswitzer

    05/02/2025, 7:13 PM
    I discovered a bug with Lucee 6+ parsing of string dates: https://luceeserver.atlassian.net/browse/LDEV-5566 In a nutshell, when parsing a timestamp with trailing zeros in the milliseconds, the zeros are being dropped, so a string like
    2016-04-11 18:30:06.083
    gets converted to
    2016-04-11 18:30:06.830
    . I suspect this could be affecting a lot of code that's deserializing JSON:
    Copy code
    ds = deserializeJSON('["2016-04-11 18:30:06.083"]');
    
    writeDump(dateTimeFormat(ds[1], "yyyy-mm-dd HH:nn:ss.lll"));
    This will produce
    2016-04-11 18:30:06.830
    instead of
    2016-04-11 18:30:06.083
    .
    • 1
    • 1
  • d

    dswitzer

    05/02/2025, 9:07 PM
    I've release a new lightweight filter for Jakarta-based versions of Tomcat to support "path info" type URIs in your CFML-based application: https://github.com/dswitzer/PathInfoParserFilter This is basically a replacement for the old RegexPathInfoFilter, but will work in Tomcat 11+.
    b
    • 2
    • 4
1...2829303132Latest