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

    zackster

    07/20/2022, 10:33 AM
    what do people think about allowing to return
    false
    from a testbox
    beforeAll()
    method to disable/skip the entire suite? https://ortussolutions.atlassian.net/browse/TESTBOX-345
  • a

    aliaspooryorik

    07/20/2022, 11:10 AM
    You can do it with a describe - something like:
  • a

    aliaspooryorik

    07/20/2022, 11:10 AM
    Copy code
    describe(
    			title = "A Lucee only suite",
    			body  = function(){
    				it( "should only execute for Lucee", function(){
    					expect( server ).toHaveKey( "Lucee" );
    				} );
    			},
    			skip = ( !isLucee() )
    		);
    z
    a
    • 3
    • 23
  • p

    Peter Amiri

    07/20/2022, 9:37 PM
    @bdw429s from the CFConfig docs "Scheduled tasks are currently only supported for Adobe ColdFusion. Please contact us if you'd like to sponsor this feature." Ah, consider yourself contacted. I'd love to see how we can get Lucee supported.
    ❤️ 1
    b
    • 2
    • 48
  • b

    birdy1980

    07/21/2022, 10:50 AM
    A questiontion about commandbox servcie manager. If you stop the windows service, is the cf instance immediately stopped when the stop command returns? Or does it take a while for the instance to stop?
    b
    b
    • 3
    • 16
  • m

    Marco Liverani

    07/21/2022, 2:36 PM
    I’m running Coldbox 6.7 on CF 2018. The application seems to works fine, but I have several message in the error log with the following text: Element ORIGINALAPPSCOPE is undefined in VARIABLES I found this variable name in the BaseProxy component, but I don’t know why these errors are still thrown.
    b
    • 2
    • 9
  • b

    birdy1980

    07/21/2022, 3:25 PM
    is there difference between
    server info
    and
    server status
    ?
    b
    • 2
    • 3
  • b

    birdy1980

    07/22/2022, 5:51 AM
    Is there a way to use variables in a recipe ?
    b
    • 2
    • 1
  • d

    danlance

    07/22/2022, 12:25 PM
    Hi, July 2022 security updates were released yesterday. For Java 11, the following CVEs are applicable: https://foojay.io/java-11/?quarter=072022&tab=cve One of these is high CVSS score (7.5/10) and maybe possibly referenced from XML processing functionality that Lucee maybe possibly references when processing XML based web service remote CFC requests… As such, we are looking at rolling out jdk-11.0.16+8 ASAP to the Lucee servers we are responsible for. Would it be possible @bdw429s @jclausen to have a new build (and new tag on dockerhub) using this Java version?
  • j

    jclausen

    07/22/2022, 12:53 PM
    @danlance As soon as a the
    eclipse-temurin
    images are available for that version ( currently the last build of 11 is 11.0.15 - https://hub.docker.com/_/eclipse-temurin?tab=tags&page=1&name=11.0.16 ), I can build a new image with that as the base. I’m not sure when that will be, but I suspect in the next few days.
    👍 1
    d
    • 2
    • 4
  • o

    Ookma-Kyi

    07/22/2022, 2:26 PM
    Help, I am getting this weird error:
    Copy code
    Communications link failure The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
    I am able to migrate install, up, down, uninstall the database successfully via the Coldbox CLI so my database credentials are set up and a link is established I presume. Any ideas? UPDATE: Going into the server admin, Datasources-><Datasource> and just clicking update with no setting being changed fixes the issue. However this has to be done every time so it's not a real fix but, a workaround. Also with not having to change anything in the datasources setting, it only confirms that my .env file's database credentials are in fact correct.
    e
    b
    • 3
    • 16
  • b

    birdy1980

    07/25/2022, 11:15 AM
    Is forgebox.io down?
    b
    • 2
    • 4
  • d

    domwatson

    07/25/2022, 11:16 AM
    yes indeed it is cc @lmajano @bdw429s @elpete (apologies if ccing wrong folks)
    b
    l
    • 3
    • 4
  • o

    Ookma-Kyi

    07/25/2022, 9:32 PM
    Can anyone please point me to a Model, Service, DAO example please posswibly as simple as it could be since I just started learning?
    l
    a
    • 3
    • 4
  • c

    caldjeff

    07/25/2022, 11:33 PM
    How does CommandBox find my browser to launch on start? Messing around on a Raspberry Pi and it throwing up an error that it can't find my browser. I'm assuming I can tell it where to look somewhere?
    b
    • 2
    • 27
  • a

    aliaspooryorik

    07/26/2022, 8:21 AM
    What's the best way to disable a ColdBox module in dev? For example I am using the Sentry module but I don't want it enabled on local dev. I've added this to my
    development
    environment function
    moduleSettings.sentry.enableExceptionLogging = false;
    to override the setting from the main
    moduleSettings
    . The other option (I think) is to append to the
    modules.exclude
    array (for dev). So wondering what the smart folks do 🙂 Thanks
    w
    g
    l
    • 4
    • 7
  • b

    bhartsfield

    07/26/2022, 12:44 PM
    Before I start writing custom methods for it, are there any coldbox-validation aficionados out there who can help with some requiredIf/array constraint logic? Details in the thread.
    w
    • 2
    • 6
  • g

    gpickin

    07/26/2022, 4:59 PM
    Going live now for the CFML News Podcast- for real this time

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

  • b

    Brandon Edwards

    07/26/2022, 5:16 PM
    Is there a way to get better performance out of Wirebox? I downloaded ColdBox 6.8, cloned Luis' API Example from the latest dev week, modified the RantService
    list()
    function to just call
    wirebox.getInstance("Rant@v6")
    100 times, and it takes about 1500ms (not including any framework init processes). Alternatively, is there a way to inject mementifier and cbvalidation functionality into an object without using Wirebox?
    b
    • 2
    • 6
  • d

    Daniel Mejia

    07/26/2022, 9:04 PM
    How do I run multiple commandbox servers from the same codebase(essentially the same box.json). The only way I can do it is to change the name in box.json to be unique.
    s
    • 2
    • 22
  • c

    chris_hopkins

    07/27/2022, 9:13 AM
    Coldbox / FusionReactor question: Anyone off the top of their head know if there is any difference in FR on the level of reporting out of the box with the commandbox FR module vs a normal FR installation ? cant see anything obvious from the docs but just came across the CB module https://commandbox.ortusbooks.com/embedded-server/fusionreactor
    b
    • 2
    • 3
  • t

    thisOldDave

    07/27/2022, 10:57 AM
    commandbox/docbox question I am trying to create some documentation for our test suite there some old tests that fail with
    invalid component definition, can't find component [mxunit.framework.TestCase]
    . its fine if I run the generate command in a server with an /mxunit (pointing to
    /testbox/system/compat
    of course 😉 ) mapping but I am running this as a
    box docbox generate...
    is there any way I can supply the mapping to box.exe?
    b
    • 2
    • 35
  • d

    Daniel Mejia

    07/27/2022, 6:09 PM
    How do you delete orphaned server services?
    b
    • 2
    • 22
  • b

    birdy1980

    07/28/2022, 12:12 PM
    is it possible to use the ortus redis cache extension for the secondary level cache of ORM?
    b
    l
    • 3
    • 9
  • c

    Carlos Guzman

    07/28/2022, 3:08 PM
    Hello, I am just starting on Contentbox, and I have my MySQL 8 running on my local, but everytime I run on commandbox
    contentbox install-wizard
    I get to the point where it gives me this error, is there anything that I am missing? I have checked the credentials and the host name and apparently everthing is ok.
    b
    • 2
    • 26
  • d

    Daniel Mejia

    07/28/2022, 5:41 PM
    server forget --all --force can't delete the servers.
    Copy code
    ❯ server forget --all --force
    Can't delete file [E:\CommandboxHome\server\DA7F43423BCFDE8421F0B9A6A478DB2E-api\adobe-2021.0.3.329779\cf_scripts\cfclient\dnfi\ios\plugins\cordova-plugin-file\www\FileWriter.js]
    Did you leave the server running?
    f
    b
    • 3
    • 25
  • d

    Daniel Mejia

    07/28/2022, 8:08 PM
    Service manager is not working. the -out log has this:
    Copy code
    [38;5;9m[1mYou specified named parameters: serverConfigFile,directory,name but you did not specify a name for: 1 
    	server start name='Staging 1 Api' directory='E:/sites/apistaging1/' serverConfigFile='E:/sites/apistaging1/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable[0m
    b
    • 2
    • 76
  • d

    Daniel Mejia

    07/28/2022, 10:33 PM
    What does this coldbox error mean?
    Copy code
    2022-07-28 15:12:27 coldbox.system.web.services.HandlerService The invalidEventHandler event (Error.onInvalidEvent) is also invalid: | ExtraInfo: {"ROUTE":"","CALLSTACK":[{"Template":"E:\\sites\\api\\coldbox\\system\\web\\services\\HandlerService.cfc","LineNumber":"470","Function":"INVALIDEVENT"},{"Template":"E:\\sites\\api\\coldbox\\system\\web\\services\\HandlerService.cfc","LineNumber":"333","Function":"GETHANDLERBEAN"},{"Template":"E:\\sites\\api\\coldbox\\system\\web\\Controller.cfc","LineNumber":"753","Function":"_RUNEVENT"},{"Template":"E:\\sites\\api\\coldbox\\system\\web\\Controller.cfc","LineNumber":"658","Function":"RUNEVENT"},{"Template":"E:\\sites\\api\\coldbox\\system\\Bootstrap.cfc","LineNumber":"290","Function":"PROCESSCOLDBOXREQUEST"},{"Template":"E:\\sites\\api\\coldbox\\system\\Bootstrap.cfc","LineNumber":"507","Function":"ONREQUESTSTART"},{"Template":"E:\\sites\\api\\Application.cfc","LineNumber":"42","Function":"ONREQUESTSTART"}],"FULLEVENT":".","REQUESTEVENT":"","ROUTEDURL":"","REGISTEREDHANDLERS":"customRestHandler,Error,Main","EVENT":""}
    b
    s
    • 3
    • 24
  • d

    David Rogers

    07/29/2022, 3:11 PM
    i just realized testbox lets you click on stacktrace <div>s, and it will open an editor for the offending line
    Copy code
    function openInEditorURL(
    		required template,
    		required line,
    		editor = "vscode"
    	){
    		switch ( arguments.editor ) {
    			case "vscode":
    				return "<vscode://file/#arguments.template#:#arguments.line#>";
    is there a way to remap
    template
    , e.g. from
    /dev-container-root/app/*
    to
    /host-machine/actual-root/*
    (assuming * is consistent between the two, there's just a different prefix)
    b
    l
    • 3
    • 4
  • o

    Ookma-Kyi

    07/29/2022, 7:57 PM
    Dumb question, I added a
    username
    field to the user model. How do I access it after the user is logged in inside a view? I tried
    #user.username#
    and
    #auth.user.username#
    with no success.
    s
    • 2
    • 2
1...101112...30Latest