http://coldfusion.com logo
Join Slack
Powered by
# box-products
  • j

    jclausen

    10/03/2022, 4:36 PM
    cbElasticsearch v2.3.3 Released:
    This release adds full compatibility for Elasticsearch v8.x as well as maintaining support for Elasticsearch versions 6 and 7.
    https://www.ortussolutions.com/blog/cbelasticsearch-233-released
  • c

    chris_hopkins

    10/04/2022, 2:36 PM
    anyone know of a really good walkthrough/tutorial on coldbox futures and its general async programming. Have just picked it up and its awesome but would like to know more on the general do's donts and general implementation practices. Found the general docs but maybe my ability to google today just sucks
  • e

    elpete

    10/04/2022, 4:25 PM
    Did you attend ITB 2022? If so, there’s a session from there on CFCasts: https://cfcasts.com/series/into-the-box-2022/videos/luis-majano-to-the-future-with-cbfutures
  • e

    elpete

    10/04/2022, 4:25 PM
    (That link will 404 if you don’t have access / didn’t attend)
  • e

    elpete

    10/04/2022, 4:26 PM
    There’s a GitHub repo that goes along with that session / workshop that is public: https://github.com/lmajano/to-the-future-with-cbFutures
  • c

    chris_hopkins

    10/04/2022, 4:31 PM
    ahaa thx u - think i may have found it elsewhere

    https://www.youtube.com/watch?v=2pwp6OSl9zI▾

  • e

    elpete

    10/04/2022, 4:48 PM
    A bit older, but still mostly relevant.
  • g

    gpickin

    10/04/2022, 5:00 PM
    Join Luis, Brad, Gavin and Daniel Live from CF Summit for the CFML News Podcast -

    https://youtu.be/brjeQdCkNhU▾

  • w

    wil-shiftinsert

    10/06/2022, 8:45 AM
    This might not be a specific box question, but since I had some issues with null handling in some box modules in the past, I am asking here. Both ACF and Lucee have full null support now in recent versions, so is there any reason why you should NOT enable full null support nowadays for new projects? It makes code cleaner and in one of my projects I never had any issues with it, but I was wondering how other people handle this.
  • e

    elpete

    10/06/2022, 3:47 PM
    I like the idea, especially with queries and getting actual null results for columns.
  • e

    elpete

    10/06/2022, 3:47 PM
    That said, I generally don’t have it on because of compatibility reasons with older code.
    w
    d
    p
    • 4
    • 3
  • e

    elpete

    10/06/2022, 3:47 PM
    But I look forward to that magical day.
  • b

    bdw429s

    10/07/2022, 5:58 PM
    That's really just because that's a very common env var name in ColdBox apps, so it's a useful fallback if you haven't set anything else explicitly.
    c
    • 2
    • 6
  • c

    Cavan Vannice

    10/07/2022, 6:10 PM
    Not sure if there is a solution in the route, but if not you could use an
    isNumeric()
    to determine what type the value is
    a
    • 2
    • 1
  • d

    David Rogers

    10/10/2022, 8:36 PM
    Hi, I'm working on migrating from quick v4 to quick v5. I see virtual attributes behave a little differently (they appear persistent across getInstance calls); wondering if that's by design?
    s
    • 2
    • 2
  • g

    gpickin

    10/11/2022, 5:03 PM
    CFML News Podcast going live now!!!!

    https://youtu.be/90VaqrYeVG8▾

  • r

    Ryan Albrecht

    10/11/2022, 7:26 PM
    I am having an issue with quick. It seems with v5 there is a change with how relationship instances work. The following code use to honor the
    retrieveQuery
    method but now longer has any effect.
    Copy code
    var prefix = getInstance('IpPrefix').find(1);
    var ipAddresses = prefix
    	.ipAddresses() //relationship instance
        .orderBy('id', 'asc')
    	.retrieveQuery()
    	.get();
    Could the quick experts weigh in? @elpete @sknowlton
    s
    • 2
    • 3
  • j

    jas

    10/11/2022, 7:48 PM
    Hi folks, looking to have my commandbox project auto refresh the page on save. Google is coming up short - is there anything reasonable available for this? There seem tbe options for .html files on vscode. Thanks!
    b
    • 2
    • 4
  • o

    Ookma-Kyi

    10/11/2022, 8:45 PM
    I'm trying to use a regex to make sure a password contains a uppercase, lowercase, number and symbol. I am using the following code:
    Copy code
    var result = validateModel(
    			target = rc,
    			constraints = {
    				...
    				"password" : {
    					"required" : true,
    					"regex" : "/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W)/",
    					"size": "6..255"
    				},
    				"passwordConfirmation" : { "required" : true, "sameAs" : "password" }
    			}
    		);
    However no matter what I put in it gives the validator error:
    The 'password' value does not match the regular expression: /(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W)/
    . I tried testing my regex using a regex tester https://www.regextester.com/ and used the string
    Ok12345!
    and verified it was correct. Any ideas?
    d
    a
    s
    • 4
    • 18
  • c

    Cavan Vannice

    10/11/2022, 8:47 PM
    Running into an issue with
    ortussolutions/commandbox:adobe2021
    I am unable to use cfpm to install any packages. I am getting the error CommandBox> cfpm install mail run /bin/bash "/usr/local/lib/serverHome/WEB-INF/cfusion/bin/cfpm.sh" install mail One or more packages require the server to be at update 5. Since the server is at update 4, you must install the update 5 of the server. After upgrading the server update, the packages can be installed.
    👍 1
    c
    m
    +2
    • 5
    • 18
  • p

    Peter Amiri

    10/11/2022, 9:15 PM
    @jclausen Are the forgebox packages for Adobe ColdFusion automated? Adobe just released Update 5 but ForgeBox only has Update 4. Some of the packages now require Update 5, but did I mention that ForgeBox only has Update 4. If they are automated then I assume all will be well in the world when Update 5 gets added tonight, if it is a manual process, can I entice someone to walk over to the hamster cage and feed the hamsters. 😉
  • n

    nolanerck

    10/11/2022, 10:28 PM
    Okay I'm stumped on this one....ColdBox 6.8.1 (I've tried a few different revs, same problem) and TestBox 4.0.0 or 4.5.0 (same problem with both versions). The ColdBox app itself seems to start up fine. However when I to run my tests via /tests/runner.cfm I'm getting the error seen here. Any ideas? It's as if variables.log isn't getting constructed properly?
    b
    • 2
    • 67
  • r

    richard.herbert

    10/12/2022, 6:09 PM
    Has anyone done anything with Slack and LogBox to render the extraInfo struct into the posting? Looking for examples and inspiration 🙂
    p
    g
    • 3
    • 9
  • r

    Ryan Albrecht

    10/12/2022, 9:27 PM
    Another quick issue. I am trying to apply a where filter on my entity without using method chaining. if I do not chain the methods quick will not apply the where clause. I feel like I am missing something obvious. @sknowlton
    Copy code
    // this does work
    var entity = getInstance('Device').where('id',4);
    
    // this does NOT work
    var entity = getInstance('Device')
    local.entity.where('id',4);
    
    //get the result
    var result = entity.get();
    writeDump(var=result, top=2);
    e
    • 2
    • 9
  • d

    Daniel Mejia

    10/12/2022, 9:34 PM
    Is it possible to create a CFC model and use migrations commands to create the table in the database?
    • 1
    • 2
  • r

    Ryan Albrecht

    10/14/2022, 3:41 PM
    @bdw429s I am getting a weird error when trying to start up a commandbox server using the official docker ortus container. This seems to only happens when the
    BOX_INSTALL: 'true'
    environment variables is true
    Copy code
    plutus_web | key [MULTICONTEXT] doesn't exist
    plutus_web |
    plutus_web |
    plutus_web | /usr/local/lib/CommandBox/cfml/modules/commandbox-cfconfig/models/Util.cfc: line 70
    plutus_web | 68:
    plutus_web | 69:                                // Crappy workaround for CommandBox bug where this logic is being done on the fly, but not saved back into the serverInfo struct!
    plutus_web | 70:                                if( serverInfo.multiContext && not serverInfo.webConfigDir contains '{web-root-directory}' && not serverInfo.webConfigDir contains '{web-context-hash}'  ) {
    plutus_web | 71:                                        serverInfo.webConfigDir &= '-{web-context-hash}'
    plutus_web | 72:                                }
    plutus_web | called from /usr/local/lib/CommandBox/cfml/modules/commandbox-cfconfig/interceptors/ConfigLoader.cfc: line 398
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/wirebox/system/core/events/EventPool.cfc: line 118
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/wirebox/system/core/events/EventPool.cfc: line 96
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/wirebox/system/core/events/EventPoolManager.cfc: line 59
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/services/InterceptorService.cfc: line 57
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/services/ServerService.cfc: line 980
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/modules_app/server-commands/commands/server/start.cfc: line 173
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/services/CommandService.cfc: line 345
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/services/CommandService.cfc: line 158
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/Shell.cfc: line 768
    plutus_web | called from /usr/local/lib/CommandBox/cfml/system/Bootstrap.cfm: line 119
    b
    • 2
    • 7
  • r

    Ryan Albrecht

    10/14/2022, 3:42 PM
    any ideas?
  • j

    jakobward

    10/14/2022, 4:46 PM
    I’m running ACF 2021 in CommandBox. I try to use CFPM…I get the error: “No Adobe 2021+ server found”. I googled. Didn’t find anything that worked. server.json has: “app”{“cfengine”“adobe@2021"}
    b
    • 2
    • 25
  • j

    Jordan Clark

    10/17/2022, 7:49 PM
    @bdw429s just an idea for commandbox it would be cool if the box CLI could be configured to "pass through" some commands to the normal terminal and pipe the responses out, would be super handy for example if any command starting with "git" passed through so I could checkout/change/merge without switching terminals
    b
    • 2
    • 19
  • g

    gpickin

    10/18/2022, 4:59 PM
    Gavin and Brad live for the CFML News Podcast -

    https://youtu.be/SgTjYDH0N6M▾

1...151617...30Latest