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

    Charles Robertson

    04/18/2023, 7:32 PM
    Hi Guys Problem: Async Event Gateway is not sending data to custom CFC’s OnIncomingMessage() method Details: I have created an Event Gateway in the Lucee Web Admin, using the Async type. I have added the AsynchronousEventsListener as the
    Listener Component
    and a Custom CFC path to the
    CFC
    field When I make the following call:
    Copy code
    SendGatewayMessage(“eventName”, data)
    The data gets passed to the
    AsynchronousEvents.cfc ->  AsynchronousEventsListener.cfc ~ OnIncomingMessage()
    But the data never gets sent to my Custom CFC via the method
    OnIncomingMessage()
    Does anyone know why?
    b
    z
    • 3
    • 85
  • s

    Scott Steinbeck

    04/19/2023, 8:26 PM
    @zackster i came across this post today and didn’t realize that there were more debugging support https://dev.lucee.org/t/what-to-use-for-debugging-monitoring-and-security/7883/5 now that lucee 6 is being trialed what things have been/will be implemented for this feature?
    z
    e
    • 3
    • 3
  • g

    gsr

    04/20/2023, 2:45 AM
    does cffile s3 has any property for region, i searched along but could not find one
    a
    • 2
    • 6
  • f

    foundeo

    04/20/2023, 9:18 PM
    Puzzler for y’all: I’m trying to reproduce an error which has this in the output
    <td valign="top" bgcolor="#ff9900" style="border : 1px solid #000000;empty-cells:show;
    which I am finding is lucee’s
    HTMLDumpWriter
    . You would expect to see this in the result of a
    cfdump
    right?, but you’ll see that lucee cfdump output doesn’t have inline style attributes, it has a style tag and uses classes like
    luceeH1
    which appears to come from the Dump.cfc custom tag bundled with lucee: https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/resource/library/tag/Dump.cfc#L616
    a
    e
    • 3
    • 16
  • s

    Sebastiaan Naafs - van Dijk

    04/21/2023, 12:00 PM
    On Lucee 5.x: does anyone know how NOT to get a space between the minus sign and the negative number when using LSNumberFormat? So I want a negative number to show as "-7" and NOT "- 7". I am just not getting it I think, trying to work around this 😉
    a
    d
    • 3
    • 12
  • g

    gsr

    04/22/2023, 2:47 AM
    i used the lucee way of creating a directory in a different which is Australis
    Copy code
    <cfdirectory action="create" directory="#arguments.pathS3#" storeacl="#myarray#">
    array is like this to give permissions
    Copy code
    [{email="<mailto:xxx@yyy.com|xxx@yyy.com>", permission="full_control"}, {group="all", permission="read"}]
    but it seems its defaulting to US, how can i make it do it from region specific and that is for Australia
  • g

    gsr

    04/22/2023, 3:51 AM
    fixed it, i dumped cfdirectory and used another way of doing it
  • g

    gsr

    04/22/2023, 3:51 AM
    because it does not support all regions
  • j

    Jonas Eriksson

    04/24/2023, 3:09 PM
    Need to spin up a new client server soon (single website), is there a reason not to use Ubuntu 22.04 LTS in 2023 with Lucee 5.x (latest stable) (and, i suppose, CommandBox/cfConfig?
    s
    j
    e
    • 4
    • 4
  • s

    Sebastiaan Naafs - van Dijk

    04/25/2023, 10:40 AM
    Hi all, I had Lucee installed (a 5.2.8.x) version and tried upgrading to 5.3.10.x - that wen't horribly wrong for some reason, the entire Lucee Admin's were kaput! Then I removed everything and installed via Vivio tech installer the latest 5.3.10.120 version of Lucee. But now it will not install completely as it says the Apache Tomcat 9.0 Lucee service already exists. It is there in the Windows Services, but I cannot start/stop/restart it. It is not present in HKEY_LOCAL_MACHINE as a service either. What to do? Tried 4 different versions to remove a service in Windows, all say the service doesn't exist. Anyone an idea?
    z
    • 2
    • 5
  • j

    johnfarrar

    04/25/2023, 9:40 PM
    I would love to see Lucee on here. https://replit.com/templates/languages
    👍 2
    s
    b
    • 3
    • 13
  • w

    waleedehsan1

    04/26/2023, 11:06 AM
    Hello! I have about 20 datasources in the Lucee admin on my local machine, now I want to create same on another machine. Adding those 20 one by one is very hectic job. Is there way I can find the datasource file from my local machine and place that in another machine, restarting Lucee add those 20 here. Thank you!
    z
    e
    +2
    • 5
    • 8
  • f

    foundeo

    04/27/2023, 4:11 PM
    anyone have a good way to uninstall lucee extensions from the command line?
    z
    b
    • 3
    • 61
  • z

    zackster

    04/27/2023, 4:52 PM
    so just splitting out from the above thread, i reckon i'll update the lucee installer to allow passing in / selecting a lucee fat jar (also via the command line) allowing you to use the latest installer with older versions, so you can then go an install the latest java / tomcat combo with an older (or newer) version of lucee
    j
    i
    f
    • 4
    • 11
  • c

    chapmandu

    04/28/2023, 7:55 AM
    If I have an object instance with some properties, it there a way to get all the properties as a struct without having to call every getter?
    z
    j
    +2
    • 5
    • 10
  • z

    zackster

    04/28/2023, 3:45 PM
    https://dev.lucee.org/t/universal-lucee-installer-choose-which-lucee-version-you-want-to-install/12551
  • s

    Stewart McGuire

    04/28/2023, 7:26 PM
    This message is for the person who developed the MongoDb Database and Cache extension for Lucee. A while back you created a new test release of the extension for me (version 3.12.8.144) because the "MongoDb (Beta)" driver was not showing up in the create cache feature in the Lucee Administrator Cache page. I have tested this new version out and it seems to work correctly and was wondering if that release can get added to the official releases for that extension. As of now, the current release of that extension is 3.12.8.133.
    s
    • 2
    • 1
  • a

    artknight

    04/28/2023, 8:17 PM
    Are there any online logging services like HoneyBadger that could be used for CF error logging?
    s
    a
    +2
    • 5
    • 15
  • a

    Anders Lars

    05/01/2023, 5:10 PM
    Hey - anyone got an example handy of using cfdistributedlock in cfscript for the redis extension? I have the redis extension hooked up to default Object cache. Gpt game me this.. which doesn't look convincing. thanks.
    Copy code
    // Create a Redis client object
    redis = createObject("java", "redis.clients.jedis.Jedis").init("localhost")
    
    // Define the key and value to be written to the Redis cache
    key = "myKey"
    value = "myValue"
    
    // Acquire a distributed lock for the key
    lockName = "redis_lock_" & key
    lockTimeout = 5000 // Lock timeout in milliseconds
    lock = cfdistributedlock.acquire(lockName, lockTimeout)
    
    // If the lock is acquired successfully, write the value to the Redis cache
    if (lock.isAcquired()) {
        redis.set(key, value)
        
        // Release the lock
        lock.release()
    } else {
        writeOutput("Failed to acquire lock for key: " & key)
    }
    p
    z
    • 3
    • 9
  • p

    phillipsenn

    05/01/2023, 7:55 PM
    Q: Do you use the Lucee syntax to get things done or do you play it safe?
    s
    r
    +3
    • 6
    • 28
  • i

    ian.hickey

    05/02/2023, 2:38 PM
    Any of you ever see an error like this? I getting it on trycf when passing a variable that uses safe path operator into arrayLen (https://trycf.com/gist/6ffdae68dc6a89017042e64b42ed8fb3/lucee5?theme=monokai) :
    Expecting a stackmap frame at branch target 55 Exception Details: Location: main1683037896331_ebf01615_d507_cc4a_2dd2_6c6bc52d4398_cfm7020$cf$3e4.call(Llucee/runtime/PageContext;)Ljava/lang/Object; @5: iconst_1 Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 2bb6 003c 4d04 9900 2e2b 2b2b 2b2b 2bb6 0x0000010: 0040 2ab4 0042 0332 01b6 0046 b200 4c01 0x0000020: b600 462a b400 4204 3201 b600 4fb8 0055 0x0000030: b800 5a58 a700 a04e 2db8 0060 9900 052d 0x0000040: bf2d b800 643a 042b 1904 0404 b600 682b 0x0000050: 126a b600 6e2b b600 722a b400 4205 322b 0x0000060: 2bb6 0072 2ab4 0042 0632 05bd 0074 5903 0x0000070: 2bb6 0072 b200 77b9 007c 0200 5359 0412 0x0000080: 7e53 b600 82b9 0086 0300 572b 126a b600 0x0000090: 6e2b b600 892b 2b14 008a b800 90b6 006e 0x00000a0: 2b2b 2bb6 0072 2ab4 0042 0532 b900 7c02 0x00000b0: 00b8 0095 b600 6ea7 000c 3a05 2bb6 0098 0x00000c0: 1905 bf2b b600 98a7 000d 3a06 2b2c b600 0x00000d0: 9b19 06bf 2b2c b600 9b01 b0 Exception Handler Table: bci [5, 52] => handler: 55 bci [149, 186] => handler: 186 bci [5, 199] => handler: 202
    z
    r
    +2
    • 5
    • 19
  • j

    jamiejackson

    05/02/2023, 3:06 PM
    hi folks. i ran a simple snyk scan on the latest lucee docker image. i'm new to snyk scans but there sure seems like a lot of vulnerabilities identified: 19 critical, 28 high. debian 11 has 0 critical, 2 high. can anyone tell me why I shouldn't be worried? https://gist.github.com/jamiejackson/1b6adec3f23e505127ce36074c55c4c7
    z
    b
    • 3
    • 20
  • a

    Adam Cameron

    05/04/2023, 7:59 AM
    Heads-up whoever looks after the Lucee images on Docker Hub (I think @justincarter?) https://hub.docker.com/r/lucee/lucee - still refers to 5.3.9.133 as the "latest stable release" on the main page. Looks like it should be talking about 5.3.10.120?
    c
    z
    j
    • 4
    • 16
  • a

    Adam Cameron

    05/04/2023, 2:09 PM
    The amount of detail in these DB exceptions is perhaps less ideal than it could be? Maybe?

    https://i2.paste.pics/eb440092753b290baa1478a5b484b458.png▾

    z
    • 2
    • 5
  • z

    zackster

    05/04/2023, 6:52 PM
    Lucee 6 adds an optional onMissingKey listener for structs https://luceeserver.atlassian.net/browse/LDEV-3579 for shits n giggles, I hacked it to also fire on accessing struct items https://github.com/zspitzer/Lucee/commit/95df85300cb5bfd443699695680c3cd1da01819d the inspiration which was ironically for Lucee 5 and configImport (which uses a cfml struct internally) was to track which top level keys on the cfconfig.json where ignored / not supported https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/tag/CFConfigImport.java#L204
  • f

    foundeo

    05/04/2023, 9:13 PM
    In case anyone is wondering about that difference in CFDump output I was trying to figure out a few weeks ago, I figured it out, answer is in the original thread: https://cfml.slack.com/archives/C06TA0A9W/p1682025514099719
  • z

    zackster

    05/05/2023, 10:11 AM
    One of the new features in Lucee 6 is inline / sub components https://luceeserver.atlassian.net/browse/LDEV-4125
    👍 1
    d
    • 2
    • 6
  • a

    Adam Cameron

    05/05/2023, 2:23 PM
    https://trycf.com/gist/2ba460bfe20b15b33a0b45ec9d5a27ba/lucee5?theme=monokai
    Copy code
    function getHttpRequestHeaders(){}
    Copy code
    The name [getHttpRequestHeaders] is already used by a built in Function on line 2
    No it bloody isn't:
    Copy code
    <https://docs.lucee.org/reference/functions/gethttprequestheaders.html>
    404.
    Copy code
    <https://cfdocs.org/gethttprequestheaders>
    404 CF:

    https://i2.paste.pics/2d90559a41062746675c63902934ab05.png▾

    z
    • 2
    • 7
  • a

    Adam Cameron

    05/05/2023, 2:58 PM
    https://trycf.com/gist/40e48c92a45cb69052612527f5136ba5/lucee5?theme=monokai
    Copy code
    ["tahi", "rua", "toru", "wha"].each((v, i) => {
        writeOutput("#i#:#v#<br>")
    })
    
    [true, false].each((v, i) => {
        writeOutput("#i#:#v#<br>")
    })
    Errors with "Invalid Syntax Closing []] not found on line 6" stick a semi-colon after the first expression: all good. Will check Jira...
    z
    i
    • 3
    • 6
  • a

    Adam Cameron

    05/06/2023, 9:34 AM
    @zackster (and perhaps @justincarter) when's the next beta being flagged as "this is actually a milestone", and accordingly there'll be a docker image for it?
1...242526...32Latest