http://coldfusion.com logo
Join Slack
Powered by
# cfml-general
  • p

    Patrick Roy

    02/24/2023, 1:59 PM
    Hello folks. I'm running into an issue with the isValid() function: I can't seem to pass it an argumentCollection. Wondering if it's me doing something wrong, if it's a bug, or if it's intended for... For example, this will not work, complaining about "Too few attributes..."
    sArgs = {
    type: "email",
    value: "<mailto:john@example.com|john@example.com>",
    }
    dump( isValid(argumentCollection=sArgs) )
    b
    t
    +3
    • 6
    • 19
  • p

    Patrick Roy

    02/24/2023, 1:59 PM
    Would anyone have any ideas?
    e
    b
    • 3
    • 7
  • r

    rickmason

    02/24/2023, 10:23 PM
    Update to URL for The Road to Fortuna video by Mark Takata

    https://youtu.be/IJ5zSKGfpZE▾

  • s

    Steve Bryant

    02/27/2023, 6:29 PM
    Anyone know how I could do an include from the context of the calling page of a custom tag? If I have a test.cfm and an included.cfm in the same folder, then I want to call <cf_MyTag include="included.cfm"> and have MyTag.cfm (which sits in the CustomTags folder) include the "included.cfm" file that is in the same folder as "test.cfm". I realize that I could use cfsavecontent and pass the resulting string, but I'd rather have a nice syntax (also, I want to use the file name as well as the content of "included.cfm" from within my custom tag).
    s
    a
    e
    • 4
    • 12
  • r

    Randy L. Smith

    02/27/2023, 10:29 PM
    CFID and CFTOKEN are not clearing out for me in Lucee when I explicitly tell them to. I've thrown the kitchen sink at it, but they still appear. Any ideas? <cfset StructClear(session)> <cfcookie name="cftoken" expires="now"/> <cfcookie name="cfid" expires="now"/> <cfset delete_cookie=StructDelete(session,"cftoken") /> <cfset delete_cookie=StructDelete(session,"cfid") /> <cfset delete_cookie=StructDelete(session,"sessionid") /> <cfset delete_cookie=StructDelete(session,"urltoken") />
    b
    e
    d
    • 4
    • 9
  • r

    Randy L. Smith

    02/28/2023, 4:05 PM
    SessionRotate(): Do you always use this after a successful sign on? Docs say it helps to prevent hacking.
    d
    b
    +4
    • 7
    • 11
  • j

    johnbarrett

    03/01/2023, 1:43 AM
    On March 10th, the Hawaii ColdFusion User Group will be presenting, Introduction to Docker for ColdFusion Developers with Jim Priest, please sign up on meetup - https://www.meetup.com/hawaii-coldfusion-meetup-group/events/291946411/
    m
    r
    • 3
    • 7
  • b

    bfescoe

    03/01/2023, 4:31 PM
    With CFconfig is there a quick command to show the web config file? cfconfig show shows the server config?
  • b

    bfescoe

    03/01/2023, 4:32 PM
    like typing cfconfig show... shows the server config
    e
    r
    b
    • 4
    • 28
  • p

    PK

    03/01/2023, 5:42 PM
    This is a question about populating a PDF form using CF. My form template has text fields that are set to multi-line and scroll long text. However, when CF populates the field and it has more text than fits, it just cuts it off and doesn't provide the typical plus sign for viewing the additional text. Is this a limitation with CF? Or is there another solution to deal with text larger than the field in the pdf? Preston
    e
    m
    • 3
    • 3
  • a

    Adam Cameron

    03/03/2023, 7:49 PM
    This is a good read, from occasional community member @atuttle: https://adamtuttle.codes/blog/2023/what-to-do-when-drowning-in-technical-debt/
    👍 1
    ❤️ 1
    r
    w
    +2
    • 5
    • 18
  • a

    Adam Cameron

    03/03/2023, 9:05 PM
    https://blog.adamcameron.me/2023/03/til-something-new-about-regex.html
    👍 2
    s
    • 2
    • 2
  • c

    Cisco

    03/07/2023, 11:18 AM
    Good morning everyone. I have 2 book sets of the ColdFusion Web Application Construction Kit series 1. Macromedia Coldfusion Mx 7 Web Application Construction Kit (2 books) 2. Adobe Coldfusion 8 Web Application Construction Kit (3 books) I've been developing in CF since CF6, but have been doing .NET Dev for the last 5 years - so I've been out of the game for a while. My question is: Assuming a practice CF Dev, would either of these book sets still be relevant/useful in today's world? I'm looking to clean up my physical book library and not sure if I should still hold on to them. It's possible that they're no longer useful and equivalent (or better) resources are available online. Maybe 7 set is better than 8- at least that's what I'm seeing on amazon reviews of the books. Thank you in advance for the responses/opinions
    r
    p
    +9
    • 12
    • 61
  • j

    John Wilson

    03/07/2023, 6:31 PM
    Any XML experts here? Given the fragment below, parseXML()'d into an xmlDoc, how can I find the strategy.objectives.objective.objective_term_ref with
    name
    = "Active_Risk" and set the
    weight
    to -2 before saving the changed doc as an xml file?
    Copy code
    <?xml version="1.0" encoding="utf-8"?>
    <!-- saved with AxiomaPortfolio API 2022.2.0 -->
    <STRATEGY xmlns="<http://axiomainc.com/portfolioprecision>" strategy-id="FTDIBase" desc="Frontier">
      <OPTIONS>
        <ALLOW_GRANDFATHERING/>
      </OPTIONS>
      <LOCAL_UNIVERSE>
        <ASSET_REF name="CSH_USD__" action="include"/>
        <GROUP_REF name="AccountBenchmark" action="include"/>
      </LOCAL_UNIVERSE>
      <OBJECTIVE_TERMS>
        <RISK objective-term-id="Active_Risk" benchmark-ref="REBALANCING.BENCHMARK" riskmodel-ref="REBALANCING.RISK_MODEL" set-ref="MASTER">
        </RISK>
        <LINEAR objective-term-id="Factor_Tilt" group-ref="WW4AxiomaMH.Dividend Yield"/>
        <TAX_GAINS objective-term-id="Min_Cap_Gains" weighted="false"/>
        <TAX_LIABILITY objective-term-id="Min_Tax_Liability"/>
        <TRANSACTION_COST objective-term-id="Min_Transaction_Cost" base-set="MASTER"/>
      </OBJECTIVE_TERMS>
      <OBJECTIVES active-objective="Default">
        <OBJECTIVE objective-id="Default" target="MAXIMIZE">
          <OBJECTIVE_TERM_REF name="Min_Cap_Gains" weight="-1.0"/>
          <OBJECTIVE_TERM_REF name="Active_Risk" weight="-1.0"/>
          <OBJECTIVE_TERM_REF name="Min_Transaction_Cost" weight="-0.25"/>
          <OBJECTIVE_TERM_REF name="Factor_Tilt" weight="1.0"/>
        </OBJECTIVE>
      </OBJECTIVES>
    s
    d
    +2
    • 5
    • 36
  • 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
    • 2
    • 4
  • 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
    • 2
    • 4
  • 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
    • 2
    • 12
  • 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
    w
    • 4
    • 38
  • v

    Viral

    03/09/2023, 2:51 PM
    Trying to connect to a SFTP server
    Copy code
    <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
    • 2
    • 8
  • 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
    • 3
    • 12
  • 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
    • 1
  • 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
    • 2
    • 6
  • 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
    • 3
    • 7
  • 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
    • 2
    • 3
  • 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
    • 3
    • 7
  • 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
    • 9
    • 37
  • 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
    • 3
    • 5
1...293031...38Latest