http://coldfusion.com logo
Join SlackCommunities
Powered by
# lucee
  • b

    brettpr

    11/14/2022, 5:14 AM
    FilegetMimeType() seems like it has history with office docs - https://luceeserver.atlassian.net/browse/LDEV-1549 - the issue I'm experiencing is similar, but not... A recent security scan pointed out that we are accepting files with incorrect extensions, like a .pdf with a .png extension. I found FilegetMimeType() and 'fixed' the issue but 'proper' testing has found that for office documents labelled as something else FilegetMimeType() will return the mime type of the file extension rather than of the file itself. So, for a .docx labelled as a .pdf "application/pdf" and as a .jpg "image/jpeg". I've tried .docx, .doc, .pptx, .ppt, .xls and .xlsx and all exhibit the same issue. Does anybody have any ideas? Or is it simply a bug? Thanks!
    z
    • 2
    • 31
  • b

    brettpr

    11/14/2022, 5:31 AM
    Tested on Lucee 5.3.9.141 but in Dev I am running Lucee 5.3.10.84-SNAPSHOT - the results are the same.
  • z

    zackster

    11/14/2022, 9:25 AM
    ^^ threads plz
  • z

    zackster

    11/14/2022, 11:04 AM
    ehCache extension 2.10.0.33-SNAPSHOT is available for testing https://dev.lucee.org/t/improving-the-ehcache-extension/10326/2
  • g

    Gareth

    11/15/2022, 6:06 AM
    Hi guys, once again, love the work… could I ask if there what level of importance the Lucee team is putting on Java 17 support ?
    z
    • 2
    • 5
  • s

    stillnet

    11/15/2022, 3:06 PM
    Is there a way to override a built in tag in Lucee? I'd like to have Lucee log the file & line number of <cfabort/> when encountered. We have some cfaborts somewhere that are sometimes getting triggered and I don't know where they are.
    z
    p
    +3
    • 6
    • 17
  • z

    zackster

    11/17/2022, 10:45 AM
    https://dev.lucee.org/t/announcing-lucee-5-3-10-94-rc-2/11488
  • s

    steveduke

    11/17/2022, 12:01 PM
    Is there an explainer page somewhere on why there is a Lucee 5.9.x path, a Lucee 5.10.x path and a Lucee 6.x (beta) path. And which one we should be using. (5.9.x or 5.10.x) Sorry if this somewhere obvious, but i can’t find it.
    z
    • 2
    • 4
  • r

    romanstr

    11/17/2022, 12:51 PM
    Lucee 5.3.9.166. Memory heap is always growing until achieve maximum. See FR screen

    https://dl.dropboxusercontent.com/s/6sgtznysrdn9t01/chrome_KsjWLWFFQt.png▾

    I run it under Commanbox:
    Copy code
    {
      "jvm": {
        "args": "-javaagent:C:\\FusionReactor\\instance\\evolve\\fusionreactor.jar=name=evolve,address=8098",
        "heapSize": "3000"
      },
      "profile": "production",
      "trayEnable": "false",
      "web": {
        "AJP": {
          "enable": "true",
          "port": "8901"
        },
        "host": "127.0.0.1"
      }
    }
    ACF 2016 looks different

    https://dl.dropboxusercontent.com/s/4c8moegs2gjwt08/kaIe9EPQzD.png▾

    Should I use some special JVM arguments?
    z
    b
    • 3
    • 22
  • z

    zackster

    11/17/2022, 2:08 PM
    https://dev.lucee.org/t/switching-java-regex-engines-on-the-fly/11491
    d
    • 2
    • 8
  • z

    zackster

    11/17/2022, 4:02 PM
    here's an interesting bug we just discovered which was lurking since 2015.... default CFID expire time is only 20 days https://luceeserver.atlassian.net/browse/LDEV-4274
  • d

    dswitzer

    11/18/2022, 12:59 PM
    Since we just recently fully migrated to Lucee, I wanted to see if there was anything built-in goodness that might help with a problem I'm working to solve. We have a reporting engine that can end up producing really large amounts of data. Today we're buffering the output into memory, but that can lead to JVM memory issues, so I was going to refactoring things to buffer the output to file system instead. I know I can just append to a file or use Java to create a file stream, but I wasnt' sure if there was anything more baked into Lucee which I should be looking at using.
    z
    a
    w
    • 4
    • 57
  • z

    zackster

    11/18/2022, 2:20 PM
    Who's played with the latest 5.3.10-RC2 ? I just knocked up somethign to make playing with cofig import easier https://dev.lucee.org/t/announcing-lucee-5-3-10-94-rc-2/11488/3?u=zackster
  • s

    sowmyanayak

    11/18/2022, 5:01 PM
    We recently ran into several timeout errors when performing S3 operations using the built in file functions (listing files in a directory, checking if a file exits etc). It hinted towards certain requests waiting for a lock to be released. A restart of lucee fixes the problem until it randomly crops up again. Has anyone else run into something like this? Any suggestions on how to address it?
    z
    • 2
    • 12
  • z

    zackster

    11/18/2022, 6:04 PM
    https://dev.lucee.org/t/filegetmimetype-doesnt-throw-an-error-when-the-file-does-not-exist-or-is-empty/11500
  • w

    websolete

    11/21/2022, 3:32 PM
    is there a utility or commandbox tool to generate lucee encrypted passwords for dsns without running a lucee instance with the admin and then getting those details from the admin ui?
    z
    b
    • 3
    • 3
  • d

    David Rogers

    11/21/2022, 6:36 PM
    there's a
    toBase64
    , is there a
    fromBase64
    ?
    b
    • 2
    • 14
  • b

    bdw429s

    11/21/2022, 7:24 PM
    There was recent talk of pulling all the libraries in Lucee to match them up against known vulns. Ortus has a gov client who helped us get a huge scan done on Lucee that tagged 161 known vulns in it's 3rd party libs I've documented them all here in a ticket https://luceeserver.atlassian.net/browse/LDEV-4279 Please make some noise to get these addressed. They are preventing us from using Lucee in DOD shops basically due to the number of unpatched vulns. Just updating EHCache will take care of most of the critical ones!
    z
    j
    • 3
    • 3
  • t

    Travis

    11/21/2022, 11:36 PM
    Question: Why would a MSSQL query that typically takes about 17s, returns 14 rows, 9 columns - nothing special... takes 743s when using queryExecute? Lucee 5.3.7, 5.3.8, 5.3.9 affected
    s
    r
    +2
    • 5
    • 8
  • w

    waleedehsan1

    11/22/2022, 7:40 AM
    The cfquery not working it gives an error “java.lang.NullPointerException|java.lang.NullPointerException”
    p
    z
    a
    • 4
    • 4
  • w

    waleedehsan1

    11/22/2022, 7:41 AM
    what is the solution to this problem?
  • w

    waleedehsan1

    11/22/2022, 7:41 AM
    this is my lucee version
    a
    • 2
    • 2
  • d

    dswitzer

    11/22/2022, 12:17 PM
    @zackster Any thoughts on this thread: https://dev.lucee.org/t/change-the-output-stream/10956/3 It's related to the post I had the other day. Trying to figure out a way to get Lucee to redirect the output stream to the FS, instead of writing to a StringBuilder and buffering in memory. The JSP spec indicates the
    PageContext
    should have a
    pushBody(Writer writer)
    method should be implemented that would allow you to change the writer being used, but Lucee does not actually implement in
    PageContextImpl
    . It has it's own
    pushBody()
    method, which does not allow arguments and handles managin a
    BodyContentStack
    object. I tried using reflection to see if I could override things, but it's protected and the JVM isn't letting me get the
    PageContextImpl
    writer instance. Have any thoughts on how I might be able to do this?
    b
    z
    • 3
    • 20
  • z

    zackster

    11/22/2022, 4:41 PM
    thanks to @dswitzer we have a feature update for the EHCache extension, plus an update to address a CVE https://dev.lucee.org/t/ehcache-extension-2-10-9-2-snapshot-cve-2019-20330/11522
  • z

    zackster

    11/22/2022, 5:44 PM
    Anyone got around to testing the 5.3.10.94-RC? We'd like to release this week....
    g
    b
    • 3
    • 4
  • m

    Matt Levine

    11/22/2022, 11:25 PM
    Would anyone have any recommendations for storing sessions in aws managed services?
  • m

    Matt Levine

    11/23/2022, 12:10 AM
    I’m guessing best practice is redis Elasticache non clustered with the lucee provided extension and then upgrade to the Ortiz extension if you need clustered. I’m just curious if the are any specific gotchas
    p
    l
    • 3
    • 2
  • d

    dfgrumpy

    11/23/2022, 3:59 PM
    Having an issue w/ Lucee not processing password file. I have a password file here "D:\lucee\tomcat\lucee-server\context". Clicking import just wraps back around to the same screen. Any idea?
    z
    d
    • 3
    • 3
  • g

    gsr

    11/23/2022, 6:52 PM
    i have this date in cfparam
    Copy code
    <CFPARAM NAME="FromDate" default="#dateformat(StartDate,"dd/mm/yyyy")#">
    but the date is coming as:
    1/01/2022
    , how can if i that one, it should display me
    01
    instead of just one. i am using cf2021
  • g

    gsr

    11/23/2022, 6:55 PM
    this is my test case, seems working well, but not sure why in my code it is displaying the 1 instead of 01 https://trycf.com/gist/d9ff9aa9ef685b342883747d52bd581c/acf2021?theme=monokai
    r
    m
    g
    • 4
    • 15
1...171819...32Latest