http://coldfusion.com logo
Docs
Join the conversationJoin Slack
Channels
adobe
advent-of-code
auwcl
aws
books
bot-dev
box-products
cfeclipse
cfkrauts
cflint
cfml-beginners
cfml-general
cfml-tuning
cfsummit2022
cfwheels
ci
community_courses
css
devops-general
docker
docker-commandbox
documentation
events
friday-puzzle
fusion-reactor
fw1
ide
java-and-jvm
javascript
jobs
jobs-non-us
linen-dev
lucee
masacms
meta
migrations
mura
music
nosql
object-oriented
orm
perf-monitor
prog-general
slack-help
sql
taffy
testing
version-control
vuejs
water-cooler
Powered by Linen
cfml-general
  • p

    phillipsenn

    03/07/2023, 7:59 PM
    Where can I find http://pdfutils.riaforge.org/ these days?
  • p

    phillipsenn

    03/07/2023, 8:00 PM
    I'm looking to get the width of a pdf file and I think what Ray has written will do that.
    p
    4 replies · 2 participants
  • t

    TEMann

    03/08/2023, 4:14 PM
    CF Admin question. What are the “gotcha’s” of turning on “Use internal cache to store queries” in a production enviornment?
    m
    4 replies · 2 participants
  • t

    Tim

    03/08/2023, 8:17 PM
    I have a client with a weird thing happening on their server. I don't have access to this server, so my ability to answer questions is severely limited. But I'm curious if anyone has any ideas or has seen something similar. My app has a page, Merge.cfm which receives a couple of document id's as post data, calls
    cfpdf action="merge"
    on them, and then reindexes the produced document. In that process, it calls a
    package
    method,
    insertDocumentRow
    , on DocumentInsertHandler.cfc, which is stored in the same directory as Merge.cfm. This works fine, except for this one client. On their server, it complains that
    The insertDocumentRow package method in the C:\path\DocumentInsertHandler.cfc component cannot be accessed from c:\path\Merge.cfm.
    I sent them code that changes that method to
    public
    and then it works fine. My best guess is that the C: vs c: in the error message is making CF think that the files are in different directories. But I have no idea where that difference could be coming from. Has anyone seen anything like this before?
    m
    12 replies · 2 participants
  • l

    leonod

    03/09/2023, 1:24 AM
    Happy Wednesday! Has anyone successfully implemented the solution announced by Mark Takata at https://www.linkedin.com/feed/update/urn:li:activity:7016822066679078913/ in early January to use oAuth for sending e-mail using CFMail? Mark's post (thank you Mark) directs you to a page on the Adobe site at https://helpx.adobe.com/coldfusion/kb/authenticate-imap-pop-smtp-connection-oauth.html that describes the dependencies and code updates that need to be incorporated to make this work. Unfortunately, well after working with Adobe ColdFusion Technical Support for over a month to get this working, I am no closer to getting this working than I was when I first started engaging with them. The first issue I have is when I use the CFOAUTH tag, I receive an access token, and not an authorization token as described on the Adobe page. If I ignore using the CFHTTP call Adobe recommends I use next and just use the access_token value returned by Azure Active Directory as the password for CFMail, my messages get sent successfully. Woo-Hoo! But wait ... not Woo-Hoo. If a different browser is used to attempt to send a message (CFOAUTH is in the flow), the person trying to send the message gets a prompt to authorize my Azure Active Directory app to send mail on behalf of my company. Okay - that makes sense (gulp). Adobe recommended that I just copy and paste the auth_token generated in an Incognito web browsing session into the password attribute for CFMail - that would be good. Well, as you would expect, that works great for an hour, then the access_token value from Azure Active Directory expires and the prompt to a user (could be my customer) would be display to authorize my Azure Active Directory app to send mail for any mailbox in my tenant. Any guidance from anyone who has successfully implemented Adobe's solution for using CFOAuth with CFMail would be greatly appreciated.
    t
    b
    +1
    38 replies · 4 participants
  • v

    Viral

    03/09/2023, 2:51 PM
    Trying to connect to a SFTP server
    <cfftp 
    action = "open" 
    connection = "My_query"
    server = "xx.xx.xx.xx" 
    username = "username" 
    password = "password"
    port=22
    stopOnError = "yes"
    retryCount = 1
    secure = "yes">
    Getting the below error • Cause : Algorithm negotiation fail • Detail : Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: Algorithm negotiation fail. • Message: An error occurred while establishing an sFTP connection. --- It is because of the cryptography algorithm not matching between client and server. When I use Filezilla it connects just fine. I tried using the latest jar file but with no avail, Anyone been through the above error before
    a
    8 replies · 2 participants
  • s

    Scott Steinbeck

    03/09/2023, 11:46 PM
    is it possible to flush data to the screen from inside an async loop?
    a
    b
    12 replies · 3 participants
  • a

    agentk

    03/10/2023, 6:06 AM
    A quick reminder that the Call For Papers for CFCamp 2023 is going to close in … 5 days! March 15th it is. If you were a previous speaker or want to try giving a conference talk for the first time - make sure you get your submissions in soon! https://www.papercall.io/cfcamp2023
    👍 1
    1 reply · 1 participant
  • a

    Adam Cameron

    03/10/2023, 5:36 PM
    Apropos of nothing except paying attn to how eternally helpful ppl are, it's time to give @bdw429s and @Mark Takata (Adobe) AND @zackster a ⭐ Thanks fellas, on behalf of everyone here (for whom I have not been appointed speaker, but fuck'em if they don't agree 😉)
    ❤️ 3
    😁 1
    👏 5
    👏🏾 1
    ⭐ 8
  • m

    Mark Takata (Adobe)

    03/10/2023, 5:41 PM
    Thanks Adam. We both work, in different ways, towards the same goal.
    💯 1
  • a

    Adam Cameron

    03/10/2023, 8:33 PM
    https://blog.adamcameron.me/2023/03/cfml-coldfusion-2023-is-in-public-beta.html
    d
    6 replies · 2 participants
  • j

    Jeff Stevens

    03/10/2023, 9:13 PM
    Hello! I'm starting to use the commandbox module box-ngrok to be able to have a customer access a development version of a ColdFusion app that I'm working on. However, when I enter "share" into commandbox to start sharing, it looks like I'm getting a file permission error. I've tried changing the security of the folder being accessed to give everyone on my machine full access to it, but no dice so far. I think that the java file that's running from ngrok just doesn't have access to the folder, so I'm wondering how I might be able to grant access to the folder? 😊
    b
    j
    7 replies · 3 participants
  • g

    gsr

    03/11/2023, 1:42 PM
    hi cfmlers, in one website i saw the live users being counted but there was no ajax functionality, it seems they were using some socket connections things , does anyone have anything like this, possibly a tutorial
    a
    3 replies · 2 participants
  • a

    Angela Jones

    03/13/2023, 5:31 PM
    Hello everyone! I'm hoping someone can help me with an issue that just started happening on our ColdFusion server. Suddenly the querystring/URL variables are being removed from the URL. Essentially an HREF link in the code: https://domain.com/thisfile.cfm?urlvar=1 when clicked on becomes https://domain.com/thisfile.cfm. Even if I type the URL with the querystring, it still get removed. Any and ALL input welcome!
    a
    j
    7 replies · 3 participants
  • d

    dswitzer

    03/14/2023, 11:34 AM
    Is anyone using the Github Copilot Business plan w/CFML? I've searched the CFML Slack archives and found some mixed reviews. Just curious how well people have found it working with CFML. Since the amount of open source CFML is pretty limited (compared to other languages), I'd assume it's not great.
    r
    a
    +6
    37 replies · 9 participants
  • a

    Adam Cameron

    03/14/2023, 8:08 PM
    I am reading Clean Code again (we're doing it at book-club at work). This stands out more than anything so far: Nothing has a more profound and long-term degrading effect upon a development project than bad code. Bad schedules can be redone, bad requirements can be redefined. Bad team dynamics can be repaired. But bad code rots and ferments, becoming an inexorable weight that drags the team down. Time and time again I have seen teams grind to a crawl because, in their haste, they created a malignant morass [...]
    😅 1
    👍 1
    j
    e
    5 replies · 3 participants
  • p

    pegarm

    03/14/2023, 8:46 PM
    I'm spinning up new AWS EC2 Ubuntu 22.04 instances and trying to run the CF 2018 installer on them (because that's what we have licenses for.) Lately, the installer has been bombing with the following message/stack trace.
    Launching installer...
    
    Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
    
    Stack Trace:
    java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file com/zerog/util/ZGSys$IAConsoleReader
    	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
    	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
    	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:801)
    	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:699)
    	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:622)
    	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
    	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    	at com.zerog.util.ZGSys.<clinit>(Unknown Source)
    	at com.zerog.ia.installer.LifeCycleManager.init(Unknown Source)
    	at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
    	at com.zerog.ia.installer.Main.main(Unknown Source)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    	at com.zerog.lax.LAX.launch(Unknown Source)
    	at com.zerog.lax.LAX.main(Unknown Source)
    This Application has UnexpectedlApplicatation will now exit. (LAX)
    Some google-fu is pointing at the InstallAnywhere app having a problem with the temp directory. I've tried reassigning the temp directory, and increasing the volume and instance size. Nothing is working. The CF 2021 installer does not experience the same issue. I did notice that the description of the AMI from AWS reads "Canonical, Ubuntu, 22.04 LTS, amd64 jammy image build on 2023-02-08" so I'm wondering if this issue was introduced then. Has anyone else run into this?
    p
    32 replies · 2 participants
  • t

    teaman

    03/15/2023, 3:49 PM
    Does anyone know when forgebox will have the CF2018 rev 16 available for commandbox?
    p
    j
    5 replies · 3 participants
  • e

    Evil Ware

    03/15/2023, 6:10 PM
    vanilla install of contentbox, running commmandbox latest version., vanilla install of WordPress, latest version, same "localhost" server. When attempting to run the ContentBox import for Wordpress, " Error importing from datasource: not-null property references a null or transient value : cbCategory.site" Anyone else have this error?
    j
    l
    5 replies · 3 participants
  • j

    johnbarrett

    03/16/2023, 4:27 AM
    I am trying to install the ColdFusion add on (Developers Tools) for the SOLR server, solrinstall, but I get a java error and I was wondering if anybody could help. You can see the java error here - https://johnbarrett.net/cf_error.pdf I am trying to get SOLR working on my Mac. I am running commandBox, and everything works perfect, but I can't get SOLR working. Thanks in advanced for any help!
    l
    p
    3 replies · 3 participants
  • j

    Jeff Carpenter (Jeff C)

    03/16/2023, 4:35 PM
    Having issues trying to establish a connection from ACF 2021 Ent Oracle driver to Oracle DB 19c. The FW rules are in place and telnet from the server works fine, but we are getting a timeout with the CF Oracle Data source definition. Hostname, SID, Port, URL, driver class are correct. We are stumped at why a timeout would occur, which usually indicates a firewall issue, but the firewall is open. Would anyone have any ideas?
    c
    3 replies · 2 participants
  • r

    rickmason

    03/17/2023, 3:56 AM
    John Farrar from SoSensible is going to show us a sneak peek of the Online Learning Server at the next meeting of the Mid-Michigan ColdFusion Users Group on Tuesday, March 21st at 7 pm eastern time. The Online Learning Server is open-source software for offering online courses. Meeting URL: https://tinyurl.com/mtna663k A recording will be available on our group’s YouTube channel in a few days at https://youtube.com/@cfml
    💯 2
  • m

    Manta

    03/17/2023, 1:20 PM
    Hi 🙂 has anyone the download link for CF2021_certman Module?
    👀 1
    m
    3 replies · 2 participants
  • m

    Mark Berning

    03/17/2023, 2:50 PM
    Solr question/observations: • Is there a way to do a facet search/query via <cfsearch> or is that restricted to http to Solr directly? • There is no mention of dynamic fields, just custom1...custom4 or any of the other items that were added in CF10. • link on https://helpx.adobe.com/coldfusion/developing-applications/changes-in-coldfusion/solr-enhancements.html to Solr enhancements in ColdFusion 10 - goes nowhere. ◦ I found it on the wayback machine : https://web.archive.org/web/20211205083626/https://helpx.adobe.com/coldfusion/develo[…]a/solr-search-support/solr-enhancements-in-coldfusion-10.html ◦ It looks like it got redirected to a generic page Aug 15, 2022
  • d

    dswitzer

    03/20/2023, 7:27 PM
    Someone I know hired an SEO consulting firm to help them improve their rankings. They've done everything the firm told them to, with the exception of changing their backend layer. The firm says it's their app engine (which happens to be Lucee) that's causing the issue. However, their website goes through CloudFlare and they actually cache all the pages on the edge, so the site is essentially static. I know slow speed can affect SEO, but their content generally all returns in < 350ms. When I look at their PageSpeed results, performance gets a 100%. They do get some warnings about "excessive DOM size" and needing a more effective cache policy for static assets, but those are things that are not related to the app engine. Has anyone seen an issue with the app engine (when speed wasn't the factor) hampered SEO?
    m
    s
    +3
    51 replies · 6 participants
  • m

    mjclemente

    03/20/2023, 7:47 PM
    never
  • a

    abram

    03/20/2023, 10:55 PM
    Hey all, just a quick update that I've added Lucee 6 Beta to TryCF.com. I'm waaaay behind on any other improvements (new job and not a lot of time to focus on it much lately). Hopefully can start pushing some improvements soon. Posted in #lucee
    👍🏼 1
    👍🏻 1
    🙏🏼 1
    👍 3
    a
    1 reply · 2 participants
  • r

    rickmason

    03/21/2023, 4:38 AM
    John Farrar from SoSensible is going to show us a sneak peek of the Online Learning Server at the next meeting of the Mid-Michigan ColdFusion Users Group tonight at 7 pm eastern time. The Online Learning Server is open-source software for offering online courses. Meeting URL: https://tinyurl.com/mtna663k A recording will be available on our group’s YouTube channel in a few days at https://youtube.com/@cfml
    💯 1
    s
    1 reply · 2 participants
  • r

    Roshani Singh

    03/21/2023, 2:26 PM
    Hi Team, I am trying to run command box test from docker container and it's throwing below error. Did a bit of research that points to some cert issue while loading from trustStore.But not able to find the root cause and fix it. Can any1 please help with this one. I checked that the certs are getting loaded from
    -<http://Djavax.net|Djavax.net>.ssl.trustStore=/opt/coldfusion/jre/lib/security/cacerts
    and these certs are present at the required location
    Error executing tests:Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    =====================================================================================
    
    root@29f6b39bf07c:/etc/linode# ls -l /opt/coldfusion/jre/lib/security/cacerts
    -rwxrwxrwx 1 cfusion root 114607 Mar  6 12:35 /opt/coldfusion/jre/lib/security/cacerts
    b
    61 replies · 2 participants
  • j

    John Wilson

    03/21/2023, 4:36 PM
    Does anyone here know how to create a pre-signed URL that will force a download vs display inline?
    response-content-type=application/octet-stream"
    is part of the equation, but I am struggling to make that work with aws-cfml
    b
    b
    25 replies · 3 participants
