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

    birdy1980

    05/06/2022, 11:13 AM
    I might have found another problem with commandbox 5.5.1 It seems like the rest api is not working anymore. We use Adobe CF 2018, In the server.json file we added a restMapping property to map the api to
    /api/*
    On Commandbox 5.5.1 I suddenly get a
    404 not found
    . I'll try to create a demo project to have a simple way of reproducing the problem
    b
    • 2
    • 23
  • s

    sknowlton

    05/06/2022, 5:58 PM
    Using cbstorages, shouldn't
    cookieStorage.getKeys()
    be an array of all the keys you see if you
    writedump( cookie );
    ?
    b
    w
    • 3
    • 33
  • b

    bhartsfield

    05/06/2022, 7:11 PM
    ColdBox noob question I'm sure but... Is there a built-in mechanism to tell ColdBox to use "my.custom.Response" in place of system.web.context.Response (without having to modify core ColdBox code)? I guess my hope is that, buried somewhere in all the handy ColdBox configuration options is a setting I'm just missing. https://apidocs.ortussolutions.com/coldbox/6.0.0/coldbox/system/web/context/Response.html Basically, I just want a little more control than the methods in that component give me. For example, I'd like to remove the pagination struct from certain responses.
    w
    • 2
    • 8
  • b

    Brian Meloche

    05/06/2022, 11:38 PM
    I am getting a "Please download the latest version of CommandBox and replace the binary on your OS..." message. My problem is... where is that located exactly? I don't see it anywhere. I'm running Windows 11 Pro and most of everything seems to be in C:/users/brian/.CommandBox, but I can't find box.exe.
    b
    • 2
    • 5
  • g

    gpickin

    05/10/2022, 4:57 PM
    Daniel and Eric going live in 2 mins for the CFML News Podcast https://bit.ly/3M0c1Bp
    a
    • 2
    • 2
  • c

    cfvonner

    05/10/2022, 5:15 PM
    Commandbox question: is there a way to pre-download a ColdFusion/Lucee version into the artifacts folder without starting up a server using that version? When 2018u14 becomes available I want to download it and add a needed patch jar to it before it gets used by an existing/new Commandbox-controlled server. I did look through the documentation at commandbox.ortusbooks.com but I didn't find anything that answered that directly.
    d
    b
    • 3
    • 7
  • z

    Zac Warner

    05/10/2022, 11:23 PM
    Hello everyone! Need some help hunting down cause of error in a rest api. The route is suppose to receive an email address then send a reset password email to that email address. The email sends fine and looks fine, but the route returns a 500 internal server error. The stack trace says error is missing include could not find template //views/auth/createPasswordChangeRequest which shouldn't be a view at all, it's a service function. it almost seems like as soon as it renders the email it stops trying to return an api request, and instead a view? I have found 2 things that seem to fix it. if I change from coldbox.system.RestHandler to a custom handler, it seems to work fine.
    Copy code
    // *** this line below **
    component extends="coldbox.system.RestHandler" {
      function createPasswordChangeRequest(event,rc,prc){       
    
            //Authenticate User
            var result  =  userService.createPasswordChangeRequest(argumentCollection=rc);
           
            //Configure Results
            prc.response.setData(queryToArray.convert(result,"lowercase"));
        };
    }
    that's my handler or if I change in our email service this Renderer.renderLayout to just a string I don't get the error either.
    Copy code
    component 
    	threadSafe	= "true"
    	output		= false
    	hint  		= "mail service help to mailService@cbmailservices" {
    
    	property name="cbMailService" 	inject="mailService@cbmailservices";
    	property name="Renderer"     	inject="Renderer@coldbox";
    	property name="ENVIRONMENT" 		inject="coldbox:setting:ENVIRONMENT";
        property name="CONFIG"              inject="coldbox:configSettings";
    
    	emailService function init(){
    		return this;
    	}
    
    	public struct function send(required string layoutName, required string viewName, required struct settings, string type) {
    
    		// Create mail service object
    		var emailPayload = cbMailService.newMail();
    
    		// Set the settings
    		emailPayload.setTo(<http://ARGUMENTS.settings.to|ARGUMENTS.settings.to>);
    		emailPayload.setFrom(ARGUMENTS.settings.from);
    		emailPayload.setSubject(ARGUMENTS.settings.subject);
    
    // ******** these lines *****
    emailPayload.setText(Renderer.renderLayout(layout="email/referencecenter.text",view="email/"&ARGUMENTS.viewName&".text"));
    			emailPayload.setHtml(Renderer.renderLayout(layout="email/referencecenter.html",view="email/"&ARGUMENTS.viewName&".html"));
    //*********************
    var result = cbMailService.send(emailPayload);
    
    		return result;
    	}
    any insight would be super appreciated I would love to be able to use the coldbox.system.resthandler and renderer.renderlayout together but I keep getting that error response.
    p
    b
    d
    • 4
    • 25
  • a

    aliaspooryorik

    05/11/2022, 10:22 AM
    Was just reading the ACF2021 deprecated list and noticed
    GetTemplatePath
    in there which currently in ColdBox https://github.com/ColdBox/coldbox-platform/blob/development/system/web/config/ApplicationLoader.cfc#L177 expect it works just fine but just flagging in case it's useful 🙂 `https://helpx.adobe.com/coldfusion/deprecated-features.html
    b
    • 2
    • 11
  • w

    websolete

    05/11/2022, 2:38 PM
    commandbox on windows question: in my box.json i have a directive to copy some ssl cert files to a local folder. using a unc path fails to copy the files, but using a mapped drive to do the same thing works fine. doesn't work:
    Copy code
    "scripts":{ 
        "preServerStart":"cp \"\\\\servername\\folder\\subfolder\\\" \".\\certs\\\""
    }
    works:
    Copy code
    "scripts":{ 
        "preServerStart":"cp \"T:\\folder\\subfolder\\\" \".\\certs\\\""
    }
    where T: is simply mapped to \\servername\ is there some special syntax i'm missing for using unc paths here?
    t
    d
    +2
    • 5
    • 71
  • s

    sknowlton

    05/11/2022, 4:45 PM
    We have some legacy app bootstrap foo that runs on the first
    onRequestStart()
    the app gets. Sometimes it races ahead of Coldbox bootstrapping and so Wirebox and Coldbox are there but they're not done loading modules. What's the easiest way to say 'hey Coldbox, are you totally done loading everything?' or should we just set some app scope variable in
    afterAspectsLoaded()
    or someplace like that
    b
    w
    • 3
    • 65
  • t

    teaman

    05/11/2022, 9:31 PM
    Noticing in CommandBox that as it loads Adobe CF2018 server the animated icon is partially cut off. See this screencast. It ended before it could record more than a second or two but it shows what I speak of in the top-left corner just before the CommandBox prompt: https://www.screencast.com/t/ZwAzHEbRrgh
    b
    • 2
    • 21
  • g

    gpickin

    05/12/2022, 11:12 PM
    In case you missed my Webinar today on the Online ColdFusion Meetup - you can watch the replay here

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

  • b

    Brian

    05/13/2022, 2:37 PM
    I haven't used any of the box products yet, but hope to eventually. Is CommandBox a better way to install/run a local ACF dev instance than the Adobe installer? Also, what's the best intro/overview video for CommandBox?
    a
    b
    • 3
    • 4
  • d

    danmurphy

    05/13/2022, 3:47 PM
    Might be heresy to ask about this here, but is anyone using CommandBox with private github packages? Curious as to what your workflow looks like with publishing changes and such (as compared to ForgeBox packages, which we’ve done). And is a github package any different than a normal github repo? Just dipping our toes into this a bit.
    b
    • 2
    • 145
  • j

    Jonas Eriksson

    05/15/2022, 9:16 AM
    Does someone know what this error msg means? I restored a backup of my Ubuntu 18.04 server runing CommandBox 5.4.x - updating it with the downloaded version of 5.5.x (using
    sudo apt-get install apt-transport-https commandbox
    ) it won't start anymore with the following error msg: (see thread)
    b
    • 2
    • 4
  • j

    Jonas Eriksson

    05/15/2022, 9:37 AM
    Another semi-related question: On Ubuntu 18.04, I run one Lucee server via Commandbox named mdev - after a reboot however, it doesn't start mdev, but only "default". Is there something I can do to change this, or would this be a use-case for the Ortus Server manager?
    b
    • 2
    • 3
  • s

    sknowlton

    05/16/2022, 2:10 PM
    We have some bidness that stores answers to form fields created by our clients, and those answers are sometimes "yes" or "no". Mementifier is auto-magically turning them into
    true
    and
    false
    because of this:
    Copy code
    // Strict Type Boolean Values
    		else if ( !isNumeric( thisValue ) && isBoolean( thisValue ) ) {
    			result[ thisAlias ] = javacast( "Boolean", thisValue );
    		}
    Is there a way to tell mementifier not to do that other than using a mapper for every column?
  • s

    sknowlton

    05/16/2022, 2:10 PM
    the property definition is string / sqltype varchar, so no CFML metadata indicating it's a boolean
    w
    l
    • 3
    • 107
  • t

    teaman

    05/16/2022, 5:28 PM
    I ran into the bug described here: https://bugs.mysql.com/bug.php?id=102435 It's over a year old but when I use Commandbox to load cfengine: adobe@2018 I get this problem. Can anyone provide suggestions on how to either be more specific on the cfengine I use or how to resolve this issue? It's basically a bug in the cf connector driver for mySql (as I understand it) I would think adobe@2018 would be picking up the fixed connector but obviously it appears not to be for me. The symptoms I am having are date fields queried from a table are showing as objects not dates in <cfquery> results.
    b
    • 2
    • 7
  • d

    Daniel Mejia

    05/17/2022, 3:20 AM
    Is it possible to have this folder structure for a forgebox module and use a git repository? box.json :
    Copy code
    "repository": {
        "type": "git",
        "URL": "<https://github.com/webmandman/XYZ>"
    }
    folder structure :
    Copy code
    src/
        lib/
        models/
        ModuleConfig.cfc
    coldbox-example-app/
    non-coldbox-example-app/
    box.json
    b
    • 2
    • 13
  • t

    teaman

    05/17/2022, 7:45 AM
    I re-installed CommandBox using HomeBrew on my Mac. This went ok. I started it with the box cmd and then installed commandbox-hostupdater which modifies the hosts file. I then started an adobe 2018 server with the "start cfengine=adobe@2018" to make sure the initial server start picked up that version of CF. But the password prompt was obscured so I didn't understand at the time that it was wanting my password to access the hosts file. It's not clear how to get the hosts file editable by CommandBox using the hostupdater pkg when edutubg tge hosts file requires root access. Any help in getting this to work would be appreciated. I'm using port 9001 for my dev project server. Here's a transcript of the attempt:
    Copy code
    CommandBox> start
    |  sword: |ng Server
    bash: /private/etc/hosts: Permission denied
    bash: /private/etc/hosts: Permission denied
    bash: /private/etc/hosts: Permission denied
     × | Starting Server
       |------------------------------   | Adding host 'sb' to your hosts file!   | Oh my! Something went wrong when trying to modify the hosts file!
       | Adding host '<http://dev.sb|dev.sb>' to your hosts file!
       | Oh my! Something went wrong when trying to modify the hosts file!
       | Adding host 'sb.local' to your hosts file!
       | Oh my! Something went wrong when trying to modify the hosts file!
       |------------------------------
       | √ | Setting Server Profile to [production]
    
    
    ERROR (5.5.1+00562)
    
    The host name [sb] can't be found. Do you need to add a host file entry?
    
    sb
    e
    b
    c
    • 4
    • 152
  • s

    satauros

    05/17/2022, 9:21 AM
    Does `commandbox-cfconfig`export database passwords as well? If yes, can they be omitted through a .env file?
    t
    a
    b
    • 4
    • 9
  • g

    gpickin

    05/17/2022, 5:02 PM
    GOING LIVE NOW Join Gavin and Daniel for this weeks CFML News Podcast, starting at 10am PDT today. Lots of big news and announcements, and lots of great #cfml #coldfusion content

    https://www.youtube.com/watch?utm_medium=referral&amp;utm_source=contentstudio.io&amp;v=ArUgrF-YL9k&amp;feature=youtu.be▾

  • p

    Patrick

    05/18/2022, 1:43 AM
    How do you store in the cfpm packages for CF21 automatically with the server.json or box file to auto install? Not seeing how to do this on docs, but we have manually added a bunch but dont want to have to redo for other environments each time.
    b
    b
    j
    • 4
    • 38
  • s

    seandaniels

    05/18/2022, 2:42 PM
    I'm looking into migrating my Lucee Admin scheduled tasks to ColdBox's new Scheduled Task manager. In the documentation I see this in regards to the onOneServer() directive:
    This feature *ONLY* works when you are using a distributed cache like redis, mongo, elastic, couchbase or a JDBC CacheBox provider in CacheBox.
    Is this referring to the default cache in CacheBox? Or does the scheduler have it's own cache?
    b
    • 2
    • 6
  • c

    chris-schmitz

    05/19/2022, 3:20 PM
    For anyone using the
    commandbox-hostupdater
    module... I just don't have the time to do any CommandBox related stuff any more. To be honest, I haven't used CB in 2 or 3 years, except for a short demo case every now and then. So I just handed the project over to @bdw429s and Ortus, so anybody using it can be sure to receive updates and fixes in a timely manner.
    👏🏻 1
    👏🏾 1
    👏 2
    l
    • 2
    • 1
  • b

    bdw429s

    05/19/2022, 3:21 PM
    The ForgeBox slug will remain the same so if you're using the project, you don't need to change anything 🙂
  • j

    jakobward

    05/19/2022, 3:43 PM
    Google-fu not helping. I’m trying to install a CF2021 package…do I set JAVA_HOME in CommandBox? And, how do I set it?! Thanks. 🙂
    j
    b
    m
    • 4
    • 29
  • b

    bhartsfield

    05/20/2022, 8:04 PM
    Just had my manager buy a service-manager license so I can vet it in dev before buying enough to cover prod. He entered my username when purchasing but this is what I get after logging in and trying to install (which is pretty much the entire installation documentation) Am I missing a step somewhere?
    b
    • 2
    • 15
  • b

    bdw429s

    05/20/2022, 10:39 PM
    https://twitter.com/bdw429s/status/1527780029039525888
    👍 4
    👍🏼 1
1...567...30Latest