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

    zackster

    05/27/2022, 2:52 PM
    interesting, the Lucee teams considers performance issues bugs.. let us know what you find
    😎 1
  • g

    gavinbaumanis

    05/30/2022, 8:48 AM
    I have placed my virtual directory config into Application.cfc's pseudo-constructor with the following code;
    Copy code
    this.mappings["/dbsetup"] = "#this.basePath#/dbsetup/";
    And when I dump the variables scope, inside the this struct is;
    Copy code
    /dbsetup	    string	/srv/www/app/dbsetup/
    Where the path is shown, correctly. If I attempt to go the URL;
    <http://myApp.localhost:8080/dbsetup/index.cfm>
    I get an error, stating the page can't be found because the
    dbsetup/index.cfm
    is being appended to the Application Root, as you can see from the CGI scope;
    Copy code
    cf_template_path	 string	/srv/www/app/webroot/dbsetup/index.cfm
    If I create the mapping within the Lucee Administrator, the mapping works correctly / as expected. What am I missing? Thanks!
    z
    b
    • 3
    • 52
  • z

    zackster

    05/30/2022, 4:02 PM
    lucee docs are publishing again, the hardwired jdk8 version was no longer available and the build was failing silently https://github.com/lucee/lucee-docs/runs/6652220496?check_suite_focus=true#step:5:31 I must get around to updating it to just use script-runner
    🎉 5
    ⭐ 3
    a
    • 2
    • 1
  • z

    zackster

    05/31/2022, 11:25 AM
    https://twitter.com/zackster/status/1531597792870907905
    👍 1
    d
    • 2
    • 3
  • z

    zackster

    05/31/2022, 4:21 PM
    just added some more detail to cfhttp throwOnError, method and url are included in the detail of the exception https://luceeserver.atlassian.net/browse/LDEV-4011
  • z

    zackster

    05/31/2022, 4:26 PM
    also just added support for skip=true to the 5.3 build which will allow us to merge in a heap of unsolved, thus skipped test cases, which should drastically reduce the number of outstanding PRs https://github.com/lucee/Lucee/pulls currently 180
  • l

    Leon Miller-Out

    05/31/2022, 7:25 PM
    Has anyone had problems with Lucee 5.3.9 and the S3 extension? If I use extension version 0.9.4.x, adding S3 mapping breaks my regular mappings. If I use extension version 2.0.0.93-RC, I get this error:
    Copy code
    java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.services.s3.S3CredentialsProviderChain
    at com.amazonaws.services.s3.AmazonS3ClientBuilder.standard(AmazonS3ClientBuilder.java:46)
    at org.lucee.extension.resource.s3.AmazonS3Client.create(AmazonS3Client.java:74)
    at org.lucee.extension.resource.s3.AmazonS3Client.<init>(AmazonS3Client.java:69)
    z
    • 2
    • 5
  • s

    seandaniels

    05/31/2022, 8:11 PM
    Is there documentation somewhere about developing cache extensions and the cache interface requirements? I'm trying to troubleshoot some issues with using the MongoDB extension as session storage, and hoping to improve / optimize the cache extension (most of it was released as beta by Andrea Capolonghi about 7 years ago and I would like to "finish it").
    b
    z
    • 3
    • 58
  • c

    chris-schmitz

    06/01/2022, 6:17 AM
    I am porting a legacy application with about 500.000 lines of code (with horrible architecture, as usual 😉) from ACF to Lucee. Most of the stuff requires just minor adjustments, but I have one case where an app specific mapping is not available inside a CFC and and therefore instantiation of another CFC instantiation fails. It's a case of
    include cfm
    ->
    include cfm
    ->
    include cfm
    ->
    include cfm
    ->
    call CFC method
    ->
    new mapped.path.OtherCFC()
    . In the last cfm I can dump
    this.mappings
    and everything is there, but in the CFC method none of those are available. I tried
    GetPageContext().getConfig().getApplicationMappings()
    to see which mappings are available, but apparently that does not list app specific mappings. Does anybody have an idea how I could go about finding out why the mappings are "missing" or how to fix that?
    g
    g
    +5
    • 8
    • 56
  • z

    zackster

    06/01/2022, 8:05 AM
    just did a blitz on merging test cases, only 149 open PRs now, down from 180
    🙌🏾 1
    👍 1
    🙌 8
    🏄‍♂️ 1
  • z

    zackster

    06/01/2022, 10:45 AM
    ok, now down to 138, including removing old cruft which will reduce the size of the core build and slightly speedup the initial deploy due to less files being written out to the file system https://luceeserver.atlassian.net/browse/LDEV-3343
    🎉 7
  • a

    alexpixl8

    06/01/2022, 12:33 PM
    Very cool
  • a

    alexpixl8

    06/01/2022, 12:33 PM
    With new build process are these snapshots installable now via commandbox
  • z

    zackster

    06/01/2022, 1:22 PM
    yeah, but only when the build is green... https://github.com/Ortus-Lucee/forgebox-cfengine-publisher/runs/6681257137?check_suite_focus=true
  • z

    zackster

    06/01/2022, 1:24 PM
    basically, if it's on the lucee download page, it should be available in command box and docker within minutes
  • g

    gavinbaumanis

    06/02/2022, 3:58 AM
    Noit sure who can help - but the Lucee dev forums are currently down 😞
  • g

    gavinbaumanis

    06/02/2022, 4:58 AM
    There is an issue with the date/time documentation. The Lucee Docs state that the mask for minutes is
    nn/NN
    and time markers are
    tt/TT
    It then goes onto say at the bottom;
    The function follows Java date time mask. For details, see the section Date and Time Patterns at
    and then provides a link to an Oracle Java docs page. However, the Oracle doc page has "mm" for minutes and
    t
    doesn't even exist. The Lucee Docs for
    parseDateTime()
    are the same. The Lucee Docs for
    lsParseDateTime()
    - don't even show the mask - it just refers to you the Oracle docs. If you use the Oracle Docs as "your" reference - you're code will give you the wrong results; "mm" does NOT give you the minutes- it gives you the month
    p
    z
    • 3
    • 6
  • g

    gavinbaumanis

    06/02/2022, 7:39 AM
    Can anyone see what I am doing wrong here?
    Copy code
    <cfscript>
    answersStr = {};
    resultStr = {};
    
    //Struct for answer 1	
    answersStr.insert("value", 30);
    answersStr.insert("description", "Q1 Desc.");
    //Add Answer 1 to result Struct
    resultStr.insert("Q1", answersStr);
    	
    answersStr.clear();
    answersStr.insert("value", 100);
    answersStr.insert("description", "Q2 Description");
    resultStr.insert("Q2", answersStr);
    
    writeDump(resultStr);
    </cfscript>
    It gives the following output What happened to the values for Q1? They obviously got overridden by Q2 - but why? If I dump it directly after the Q1 insert into resultStr I get Q1's correct data. Struct Q1 Struct description string Q2 Description value number 100 Q2 Struct description string Q2 Description value number 100
    p
    a
    +2
    • 5
    • 12
  • g

    gavinbaumanis

    06/02/2022, 7:59 AM
    Just in case - it was missed earlier, The Lucee forums are (still) down.
    a
    • 2
    • 1
  • z

    zackster

    06/02/2022, 8:20 AM
    without diving in, remember, unlike ACF, lucee passes by reference, u probably need to duplicate
  • z

    zackster

    06/02/2022, 1:29 PM
    dev.lucee.org is back up, tho posts are marked unread, my inbox zero goal is looking challenging
    🙌 1
  • b

    bdw429s

    06/02/2022, 10:10 PM
    Check out this inconsistency in Lucee where function argument defaults aren't applied when • the UDF was called via
    argumentCollection
    with not all args supplied • named arguments were used • full null support is enabled https://trycf.com/gist/b5724b0207694e00ed506327a066332d/lucee5?theme=monokai
    🙌 1
    g
    a
    d
    • 4
    • 22
  • r

    ryan

    06/03/2022, 8:49 PM
    I am receiving an error when attempting to downgrade MySQL to any version 8.0.18 and below. The error received from Lucee is the following:
    Copy code
    Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    Is there something I am doing wrong or is this possibly a bug?
    a
    a
    +4
    • 7
    • 50
  • a

    Andreas

    06/05/2022, 9:42 PM
    Don't know if anyone noticed on lucees docs site: I've contributed some small css changes to the Lucee docs page some days ago. Now code snippets won't unpredictably break on smaller devices/views anymore. The code will now keep intact and the snippets horizontally scrollable like its also done by other docs sites: making the lucee docs site more responsive.
    👍 3
    🚀 3
    • 1
    • 1
  • d

    dswitzer

    06/06/2022, 7:38 PM
    After finally getting our production environment converted from ACF to Lucee Friday night, I've run into a problem we never detected in testing. Lucee sends HTML emails with the
    Content-Transfer-Encoding
    value as
    7bit
    and to conform with the mime message RFC, it automatically inserts new lines when a line is over 998 characters in length. However, this ends up breaking some minified CSS we inject into the message, because it's add a new line into a rule which ends up breaking the rest of the CSS. I wrote up a thread on this: https://dev.lucee.org/t/issue-with-cfmail-due-to-it-splitting-long-lines/10364 My current hack to resolving this is to just add new lines after every ending curly bracket (i.e.
    }
    ) in the minified CSS, but I'd like a better solution. I wish I could just change the message to use
    quoted-printable
    for the message and then have Lucee not insert the newlines. Anyone have any thoughts?
  • g

    gsr

    06/09/2022, 9:42 PM
    i am trying to loop over a a cfm file which has lot of data inside it, want to extract all the links which starts with <script src=", i did with javascript but how with CF, i just need a start to understand
    g
    • 2
    • 1
  • w

    websolete

    06/09/2022, 10:53 PM
    rematch/rematchnocase
  • g

    gsr

    06/09/2022, 11:15 PM
    Jsoup
  • g

    gsr

    06/09/2022, 11:16 PM
    Is the answer
  • w

    websolete

    06/09/2022, 11:34 PM
    oh, i thought a regular expression matching function which returns an array of its matches was the answer
    👍 2
    a
    • 2
    • 1
1...678...32Latest