Powered by Linen
Title
j

John Wilson

03/21/2023, 4:36 PM
Does anyone here know how to create a pre-signed URL that will force a download vs display inline?
response-content-type=application/octet-stream"
is part of the equation, but I am struggling to make that work with aws-cfml
b

brettpr

03/21/2023, 4:44 PM
If I read your question correctly... You need a combination of cfheader and cfcontent to force the file to download... This shows the options for both 'inline' and 'attachment'... https://stackoverflow.com/questions/71774517/coldfusion-cfcontent-want-to-offer-open-file-but-not-download
j

John Wilson

03/21/2023, 4:53 PM
Sorry, this is regarding pulling a file from S3 with a pre-signed URL. It is supposed to accept headers in the request that override the content type, but it's not working for me. https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
b

bdw429s

03/21/2023, 5:15 PM
The behavior depends on the browser and the file in question, really
In my experience octet-stream will always tell the browser to just download the file
Usually it's the other way around where you want the content type to be pdf or whatever for the browser to display it
j

John Wilson

03/21/2023, 5:15 PM
yes, these headers are supposed to do that. it's just displaying the contents now
it doesn't look like they are getting translated correctly on the S3 side.
b

bdw429s

03/21/2023, 5:16 PM
What is the file type in question?
j

John Wilson

