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

    Ryan Albrecht

    12/20/2022, 9:44 PM
    I vaguely remember a module to manage scheduled tasks. Does such a thing exist?
    b
    • 2
    • 6
  • j

    Jim Priest

    12/21/2022, 12:18 AM
    So I'm working on integrating ColdBox into our ancient application (thanks @bdw429s for the help). Question - what are the go to modules in ColdBox? I don't want to go crazy and install modules that I don't need but things like cbValidation look like a no-brainer... any other suggestions?
    d
    g
    b
    • 4
    • 9
  • s

    salted

    12/21/2022, 12:04 PM
    Can you create an interceptor that will intercept any method called in a cfc?
  • s

    salted

    12/21/2022, 12:04 PM
    or does it always need to be specified
  • s

    salted

    12/21/2022, 12:07 PM
    I think that might be getting into AOP though as opposed to the interceptors discussed in the docs
  • d

    domwatson

    12/21/2022, 1:28 PM
    Looks like here be the magic you're looking for: https://wirebox.ortusbooks.com/aspect-oriented-programming/aop-intro. @salted you seen this already ^^?
  • s

    salted

    12/21/2022, 2:39 PM
    @domwatson I seen that just after I posted this question actually. Will give it a look
    👍 1
  • d

    dfgrumpy

    12/22/2022, 6:32 PM
    Question, for local environments we want to set a javahome in server.json. However, in other environments we don't want/need to set it at all. I can't set it to blank so how can I get around this without using something like .env in non local environments.
    b
    • 2
    • 7
  • c

    Christopher Bare

    12/22/2022, 8:17 PM
    Questions: I'm trying to get the Adobe ColdFusion Builder extension for VSCode to work. But I set it up the commandbox and it's saying that the server home is invalid. Is there any fix for that?
    c
    • 2
    • 2
  • o

    Ookma-Kyi

    12/23/2022, 1:32 AM
    Trying to create a simple characters page and it's giving me:
    Copy code
    variable [CHARACTER_COUNT] doesn't exist
    I am passing in the variable into the view: Handler:
    Copy code
    component extends="coldbox.system.EventHandler" secured {
    
    	// Default Action
    	function index( event, rc, prc ){
    		prc.pageTitle = "Characters";
    
            var character_count = getInstance("character")
                .where("userid", auth().user().getID() ?: -1 )
                .count();
    
            if (character_count > 0 ) {
    
            var characters = getInstance("character")
                .where("id", auth().user().getID() ?: -1 );
            }
    
    		event.setView( "characters/index", { character_count: character_count } );
    	}
    
    }
    View:
    Copy code
    <cfoutput>
    		<h1>Characters</h1>
    		<cfif character_count EQ 0>
    			<p>No Characters, why not create one?</p>
    		</cfif>
    </cfoutput>
    Any ideas?
    c
    • 2
    • 1
  • r

    Robert Zehnder

    12/23/2022, 2:28 PM
    Is there a ColdBox-y way of listing all registered handlers? I am working on a poc app and when a certain cookie exists there is an interceptor that overrides the current event using
    event.overrideEvent
    . Currently, if the override doesn’t exist I have it setup to show the 404 page. I would like to be able to check to see if the event exists before overriding it.
    b
    • 2
    • 8
  • b

    bdw429s

    12/23/2022, 6:09 PM
    I've had a few reports of the latest version of CommandBox/Lucee dumping a bunch of OSGI errors out to the console when you start two instances of CommandBox at the same time. Can anyone confirm if they can reproduce this? I'd like to test a fix I've been playing with (that involves a pull request to Lucee).
    r
    j
    +2
    • 5
    • 29
  • o

    Ookma-Kyi

    12/24/2022, 8:32 PM
    Is there a tutorial or guide for setting up a roles based system in Coldfusion using Coldbox and cfSecurity?
    d
    b
    • 3
    • 13
  • d

    Dave Merrill

    12/24/2022, 9:38 PM
    So, I've done a tiny bit of ColdBox in the distant past, and we don't use it at work, but I'm still very interested. wanted to take advantage of the free training this month.
  • d

    Dave Merrill

    12/24/2022, 9:42 PM
    So, I've done a tiny bit of ColdBox in the distant past, and we don't use it at work. I'm still very interested though, since IMO it's really the only reasonable CF framework choice at this point, and I've liked what I know. I wanted to take advantage of the free training this month, but I'm up to my eyeballs in Stuff (as in, have to do some work this weekend...), and it's not going to happen. Is there any way to get a rain check on that, and do it later?
    s
    b
    • 3
    • 2
  • r

    Robert Zehnder

    12/28/2022, 7:29 PM
    I seem to remember an option to reload commandbox on every request (useful when writing commandbox modules), but I cannot find it. Anyone remember it offhand?
    b
    p
    • 3
    • 23
  • r

    Robert Zehnder

    12/28/2022, 9:13 PM
    Last question of the day… I am wondering if there is a commandbox-y way of using
    print
    from inside models/services. Currently, if I want to print to the console from a service, I am passing in an instance of
    print
    as an argument to my service method.
    b
    j
    • 3
    • 23
  • t

    teaman

    12/29/2022, 4:45 PM
    @bdw429s Today when I invoked the box (CommandBox) app, it spewed out a lengthy list of errors that looked like this:
    Copy code
    ERROR: Error reloading cached bundle, removing it: C:\Users\bholm\.CommandBox\engine\cfml\cli\lucee-server\felix-cache\bundle9
    java.io.FileNotFoundException: C:\Users\bholm\.CommandBox\engine\cfml\cli\lucee-server\felix-cache\bundle9\<http://bundle.info|bundle.info> (The system cannot find the file specified)
    but then it continued on and came to the commandbox prompt. I Quit and tried again thinking it was clearing a cache index but I got the same result. How is this resolved?
    b
    • 2
    • 4
  • e

    elpete

    12/30/2022, 3:47 PM
    It’s not special to ColdBox. It would depend on if your CFC has
    accessors="true"
    on the metadata. If so, CFML generates
    get#propertyName#
    and
    set#propertyName#
    methods you can use. If you don’t want
    accessors="true"
    on the component, you will need to provide your own methods that access the properties.
    🙏 1
  • m

    Mauro caresimo

    12/30/2022, 4:51 PM
    the cfc in question has accessors set to true so must be something else 😞
  • j

    jamiejackson

    12/30/2022, 5:54 PM
    you'd think with all of the commandbox docs, this would be easy to find, but this is the second time i've looked and have come up short. it's been a long time since i used coldbox. could you point me to the docs on simply running and configuring a specific CFML engine to run a site? say i want to run an
    index.cfml
    in lucee 5.3.10.97?
    r
    • 2
    • 2
  • j

    jamiejackson

    12/30/2022, 6:43 PM
    i had thought that commmandbox's
    server start
    would have the web root at the current directory, but maybe not? how to do so? (i'm still trying to figure out which directory i'm seeing in the browser.)
    r
    b
    • 3
    • 5
  • d

    David Rogers

    12/30/2022, 7:42 PM
    is there a way to pull "current table alias" from a quick scope? we of course know tablename, but it might be renamed in a "where scope", so far I have
    Copy code
    getInstance("foo").whereHas("bar", (barInstance) => {
    	var name = barInstance.getFrom(); // treating barInstance as a QuickBuilder <: QueryBuilder
    	writedump(name); // "bartable bartable_1"
    	barInstance.where(...)
    })
    where we'd like to know we need to ref it as
    bartable_1
    if we put a selectRaw or similar in the scope
  • j

    jamiejackson

    12/30/2022, 7:46 PM
    i'm new (well, super rusty) to commandbox. i'm trying to set some jvm args but i don't think they're getting picked up. not sure how to troubleshoot this. does
    server.json
    at least look okay? https://gist.github.com/jamiejackson/96b83c3a83e9ac44a8d6a3699bf59ba5
    d
    b
    • 3
    • 13
  • c

    Charles Robertson

    01/06/2023, 3:50 PM
    Hi everyone Is it possible to use the same code base via CommandBox, using two different engines. Let’s say ACF2021 and the latest version of Lucee. Just to slightly complicate matters, we are wiring CommandBox to IIS, via the AJP BonCode Connector. The codebase webroot will have the same system path, like:
    Copy code
    C:\domains\<http://acf-lucee.com|acf-lucee.com>\wwwroot\
    The reason why it has to use the same system path is because when the application was built, someone hardcoded a system path for many of the mappings in the
    Application.cfc
    [yes I know. It is legacy code hell 😱] The system path root is:
    Copy code
    D:\wwwroot
    I have had to use
    mklink
    to create a Junction on this folder, so that it points to:
    Copy code
    C:\domains\<http://acf-lucee.com|acf-lucee.com>\wwwroot\
    So, if I have two different engines powering this codebase, both must point to the same physical address. I can see some of the problems here. How can I make the:
    Copy code
    server.json
    In the the webroot, fire up two different engines? This might work, if I can call `server.json`:
    Copy code
    server-lucee.json
    server-acf.json
    Is this possible? In my recipe, how do I tell CommandBox to look for something other than
    server.json
    c
    b
    • 3
    • 65
  • g

    garciadev

    01/06/2023, 4:02 PM
    Just a reminder that we are having Ortus Office Hours today at 11am CT. Please register here and come by. 🙂 https://us02web.zoom.us/meeting/register/tZYvcO-hrz8iHNS0C3o0aw2x3JMtmBrKwzfA
  • s

    seandaniels

    01/12/2023, 5:38 PM
    Does anyone familiar with Tuckey or Undertow predicates know if there is a way to proxy-pass a subdirectory to an app hosted on another domain? I currently do this with NGINX mapping my
    /kb
    "directory" to
    <http://mydomain.helpjuice.com|mydomain.helpjuice.com>
    as described here: https://help.helpjuice.com/en_US/helpjuice-subdir
    b
    m
    d
    • 4
    • 274
  • j

    Jordan Clark

    01/13/2023, 10:46 PM
    What is the difference of commandbox server.json "errorPages" "500" and lucee's "Settings - Error 500"? Ultimately I'm seeing error logs for production from undertow failing to display the errorPages defined, but when I try to reproduce an error locally I get Lucee error handler, how can I verify or cause undertow to fail and show its error handler instead?
    z
    b
    • 3
    • 4
  • s

    seandaniels

    01/14/2023, 3:55 PM
    In my server.json, I have the following:
    Copy code
    "fusionreactor":{
            "enable":true,
            "licenseKey":"${FR_LICENSEKEY}",
            "debugEnable":false,
            "port":"8089",
            "password":"${LUCEE_ADMIN_PASSWORD}",
            "cloudGroup":"dealstream,${FR_CLOUDGROUP}",
            "defaultApplicationName":"dealstream",
            "licenseDeactivateOnShutdown":true,
            "ChatEnabled":false
        }
    I have the various environment variables referenced in that snippet in a .env file in the same app root. But when I do
    server start
    , none of those .env variables appear to get populated. I have the commandbox-dotenv package installed... am I missing something?
    g
    b
    • 3
    • 27
  • d

    dougcain

    01/16/2023, 9:51 AM
    @bdw429s I was just looking at passkeys and wondering if you had any thoughts on them / how they may work with cbsecurity
    p
    b
    l
    • 4
    • 5
1...202122...30Latest