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

    Adam Cameron

    09/30/2022, 5:22 PM
    hey there is some daft Lucee "feature" that suppresses any/all buffered output in functions... and a setting to switch that off in Application.cfc? I've looked through the docs and jira and can't find it. Can anyone recall? Symptom: I have a writeDump/abort in some code and I'm getting the abort, but the dump ain't dumping.
    m
    b
    • 3
    • 123
  • m

    mrtom

    10/02/2022, 7:29 PM
    I'm having issues getting first site in lucee to work
    a
    • 2
    • 9
  • a

    alexpixl8

    10/03/2022, 11:05 AM
    Download.lucee.org down investigating
  • n

    Nate Smith

    10/05/2022, 12:26 AM
    Is lucee better supported on windows or Linux? I've got lucee installed on Linux but I want to use a somewhat unusual data source with it.
    m
    e
    r
    • 4
    • 4
  • p

    Peter Hoopes

    10/05/2022, 12:52 AM
    I have it on Linux with no problems at all. And also an unusual data source with its own JDBC driver.
  • g

    gsr

    10/05/2022, 3:23 PM
    trying to serve html file containg cfm code with lucee, i added the url-pattern in the web.xml as:
    Copy code
    <url-pattern>/index.html/*</url-pattern>
        </servlet-mapping>
    but when i view my html in browser, i see raw cfm code in the form <cfinclude, i did restarted my server after the change i did
    m
    • 2
    • 2
  • m

    Marc Funaro

    10/05/2022, 3:42 PM
    YAAVLP - yet another ACF vs. Lucee Post... This statement evaluates differently between ACF and Lucee:
    "data_bigint" = PrecisionEvaluate(-9223372036854775808)
    s
    • 2
    • 6
  • g

    gsr

    10/05/2022, 5:58 PM
    anyone tried this https://github.com/joaoreynolds/FormComponent
    r
    • 2
    • 3
  • b

    brettpr

    10/06/2022, 12:41 PM
    I'm looking at some old code that calls cfmail and have worked out that we are missing a lot of errors because the call is asynchronous so if the connection fails we don't know about it and the mail server doesn't know about it. I was hoping to find a nice shiny new 'callback' feature for cfmail but while I found some talk about it back in 2016 it doesn't appear to have happened... Before I head down the path of pushing each cfmail call into it's own thread - any news on callbacks for cfmail? Or suggestions of a better way to handle this would also be appreciated.
    p
    • 2
    • 2
  • a

    Anders Lars

    10/07/2022, 6:27 PM
    Hey -- Installer vs Service Update (thru admin) - searched but couldn't find definitive answer. are these assumptions correct? 1. Installer bundles appropriate JRE and Tomcat, but in place upgrades not supported - so installer just for new installs 2. Admin services | update - just updates lucee and won't touch an existing JRE or Tomcat - so I need to upgrade the JRE (adoptium JRE11) and Tomcat separately so e.g in the release notes to 5.3.9.133 the installer bundles • Java 11.0.15+10 • Tomcat 9.0.62 But if you use the updater - you gotta go grab what you need from adoptium and apache.
    e
    • 2
    • 5
  • d

    dswitzer

    10/07/2022, 6:50 PM
    First, I think 30ms is an incredible short time to give up on a task. Lots of things could impact what might be considered normal execution time, such as a pause during garbage collection. If whatever task you're bringing is really completely handing the system after 30ms, I suspect you're not going to be able to safely terminate the thread. I don't know a lot about the innerads of how Lucee handles terminating threads, but I image much like timeouts work, if the thread is waiting on an external even to finishing, terminating the thread might not actually occur when you think it should. It could also leave things in an unstable state, causing memory leaks, etc.
    e
    j
    • 3
    • 5
  • e

    Evil Ware

    10/07/2022, 7:26 PM
    Not that it matters, but had to roll back to stable, disable the admin captcha, then update to RC as the image module was constantly throwing an error.
    z
    • 2
    • 2
  • z

    zackster

    10/10/2022, 12:03 PM
    this should be a nice enhancement... https://luceeserver.atlassian.net/browse/LDEV-4225
  • z

    zackster

    10/10/2022, 12:06 PM
    https://dev.lucee.org/t/testing-feedback-on-5-3-10-79-rc/11219
    s
    • 2
    • 1
  • g

    gavinbaumanis

    10/12/2022, 10:32 AM
    Hey everyone, I am thinking of putting in a feature request for getting the parent directory. at the moment I have this code in my Application.cfc to create the mappings.
    Copy code
    this.currentPath = getDirectoryFromPath(getCurrentTemplatePath());
    this.delim = find("/", this.currentPath) ? "/" : "\";
    this.basePath = listDeleteAt(this.currentPath, listLen(this.currentPath, this.delim), this.delim);
    this.mappings["/coldspring"] = "#this.basePath#/cfmapping/coldspring/";
    Which is fine and works great... But I have just installed testBox and it comes with its own Application.cfc - which I know I can do without... I don't need it - but as a default its application.cfc comes with similar code for creating the mappings... again all fine - but it is off by one directory. The very short version of all this is I would like to propose a new function for getting the "parent" directory - which would effectively just be - in CFML
    Copy code
    listDeleteAt(this.currentPath, listLen(this.currentPath, this.delim), this.delim);
    Thoughts?
    d
    z
    a
    • 4
    • 8
  • z

    zackster

    10/12/2022, 3:05 PM
    HALP! anyone know tricks about making ${{ github.workspace }} work nicely on windows? paths are getting messed up https://github.com/zspitzer/extension-image/actions/runs/3235739710/jobs/5300584747#step:9:35 https://github.com/zspitzer/extension-image/blob/master/.github/workflows/main-windows.yml (trying to solve some image extension locking problems in windows)
  • g

    gavinbaumanis

    10/12/2022, 3:12 PM
    Hi Everyone, I am getting an error trying to upload a wav file using cfscript / fileUpload() via TAFFY/REST
    Copy code
    result = fileUpload(savePath, "audioFile", "audio/wav,audio/x-wav,audio/vnd.wave", "MakeUnique");
    I am getting the following error which I think is weird;
    Copy code
    When the value of the attribute STRICT is TRUE, only MIME types are allowed in the attribute(s): ACCEPT.
    Because I AM including ONLY mimetypes in the Accept attribute / arg and fileUpload() doesn't have a strict attribute/arg! The payload has;
    Copy code
    Content-Disposition: form-data; name="audioFile"; filename="question3.wav"
    Content-Type: audio/wav
    any ideas?? - because I am stumped! THANKS!
    z
    p
    • 3
    • 8
  • n

    Nate Smith

    10/12/2022, 4:50 PM
    Can I use a windows system odbc datasource in lucee?
  • n

    Nate Smith

    10/12/2022, 4:52 PM
    I'm trying to access some kind of ( I believe) Hadoop-type of database with a hortonworks driver that I know can work.
  • z

    zackster

    10/13/2022, 2:27 PM
    Updated ajax extension 1.0.0.5-SNAPSHOT https://dev.lucee.org/t/cfajaxproxy-does-not-work-with-suppress-content-for-cfc-remoting/11231
  • w

    wil-shiftinsert

    10/13/2022, 4:08 PM
    Today we did some interesting observation with deserializeJSON. A string within some deserialized json object is not the same as a string which was directly assigned to the same key in this object. It looks exactly the same, but not a string ??? 🤔
    Copy code
    <cfscript>
    field = deserializeJson('{
    			"validation": {
    				"id": 1180,
    				"regex": "somestring",
    				"mask": "",
    				"size": "",
    				"maxLength": "100"
    			}
    		}');
    writeDump(
        label="initial value",
        var=field.validation.regex
    );
    writeDump(field.validation.regex === "somestring");
    field.validation.regex = "somestring";
    writeDump(
        label="assigned empty string value",
        var=field.validation.regex
    );
    writeDump(field.validation.regex === "somestring");
    </cfscript>
    so when doing a strict equality they are not the same. See
    somestring
    here for the example. If we do the same with ACF2021, no problems. Try it yourself https://trycf.com/gist/2cd908188eab1e1a4d8460392a5a3a11/acf2021?theme=monokai
    s
    t
    • 3
    • 2
  • w

    wil-shiftinsert

    10/13/2022, 4:09 PM
    https://luceeserver.atlassian.net/browse/LDEV-4234
    a
    z
    • 3
    • 8
  • a

    Asher Densmore-Lynn

    10/13/2022, 4:24 PM
    I just ran into an issue with a cached query where a user has taken action and I know that the cache is now invalid. I've located cfobjectcache ( https://docs.lucee.org/reference/tags/objectcache.html ) but it doesn't define the object used as a filter and https://docs.lucee.org/guides/Various/TIPS/TIPS-tricks.html tells me that I should just provide it a string which would then be... what, tested against the text SQL for all objects in the query cache? Seems like it might be overly broad. Is best practice really just a cache clear on the same string I fed into a cfqueryparam tag? Side note: To be honest, my real preference would be a boolean I could pass into cfquery that would force a cache miss and recaching, so that I could leave it false and then set it to true if a user just submitted a thing. Would a feature request for it seem productive?
    z
    m
    w
    • 4
    • 11
  • z

    zackster

    10/14/2022, 1:54 PM
    being a friday, waves to @Adam Cameron https://github.com/lucee/Lucee/blob/6.0/test/tickets/LDEV1282.cfc
    👍 2
  • r

    richard.herbert

    10/14/2022, 5:23 PM
    Is there a way to migrate the Admin settings of a non-CommandBox (no access to cfConfig) Lucee server to another? I know I can
    Settings > Export
    to create an
    Application.cfc
    template but that doesn’t populate the Admin settings to then allow me to capture the settings in cfConfig for later. Is there an XML file somewhere I can copy? Or something like the ACF .car files?
    r
    f
    b
    • 4
    • 30
  • g

    Gareth

    10/16/2022, 10:52 PM
    The work this guy is doing looks incredibly promising for the cfml ecosystem and worth a mention, https://github.com/softwareCobbler/luceedebug https://github.com/softwareCobbler/cfc
    ⭐ 3
  • p

    Peter Hoopes

    10/18/2022, 6:08 PM
    Potential crazy bug found? Strange situation: using
    cfsavecontent
    to build a string list (don’t ask). When doing that, later using ListFind to locate an element in the list WILL NOT see the first element. It will see elements after the first and locate them properly. Demo code attached. This is running on Lucee 5.3.9.160. I’m seeing that the first express at the bottom equates to “0” (not found), while the second one does see the first element properly. Am I right here… if so, I’ll go ahead and submit a bug report?
    Copy code
    <cfsavecontent variable="textList">
    
    <cfloop from="1" to="4" index="i"><cfoutput>#i#,</cfoutput></cfloop>
    
    </cfsavecontent>
    
    <cfset newTextList = "1,2,3,4,">
    
    <cfdump var="#textList#">
    
    <cfdump var="#newTextList#">
    
    
    <cfoutput>#listFind(textList,"1")#</cfoutput>
    
    <cfoutput>#listFind(newTextList,"1")#</cfoutput>
    a
    • 2
    • 3
  • z

    zackster

    10/19/2022, 9:31 AM
    just a fyi, some of us older cfml-ers all have some old notions about cfml performance tricks
    testUrl = "<http://127.0.0.1:8889/>";
    http url="#testurl#";
    http url=testurl;
    line 2 and line 3 both produce the same bytecode with lucee
    👍 1
    ❤️ 1
  • z

    zackster

    10/19/2022, 9:34 AM
    also, @pothys-mitrahsoft and I have been doing some investigation of thread scope weirdness with scope cascading https://luceeserver.atlassian.net/browse/LDEV-2773
  • e

    Eric

    10/19/2022, 2:10 PM
    is anyone here running background processes on a schedule in a lucee container? we're using the lucee image from here: https://github.com/Ortus-Solutions/docker-commandbox cron isn't available in the image, and we're trying to run a process in the background on a regular schedule that checks if email is having any issues in the container (if email isn't working in the container we can't get email alerts when something is broken, so we send a text message in that scenario separate from the CF server that's running). only problem is cron isn't present so i'm wondering how everyone else is running non-CF jobs on a regular schedule in the lucee image
    z
    b
    a
    • 4
    • 9
1...151617...32Latest