03/21/2023, 5:16 PM
an xml file
b

bdw429s

03/21/2023, 5:16 PM
is there a header set in S3 when the file is stored?
Often times the issue is when saving the file, not retreiving it
The s3sdk has a setting to automatically guessing the mime type based on extension
Tho I forget if it's on or off by default
j

John Wilson

03/21/2023, 5:17 PM
I used fileCopy and lucee virtual file system, but these headers are supposed to override whatever is in S3 per the docs
b

bdw429s

03/21/2023, 5:17 PM
So long as the file is stored correctly to start, the download should "just work"
Ugh, yeah 97% chance Lucee screws it up
I doubt Lucee has any logic for that
That's why use the s3sdk for this stuff
It takes care of those things
You can set the headers, but prolly not with Lucee's abstracted file system functions, you'd need a proper s3 lib
I'm looking at the s3sdk's
getAuthenticatedURL()
to try and figure out how/where you'd pass the
response-content-type
bit
You wouldn't want to add it to the actual signing request-- maybe it would get tacked on to the
uri
? 🤔
I think the S3sdk will need updated to allow you to pass a
response-content-type
when signing a URL.
👍🏼 1
Just for completeness, here is the full list of headers that can be sent when signing a URL
response-content-type
response-content-language
response-expires
response-cache-control
response-content-disposition
response-content-encoding
https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html#API_GetObject_RequestSyntax
View count: 2