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

    steveduke

    04/06/2022, 5:28 PM
    is https://luceeserver.atlassian.net/browse/LDEV-3924 fixed in RC3 ?
    b
    z
    • 3
    • 13
  • z

    zackster

    04/07/2022, 6:58 PM
    Arrrghhhhhh I need to backport this
    ArrayToStruct(arr, boolean valueAsKey)
    improvement from 6.0 https://github.com/lucee/Lucee/commit/b75a2a30e9abe1969438b83cf4106383321b3528
    a
    • 2
    • 1
  • a

    Adam Cameron

    04/07/2022, 7:47 PM
    Possible bug with how
    import
    is respected. Pseudo code "repro":
    Copy code
    // some/directory/to/FTP.cfc
    component {
        public static struct function adapter() {
            return {}
        }
    }
    Copy code
    // test/unit/some/directory/to/FtpTest.cfc
    import testbox.system.BaseSpec
    import some.directory.to.FTP
    
    component extends=BaseSpec {
    
        function run() {
            describe("Tests FTP adapter", () => {
                it("should work...",  () => {
                    result = FTP::adapter() // errors with "Component from type [org.lucee.cfml.Ftp] has no accessible static Member with name [adapter]"
                    
                    expect(result).toBe({})
                })
            })
        }
    }
    So it's looking for (and finding) a different Ftp (sic(*)) class, rather than my one. I would perhaps expect this if I did not have the literal
    import
    statement saying which one I meant. If I fully-qualify the usage, it's fine, eg:
    Copy code
    result = some.directory.to.FTP::adapter()
    But I should not have to do that. The imports should take priority, That's what they for, right? (*) also as I'm on a case sensitive file system, it shouldn't even consider
    Ftp
    to be the same as
    FTP
    in the first place. That's not the same thing.
    d
    • 2
    • 2
  • g

    gratzc

    04/08/2022, 1:01 PM
    Seeing a breaking difference between Lucee 5.2.9 and 5.3.8. In the Query of Queries if the list you pass in to a param is empty in 5.2.9 it returns an empty query resultset, in 5.3.8, it throws an error. @bdw429s iirc you made some QoQ changes in this, it this change on purpose or a bug? Ill put a some test code on this thread.
    b
    m
    +2
    • 5
    • 117
  • b

    Brandon Brown

    04/08/2022, 7:51 PM
    Does anyone know how I would be able to determine the Redis cache key Lucee generates for queries using CFML? I want to do some cache busting. I know about the query "tags" but when you have hundreds of thousands of Redis cache entries it is very slow since it will loop over every single entry in Redis. I looked at the source code of Lucee and have tried to replicate it but I can't seem to come up with a matching key it honestly isn't even close.
    a
    z
    • 3
    • 9
  • a

    Adam Cameron

    04/10/2022, 5:41 PM
    Hey can anyone think why I'd be getting this:
    Copy code
    Lucee 5.3.8.206 Error (expression)
    Message	key [EN] doesn't exist
    Stacktrace	The Error Occurred in
    /admin/resources/text.cfm: line 32
    called from /admin/web.cfm: line 174
    When hitting
    /lucee/admin/server.cfm
    . I've googled for other ppl getting similar, but drawn a blank. The code in question seems to be https://github.com/lucee/Lucee/blob/5.3.8.206/core/src/main/cfml/context/admin/resources/text.cfm#L32 The only match for that file name I can find in the file system of the container is this:
    Copy code
    root@6411ac0084f7:/var/www# find / -name text.cfm
    [...]
    /opt/lucee/web/temp/compress/da44506fe5fac4a8da74e7830bd71a99/c87947aefcfb3c98371e09351fcfe603/resources/text.cfm
    And whilst it's the same file (code etc), it is not the one being executed & erroring. This is in a freshly-built container, based on
    FROM lucee/lucee:5.3
    z
    • 2
    • 7
  • c

    chapmandu

    04/10/2022, 11:51 PM
    Seems download.lucee.org is down.. could this cause our deployments to suddenly fail this morning? @micha
    • 1
    • 1
  • m

    madmike_de

    04/12/2022, 7:37 AM
    Good morning/day/afternoon. I have a problem using mailjet as email provider. Whenever I try sending a mail with mailjet the following erroro occurs in the mail.log:
    Copy code
    "ERROR","Thread-106437","04/12/2022","09:33:27","mail","Could not connect to SMTP host: <http://in-v3.mailjet.com|in-v3.mailjet.com>, port: 25;lucee.runtime.exp.NativeException: Could not connect to SMTP host: <http://in-v3.mailjet.com|in-v3.mailjet.com>, port: 25
    	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
    	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
    	at javax.mail.Service.connect(Service.java:366)
    	at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:60)
    Caused by: javax.mail.MessagingException: Could not connect to SMTP host: <http://in-v3.mailjet.com|in-v3.mailjet.com>, port: 25;
      nested exception is:
    	javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
    	... 4 more
    Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
    	at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(Unknown Source)
    	at java.base/sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)
    	at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
    	at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
    	at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
    	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    	at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:626)
    	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:400)
    	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:217)
    	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2175)
    	... 3 more
    "
    System: Ubuntu, Apache2, Lucee 5.3.9.115-RC (happened also with 5.3.8), let's encrypt certificates. Any idea what is happening here?
    z
    • 2
    • 14
  • a

    Adam Cameron

    04/12/2022, 3:12 PM
    Heads-up: seemingly extraneous category / miscategorisation in the function reference: https://nito.com.au/lucee/doc/categories.cfm?item=strcuct. It also has the effect that
    isStruct
    is not listed under the
    struct
    category.
    b
    z
    • 3
    • 6
  • j

    James Ramsey

    04/13/2022, 6:02 PM
    I am trying to convert my app from ACF - 2018 to Lucee 5.3.8, but I can't see to get onSessionStart to trigger. Any suggestions?
    d
    • 2
    • 1
  • a

    Adam Cameron

    04/15/2022, 12:09 PM
    Any reason this isn't just a bug: https://trycf.com/gist/2ac785b4f22ac3920e4f5a0958e8b32c/lucee5?theme=monokai
    Copy code
    cfhttp(url="<https://example.com>", result="responseFromExample")
    writeDump(responseFromExample.statusCode)
    CF:
    200 OK
    Lucee:
    variable [RESPONSEFROMEXAMPLE] doesn't exist on line cfhttp(url="https
    I suspect this is a case that Lucee is getting confused because there's a possibility that there is more to the
    cfhttp
    "tag" than just the initial statement... it could optionally have a following block. CF gets it right: the next token after the initial
    cfhttp
    is not a
    {
    , therefore that musta been the end of the statement, and the next token is the beginning of a new statement. Lucee should also be able to do this. Yes?
    ✔️ 2
    m
    b
    • 3
    • 5
  • g

    Gareth

    04/16/2022, 4:18 AM
    CFC size seems to be a problem with lucee and apart from splitting the file into a series of includes, are there any other practices or advice that would result in this being less of a problem ?
    a
    r
    • 3
    • 14
  • a

    Adam Cameron

    04/17/2022, 3:43 PM
    Something happened between 5.3.8.3 and 5.3.8.42 to break
    reMatch
    . Probably something to do with one of these two: https://luceeserver.atlassian.net/issues/?jql=fixversion%20%20%3E%3D%205.3.8.4%20and%20fixversion%20%3C%3D%205.3.8.42%20and%20text%20~%20regex Repro:
    Copy code
    s = ""
    pattern = ".*"
    writeDump([
        reMatch = s.reMatchNoCase(pattern),
        matches = s.matches(pattern),
        split = s.split(pattern)
    ])
    https://trycf.com/gist/5761040d136d2c4396d89bb60e97043f/lucee5?theme=monokai Compare the difference between Lucee 5 (
    reMatch
    returns an empty array) and Lucee 4.5 and CF2021 (correctly returns an array with one empty string in it). One might try to reason out of this, saying it's the difference between
    this.useJavaAsRegexEngine = true
    and
    this.useJavaAsRegexEngine = false
    . Whilst setting it to
    true
    does "fix" the issue, that's neither here nor there, because with either Java or PCRE (or... Apache ORO I think, but that's close to a very old version of PRCE I think anyhow?) regexes, the results should be the same:
    .*
    matches an empty string. Also note changing that setting on CF2021 has no effect: it returns
    [""]
    either way. Which is correct. This breaks TestBox, for a specific edge-case (which I have raised separately in the testing channel).
    • 1
    • 1
  • a

    Adam Cameron

    04/18/2022, 1:15 PM
    Any reason why this is not just a bug: https://trycf.com/gist/4ea12a5aeb28148571a962e361228834/lucee5?theme=monokai
    Copy code
    try {
        throw(message="SAME_MESSAGE_AND_DETAIL", detail="SAME_MESSAGE_AND_DETAIL")
    } catch (any e) {
        writeDump([
            message = e.message,
            detail = e.detail // where gone?
        ])
    }
    
    try {
        throw(message="DIFFERENT_MESSAGE", detail="DIFFERENT_DETAIL")
    } catch (any e) {
        writeDump([
            message = e.message,
            detail = e.detail
        ])
    }

    https://i2.paste.pics/35fd501360fba93bed8162716fd57211.png▾

    👀 2
    🤔 1
    d
    • 2
    • 3
  • s

    Simone

    04/18/2022, 2:54 PM
    var aData = []; var _try = 1; try{ var a= {}; var as = calltoapitoogetdata; a['count'] = as; ArrayAppend(aData,a); if(!IsArray(sData)) { _try = _try + 1; } else { return serializeJSON(aData); }
    l
    j
    • 3
    • 8
  • g

    GVJustDOIT

    04/18/2022, 6:48 PM
    https://github.com/foundeo/bolthttp - I am using this for HTTP calls, have been using this for the last few months without errors. But suddenly throwing the below error. Could someone help?
    Copy code
    lucee.runtime.exp.NativeException: com.compoundtheory.classloader.NetworkClassLoader at java.base/java.net.URLClassLoader.findClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at lucee.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:56) at lucee.runtime.reflection.Reflector.callMethod(Reflector.java:877) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:831) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1747) at _cfc.bolt.javaloader.javaloader_cfc$cf.udfCall1(/_cfc/bolt/javaloader/JavaLoader.cfc:250) at _cfc.bolt.javaloader.javaloader_cfc$cf.udfCall(/_cfc/bolt/javaloader/JavaLoader.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:784) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1747) at _cfc.bolt.javaloader.javaloader_cfc$cf.udfCall1(/_cfc/bolt/javaloader/JavaLoader.cfc:50) at _cfc.bolt.javaloader.javaloader_cfc$cf.udfCall(/_cfc/bolt/javaloader/JavaLoader.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:684) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:572) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1911) at lucee.runtime.functions.other._CreateComponent.call(_CreateComponent.java:81) at _cfc.bolt.bolthttp_cfc$cf.udfCall(/_cfc/bolt/bolthttp.cfc:207) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:784) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1747) at _cfc.bolt.bolthttp_cfc$cf.udfCall(/_cfc/bolt/bolthttp.cfc:7) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:684) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:572) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1911) at lucee.runtime.functions.other._CreateComponent.call(_CreateComponent.java:66) at
    d
    • 2
    • 1
  • a

    Adam Cameron

    04/19/2022, 4:41 PM
    Yo just reading the docs on https://docs.lucee.org/reference/functions/isempty.html It sez:
    • Strings (a zero length string will return
    true
    )
    • Arrays (an array with no elements will return
    true
    )
    • Structs (a struct with no keys will return
    true
    )
    • Query (a query with no rows will return
    true
    )
    It also checks null. Possibly worth mentioning? Am happy to make the change myself unless I'm missing something or it's not actually supposed to? Checking a bit more thoroughly: https://trycf.com/gist/541cd1f2115559fedc6753471aa8e282/lucee5?theme=monokai It also identifies empty XML. And whilst it claims to take "any" type for the parameter value, it doesn't. It errors-out on a function (either defined via a statement or an expression).
    d
    • 2
    • 2
  • b

    Brandon Brown

    04/19/2022, 9:02 PM
    I am trying to load an OSGI bundle in an extension I am writing and can't seem to get it to work. Hoping someone can point me in the right direction. The package I am having trouble with is jnats. Lucee says it is unable to resolve requirements
    osgi.wiring.package=io.nats.client
    Below is the MANIFEST.MF file for my jar and also the MANIFEST.MF file for the package I am trying to use.
    Copy code
    Manifest-Version: 1.0
    Built-By: brandon
    Build-Jdk: 1.8
    Created-By: brandon
    Bundle-ManifestVersion: 2
    Bundle-Name: LuceeNATS
    Bundle-SymbolicName: net.testing.luceenats
    Bundle-Version: 2.0.1
    Export-Package: net.testing.lucee.nats;uses:="javax.servlet,lucee.runtime,lucee.runtime.exp,lucee.runtime.listener,jnats;version="2.14.0",net.twentyonesolutions.luceeapps";version="2.0.0"
    Import-Package: javax.servlet,javax.servlet.http,lucee.runtime,lucee.runtime.exp,lucee.runtime.listener,lucee.runtime.type.scope,lucee.runtime.util,<http://net.twentyonesolutions.lucee.app|net.twentyonesolutions.lucee.app>,net.twentyonesolutions.lucee.core,io.nats.client
    Comment: (use this line if using javax.websocket-api for javax.websocket as opposed to bootdelegate) Import-Package: javax.servlet,javax.servlet.http,lucee.runtime,lucee.runtime.exp,lucee.runtime.listener,lucee.runtime.type.scope,lucee.runtime.util,<http://net.twentyonesolutions.lucee.app|net.twentyonesolutions.lucee.app>,io.nats.client
    Copy code
    Manifest-Version: 1.0
    Automatic-Module-Name: io.nats.jnats
    Bnd-LastModified: 1646784054419
    Bundle-ManifestVersion: 2
    Bundle-Name: jnats
    Bundle-SymbolicName: jnats
    Bundle-Version: 2.14.0
    Created-By: 1.8.0_292 (AdoptOpenJDK)
    Implementation-Title: Java Nats
    Implementation-Vendor: <http://nats.io|nats.io>
    Implementation-Version: 2.14.0
    Private-Package: io.nats.client,io.nats.client.api,io.nats.client.impl
     ,io.nats.client.support
    Require-Capability: <http://osgi.ee;filter:=%22(&(osgi.ee=JavaSE)(version=1.8))%22|osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))">
    Tool: Bnd-5.1.2.202007211702
    d
    • 2
    • 1
  • b

    Brandon Brown

    04/20/2022, 2:38 PM
    If I have an instance of a component in java using
    lucee.runtime.Component
    how do I access a variable set in the
    variables
    scope from inside of that CFC? I tried
    get
    but it is deprecated and will return null
    d
    b
    • 3
    • 6
  • s

    Simone

    04/21/2022, 3:32 PM
    i tried with replace(num,'k','','all') * 1000
    f
    • 2
    • 3
  • r

    risto

    04/23/2022, 7:18 PM
    Is the Lucee server time off for anyone today? For no apparent reason my Lucee server has been running fine for two years and gets it's time from pool.ntp.org and I have it set to eastern standard time. It's 3:17 PM EST time and lucee is showing 7:13 AM for EST. I've tried changing time zones and update it back to EST time but still messed up. Lucee 5.2.7.62. I tried time.nist.gov and it still shows 7 am hour?
    z
    • 2
    • 27
  • t

    thisOldDave

    04/25/2022, 2:17 PM
    is there an issue with the owasp extension and tomcat? this gist on try cf works fine https://trycf.com/gist/a976d64c9209b55ca074ae79215c1c14/lucee5?theme=monokai but on my local tomcat see thread
    j
    b
    • 3
    • 20
  • z

    zackster

    04/25/2022, 10:22 PM
    https://dev.lucee.org/t/preview-5-3-9-131-snapshot-installers/10012
    d
    • 2
    • 4
  • g

    Gareth

    04/26/2022, 1:54 AM
    who is hosting https://cffiddle.org/ and is there any chance Lucee can be added ?
    z
    p
    • 3
    • 2
  • d

    danmurphy

    04/28/2022, 8:55 PM
    If you use
    toLowerCase()
    on a string, is that dropping down to java to make that happen? Or is that an undocumented alias to
    lCase()
    or something? https://trycf.com/gist/167ff5c50107ea90c8b4c9174a27246f/lucee5?theme=monokai
    z
    s
    • 3
    • 7
  • a

    Adam Cameron

    05/01/2022, 5:37 PM
    Here's some Lucee weirdness:
    Copy code
    s = "something"
    
    writeDump([
        "s" = s,
        "s.equals(s)" = s.equals(s),
        "s.equals(s) == true" = s.equals(s) == true,
        "s.equals(s) === true" = s.equals(s) === true, // <------------ FALSE ON LUCEE
        "s === s" = s === s,
        "(s === s) === true" = (s === s) === true,
        "(s.equals(s) && true) === true" = (s.equals(s) && true) === true,
        "type of CFML boolean" = returnsTrue().getClass().getName(), // Lucee: java.lang.Boolean; CF: coldfusion.runtime.CFBoolean
        "type of Java boolean" = s.equals(s).getClass().getName()
    ])
    
    function returnsTrue() {
        return true
    }
    (https://trycf.com/gist/d433815998890e7129e15c82806ca78a/lucee5?theme=monokai) All works as one would expect on CF. I cannae work out what Lucee is up to.
    j
    s
    • 3
    • 6
  • b

    Brandon Brown

    05/02/2022, 6:16 PM
    I am developing a Lucee extension and am running into an issue when I restart Lucee from both the Lucee GUI and programmatically using the
    cfadmin
    tag. In one part of my extension I need to call
    createPageContext
    on an instance of the CFMLEngine but I get an exception on line 173 of PageContextUtil.java that says
    Index 0 out of bounds for length 0
    From what I can gather is that there is no ServletConfig registered on the engine instance. I will only receive this error after restarting Lucee from the GUI or programmatically. On first boot of the server though everything works great.
    z
    • 2
    • 1
  • b

    Brandon Brown

    05/02/2022, 6:16 PM
    Hoping someone with more knowledge of the inner workings of Lucee can help me figure this one out.
    e
    • 2
    • 1
  • b

    Brandon Brown

    05/03/2022, 1:38 PM
    Is there a way to tell when Lucee is shutting down, for example restarting Lucee or the server receives a shutdown signal. I know there is
    onApplicationEnd
    but it doesn't fire at all for me and I am using Lucee 5.3.8-206 and appears to be a known bug https://luceeserver.atlassian.net/browse/LDEV-1944
    d
    s
    b
    • 4
    • 23
  • j

    johnfarrar

    05/04/2022, 3:38 PM
    There was a preso on Lucuee 6, that included serverless functions. How long till we can start testing that since it is back in dev?
    😎 1
    f
    b
    +3
    • 6
    • 36
12345...32Latest