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

    zackster

    03/17/2022, 8:19 PM
    https://twitter.com/zackster/status/1504552948344500224?s=21
    b
    • 2
    • 8
  • d

    dswitzer

    03/18/2022, 12:49 PM
    We're using mod_cfml to dynamically configure contexts in Tomcat for Lucee. When an initial request is made to an unknown host, mod_cfml will return a redirect status code, which we have configured for 307. Is there anyway to get Apache/Nginx to retry these operations instead of passing it back to the client? We have some code in a few places that do HTTP calls to the application and we're currently not following redirects, because a 302 redirect is a sign of a problem. I could fix that code to retry for 307 error codes, but I'm afraid the issue could cause problems with API calls outside our organization where people are connecting. I could add a warm up script to hit all domains after Tomcat is started, but I was hoping there might be a way to just prevent the issue at all or at least prevent the client from seeing the problem.
    b
    • 2
    • 2
  • t

    thisOldDave

    03/18/2022, 12:59 PM
    I have a scope creep problem in an old Railo application that we are updating to lucee, there is a piece of code that uses an unscoped variable and there happens to be a variable of the same name on the client scope, Railo doesn't find the client variable but Lucee does even with
    this.searchResults = false;
    so my question is where is the client scope in the hierarchy? and is there a way to stop it being searched?
    z
    • 2
    • 2
  • z

    zackster

    03/18/2022, 6:16 PM
    RC3 candidate 5.3.9.112-SNAPSHOT is out
    👍 2
    🎉 1
    d
    • 2
    • 1
  • d

    danmurphy

    03/18/2022, 10:07 PM
    We are getting bit by this bug/incompatibility issue where
    cflocation
    automatically encodes the url before redirecting. We are using
    relocate
    within ColdBox, which uses
    cflocation
    under the hood. The fix was completed in July 2019 and then wasn’t moved to
    Patch Ready
    status until April 2021. Is there anything preventing this from getting into a release at this point? (I asked the same question on the ticket). https://luceeserver.atlassian.net/browse/LDEV-2164
    a
    d
    • 3
    • 16
  • w

    waleedehsan1

    03/21/2022, 10:47 AM
    Hello! is there any way we can learn that the domain is SSL enable (https) in the Application.cfc?
    Copy code
    <cfset protocol = 'http' />
    <cfif any cgi or server scope variable tell us ssl is enable >
        <cfset protocol = 'https' />
    </cfif>
    b
    b
    • 3
    • 10
  • r

    romanstr

    03/21/2022, 1:39 PM
    Hi! Lucee 5.3.8.206. Admin > Extension > Applications: The key [LISTINSTALLED] does not exist. Somebody know how to fix it?
    p
    • 2
    • 2
  • z

    zackster

    03/21/2022, 4:52 PM
    5.3.9.115-RC3 is out
    👍🏻 1
    👍🏼 1
    ❤️ 3
    👍 2
    s
    s
    +2
    • 5
    • 17
  • z

    zackster

    03/22/2022, 11:22 AM
    Lucee 5.3.9.115-RC3 is available for testing https://dev.lucee.org/t/5-3-9-115-final-release-candidate-3/9829
    👍🏼 1
    👍 1
    s
    • 2
    • 13
  • a

    Adam Cameron

    03/23/2022, 12:54 PM
    Hey I've been testing
    SystemOutput
    (https://docs.lucee.org/reference/functions/systemoutput.html) to write to stdout and stderr. Seems to be working well. I was hoping to write an test for the code, so wanted to listen to stdout and stderr as part of that. Anyone done this? I looked on S/O for a Java approach to it, and thusfar the answers have all been along the lines of "ooooh... that isn't easy, so do it this other way instead". The other ways are not helpful to me in this case (although it's good knowledge to know).
    z
    b
    • 3
    • 21
  • d

    davla

    03/25/2022, 12:57 PM
    I’m trying to install Lucee on a Ubuntu 20.04 ec2 arm64 instance. I am seeing an error when I try to run the installer:
    Copy code
    sudo ./lucee-5.3.8.201-linux-x64-installer.run
    ./lucee-5.3.8.201-linux-x64-installer.run: 1: ELF: not found
    ./lucee-5.3.8.201-linux-x64-installer.run: 5: Syntax error: "(" unexpected
    I have added +x permissions on the .run file - is this an architecture issue with the installer? Do I need a different installer?
    m
    z
    • 3
    • 3
  • m

    mauzer

    03/25/2022, 2:12 PM
    Is there an issue with Lucee > Postgres. I'm getting this error when hitting this stored procedure after switching from MS SQL to Postgres. The stored procedure executes just fine in Postgres but when Lucee makes the call I get this:
    m
    s
    • 3
    • 12
  • m

    mauzer

    03/25/2022, 3:22 PM
    Is there any know problems with Lucee calling Stored Procedures? I have tried absolutely everything I know but it just doesn't recognise the function. I have tried changing both the procedure call from CF and the Stored Proc itself to lowercase, Removed all the attributes to see if it at least called the procedure but it just doesn't recognise the name call. Also tried calling it in <cfscript> but nothing. So infuriating! If anyone can help solve be massively appreciated. Thanks My code to call the stored procedure <cfstoredproc procedure="dbo.spgetaoid" datasource="#session.dsn#"> Stored Procedure in Postgres: dbo.spgetaoid
    p
    • 2
    • 3
  • d

    Dean

    03/28/2022, 3:21 AM
    I am struggling to setup a simple REST service using Lucee 5.3.9.115-RC. In the server context I have a mapping, which seems to be showing in red for some reason, though it is a valid path. When I try to hit the endpoint it gives me a 404. The cfc is definitely in the right folder and has the correct restpath
    a
    a
    • 3
    • 11
  • a

    Adam Cameron

    03/28/2022, 9:07 AM
    Have found myself wondering if the Lucee docs could benefit from a "History" section on each doc page. I just discovered that
    Array.pop
    is present in
    5.3.8.206
    but not present in
    5.3.7.47
    . There's no indication in the docs when it was added: https://docs.lucee.org/reference/functions/arraypop.html
    z
    • 2
    • 6
  • b

    bdw429s

    03/29/2022, 1:29 AM
    Fun CFML quiz. Read this code and decide what you think it does. Then run it and see if you were right 🙂 Note: Adobe CF behaves differently. https://trycf.com/gist/86d6f4c1fe54baa964055d0ac61042ec/lucee5?theme=monokai Answer in the thread.
    d
    a
    s
    • 4
    • 12
  • z

    zackster

    03/29/2022, 11:15 PM
    PDF Extension 1.1.0.7 is out, https://luceeserver.atlassian.net/issues/?jql=labels%20%3D%20PDF%20ORDER%20BY%20updated%20DESC
    b
    • 2
    • 1
  • m

    mauzer

    03/30/2022, 9:25 AM
    Hi guys still looking for a solution with Lucee - Postgres Stored procedures if anyone can help. I have tried absoolutely everything. I even stripped the stord proc to one single parameter but still getting the same errors. Is there a driver or compatibility issue with Lucee and Postges/Stored Procs as it appears that this is the only possible diagnosis for me. ERROR: function dbo.spgetaoid(character varying) does not exist Hint: No function matches the given name and argument types. You might need to add explicit type casts. I have tried changing procedure to all lowercase matching the stored proc in the database cfscript and tag based Reduced to just one parameter I have tried different data types Stored procedure in PostGres PGAdmin compiles and no errors on that end. Postgres Datasource is connected via Lucee admin in datasources no problem as it executes SELECT/UPDATE statements with no issues I have completely run out of ideas so if someone out there can help it would be greatly appreciated.
    t
    m
    l
    • 4
    • 65
  • z

    zackster

    03/30/2022, 1:04 PM
    https://dev.lucee.org/t/lucee-pdf-extension-1-1-0-7-snapshot/9860
    👍 2
    😍 1
    s
    • 2
    • 1
  • p

    Peter Amiri

    03/31/2022, 4:49 PM
    @mauzer I may have something for you to try. It just dawned on me when you posted your sample code. You are using the script syntax and that may be the issue. I'm not sure if that is absolutely the case but it's worth a try. You see in our app, we have some CFML tags/methods that for one reason or another are easier to code in the tag construct. So we have a mechanism to put all these in a .cfm that is code with tags. We use this for CFMAIL, CFHTTP, and low and behold the CFSTOREDPROC tag. So here is the wrapper for the CFStoredProc tag we use:
    Copy code
    <!--- Wrapper for the CFSTOREDPROC tag. --->
    <cffunction name="cfmlStoredProd" returntype="any" access="private" output="false">
      <cfargument name="procedure" type="string" required="true">
      <cfargument name="body" type="string" required="true">
    
      <cfset local.rv = StructNew()>
    
      <cfstoredproc datasource="mydatasource" procedure="#arguments.procedure#">
        <cfprocparam value="#arguments.body#" cfsqltype="cf_sql_varchar" type="in">
        <cfprocparam variable="local.rv.result" cfsqltype="cf_sql_varchar" type="out">
        <cfprocresult name="local.rv.query" resultset=2>
      </cfstoredproc>
    
      <cfset local.rv.result = DeSerializeJson(local.rv.result)>
    
      <cfreturn local.rv>
    </cffunction>
    a
    • 2
    • 1
  • m

    mauzer

    03/31/2022, 4:52 PM
    @Peter Amiri I was trying this: qryResult = queryExecute("CALL dbo.spgetaoid(params = {clientID: arguments.aostruct.clientID)", {}, {datasource="dshdev"}); but not too sure of the syntax in passing in parameters. This does sem to work as it recognises the procedure but I cant seem to get the parameters right
    🙏 1
    a
    p
    • 3
    • 10
  • g

    gbit

    04/01/2022, 1:57 PM
    I think I need some help, when trying to setup docker on an Alpine host server based install it appears like I get some sort of Inetaddress error trying to pull its hostname from inside the docker commandbox lucee 5.2.x image (also alpine based). I think the issue is on the host side though, because this works fine from a Ubuntu server running Docker.
    Copy code
    createObject("java", "java.net.InetAddress").getLocalHost().getHostName()
    d
    • 2
    • 26
  • j

    johnfarrar

    04/01/2022, 2:24 PM
    Awesome, hearing that Ortus is going to take Lucee into their fold! Does this change the date for Lucee 6 shipping? Plus, will it be renamed with a box name? P.S. When will there be an official press release?
    d
    a
    +5
    • 8
    • 11
  • t

    thisOldDave

    04/04/2022, 10:21 AM
    lucee 5.3.8.206, Tomcat 8.5 with sql server driver 7.4.1.jre8 logs started filling up with
    "was not able to stop controller thread running for 4664839ms
    stack trace in thread, I found https://dev.lucee.org/t/application-log-was-not-able-to-stop-controller-thread-solved/2368 and tried messing with the time sync but no luck, has anybody come across it recently a restart of Lucee has stopped it for now
    z
    • 2
    • 7
  • b

    blusol

    04/04/2022, 3:57 PM
    is this up to date? https://docs.lucee.org/guides/Various/tutorial-lucee/tutorial-extension-provider/tutorial-part-1.html I've created an extension provider and added it to the admin but i'm getting a generic Error in the UI? Brad had submitted a ticket on this recently after our conversation with it and it seems that these instructions might be for version 4 of lucee and not version 5. can anyone confirm that?
    z
    • 2
    • 5
  • j

    jlamoree

    04/04/2022, 5:19 PM
    I have an old Lucee application that uses built-in Hibernate ORM. It has worked just fine on Lucee 5.1 and OpenJDK 8 for a long time. I want to switch to Lucee 5.3 and OpenJDK 11, but when I do that I an exception from Hibernate with a message like "identifier of an instance of MyObject was altered from..." when the session is closed (without any actually changes made). Apparently, this is a flaw in change detection due to property type conversion. How can I figure how what needs to be modified so Hibernate isn't fooled?
    z
    l
    • 3
    • 12
  • t

    thisOldDave

    04/05/2022, 2:59 PM
    lucee 5.3.8.206 on tomcat 8.5 i have
    <system err="file:C:/work/www//logs/err.log" out="file:C:/work/www//logs/out.log"/>
    the files get created but nothing appears to be written to them for example
    dump(var=cgi, output="console");
    dumps the scope to tomcat-stdout rather than out.log, is this expected or am I missing something?
    • 1
    • 1
  • t

    thisOldDave

    04/06/2022, 2:09 PM
    can we use system properties in a similar way to directory placeholders in the configuration files? so rather than
    {home-directory}/lucee/logs
    use
    ${catalina.base}/lucee/logs
    z
    • 2
    • 5
  • d

    dick

    04/06/2022, 4:46 PM
    What's the latest version of Lucee that is considered fit for production?
    b
    • 2
    • 1
  • z

    zackster

    04/06/2022, 4:56 PM
    We are going stable this Friday or Monday with 5.3.9, the RC3 is definitely stable
    👍 2
    b
    m
    • 3
    • 4
12345...32Latest