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

    salted

    02/08/2022, 11:07 AM
    Update for the above: I updated commandbox to the latest and moved the commandbox home to c:\commandbox as it was previously in the user account folder - still getting the same error
    b
    • 2
    • 2
  • a

    aaronstoddard

    02/08/2022, 3:34 PM
    I am finally diving into the world of ColdBox modules and I'm really digging it. What I can't figure out is how to have Wirebox inject my parent applications model objects into my modules handlers. Is there a config setting for the module to be able to map the parent models folder in addition to my modules models folder?
    🙌🏾 1
    s
    c
    • 3
    • 13
  • s

    Simone

    02/08/2022, 9:23 PM
    is this wrong route(             pattern="/data/:id",             target="Api.getdata"         ).Withverbs("GET");
    b
    j
    • 3
    • 5
  • b

    bhartsfield

    02/08/2022, 9:31 PM
    Anyone know the magic trick to get cfformat to indent the contents between cfscript tags?
    b
    • 2
    • 2
  • a

    adam.euans

    02/09/2022, 4:40 PM
    Does anyone know if the CommandBox module cfconfig can export/import Solr Server and Collection settings? In testing, it doesn't appear that they are included in the export.
    d
    b
    • 3
    • 7
  • b

    bdw429s

    02/09/2022, 5:34 PM
    Everyone wave hi to the Ortus El Salvador dev team! https://twitter.com/bdw429s/status/1491460312536551429
    👋 9
    👋🏾 1
    🍪 1
    👋🏻 2
    👋🏼 3
    👍 2
    🍩 1
    n
    a
    +3
    • 6
    • 8
  • l

    laslo7

    02/10/2022, 5:19 PM
    I am playing with CommandBox rules and have a question about the regex directive
    d
    b
    • 3
    • 26
  • w

    websolete

    02/10/2022, 8:33 PM
    trying to add an actual SSL cert to server.json. starting with a wildcard .pfx, one of my colleagues extracted the .crt and .key files using openssl. i've added these to server.json like so:
    Copy code
    "web":{
            "host":"${HOST}",
            "webroot":"www",
            "SSL":{
                "enable":"true",
                "port":"8443",
                "certFile":"./certs/domainname.org.crt",
                "keyFile":"./certs/domainname.org.key"
            },
            "rewrites":{
                "enable":"true"
            }
        },
    but getting an exception on server start (more in thread)
    l
    • 2
    • 10
  • s

    Simone

    02/11/2022, 8:07 PM
    i have an api call and want to keep it simple very simple
    Copy code
    function users(event, rc, prc) {
            local.qusers = usersService.load(rc.userid);
            var st= = {};
            var c = queryToArray(local.qusers);
            st['statusCode'] = 200;
            st['results'] = c;
            return st;
        }
    i want to add validation and if validation is wrong return the status code along with error and if its
    true
    , just return my
    st
    j
    • 2
    • 1
  • e

    elpete

    02/11/2022, 8:56 PM
    What is an outer apply? 🙃
    d
    • 2
    • 3
  • s

    Simone

    02/11/2022, 9:21 PM
    what is this lucee error on command box *Lucee 5.3.7.47 Error (template)Message*lucee.transformer.library.tag.TagLibException*Stacktrace*The Error Occurred in D\E Drive\commandbox\config\Coldbox.cfc line 1
    1: component {
    2:
    3: /**
    called from D\E Drive\commandbox\coldbox\system\web\config\ApplicationLoader.cfc line 77 called from D\E Drive\commandbox\coldbox\system\web\services\LoaderService.cfc line 33 called from D\E Drive\commandbox\coldbox\system\Bootstrap.cfc line 98 called from D\E Drive\commandbox\coldbox\system\Bootstrap.cfc line 154 called from D\E Drive\commandbox\coldbox\system\Bootstrap.cfc line 502 called from D\E Drive\commandbox\Application.cfc line 60
    b
    • 2
    • 1
  • m

    Markus Wollny

    02/14/2022, 4:23 PM
    Hello, I'm hoping to find someone here to help with using Commandbox/DocBox on static methods/properties?
    b
    • 2
    • 1
  • d

    deactivateduser

    02/15/2022, 4:10 PM
    Is there a minimum interface a factory must implement for wire box to work with it?
    w
    • 2
    • 7
  • r

    ryan

    02/16/2022, 3:57 PM
    I am receiving the following error when spinning up Lucee 5.3.8.201 with ColdBox using CommandBox and not sure how to resolve this sort of issue. Has anyone here experienced this and know what the issue is before I start half-life testing?
    Copy code
    Lucee 5.3.8.201 Error (java.lang.NullPointerException)
    Message	java.lang.NullPointerException
    Java Stacktrace	lucee.runtime.exp.NativeException: java.lang.NullPointerException
      at lucee.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:3145)
      at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:120)
      at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44)
      at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2460)
      at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2450)
      at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2421)
      at lucee.runtime.engine.Request.exe(Request.java:45)
      at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1179)
      at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1125)
      at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
      at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
      at org.cfmlprojects.regexpathinfofilter.RegexPathInfoFilter.doFilter(RegexPathInfoFilter.java:47)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:405)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at runwar.Server$1.handleRequest(Server.java:510)
      at io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:280)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:79)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:134)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:131)
      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:260)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:79)
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:100)
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:852)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
      at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280)
      at java.base/java.lang.Thread.run(Unknown Source)
     Caused by: java.lang.NullPointerException
      ... 57 more
    b
    r
    p
    • 4
    • 31
  • r

    Robert Zehnder

    02/16/2022, 10:56 PM
    I have been trying to get in the habit of using the cfformat plugin on personal projects. I was wondering if there was preferred method of running cfformat on save in VSC. It shouldn’t be rocket surgery, I just didn’t want to reinvent the wheel if there was already something out there.
    b
    m
    b
    • 4
    • 27
  • t

    thisOldDave

    02/17/2022, 3:37 PM
    can I use dotenv in a task runner? i have a bash script calling the task.cfc in a subdirectory, that subdirectory has a .env file which I would like to read, I can load it in bash before I call the task but I would prefer that it remained contained
    s
    b
    • 3
    • 11
  • b

    bdw429s

    02/18/2022, 11:26 PM
    https://twitter.com/bdw429s/status/1494471314182180867
    p
    d
    j
    • 4
    • 9
  • r

    ryaneberly

    02/21/2022, 1:45 PM
    This question is a bit 2nd hand on behalf of @Andrew , but does CommandBox reach out to github every time on startup? We're experiencing some wierd github connectivity issues in our server environment which is interfering with box. We're tried building the full image off network and putting it on the server, and it still seems to be reaching out for github on startup
    b
    • 2
    • 5
  • d

    danlance

    02/21/2022, 2:48 PM
    Hi, I’m running into unexpected issue with specifying the version of Lucee to run through commandbox within a docker container. Namely, the version of Lucee which is loading is default
    5.3.8+206
    rather than specified
    5.3.7+47
    Pertinent parts of the dockerfile as follows:
    Copy code
    FROM ortussolutions/commandbox:3.4.4
    
    ARG BOX_SERVER_APP_CFENGINE lucee@5.3.7+47
    
    RUN ${BUILD_DIR}/util/warmup-server.sh
    But when I load the container, I get the following within STD-OUT
    Copy code
    lucee_1       | Set verboseErrors = true
    lucee_1       | INFO: Server Home Directory set to: /usr/local/lib/serverHome
    lucee_1       | + [[ -n '' ]]
    lucee_1       | + [[ -n '' ]]
    lucee_1       | INFO: Generating server startup script
    lucee_1       |  √ | Starting Server
    lucee_1       |    |------------------------------
    lucee_1       |    | start server in - /var/www/
    lucee_1       |    | server name - www
    lucee_1       |    | server config file - /var/www//server.json
    lucee_1       |    | WAR/zip archive already installed.
    lucee_1       |    | Start script for shell [bash] generated at: /var/www/server-start.sh
    lucee_1       |    | Server start command: 
    lucee_1       |    |     /opt/java/openjdk/bin/java 
    lucee_1       |    |     -XX:+UseContainerSupport 
    lucee_1       |    |     -XX:MaxRAMPercentage=90.0 
    lucee_1       |    |     -jar /usr/local/lib/CommandBox/lib/runwar-4.5.2.jar 
    lucee_1       |    |     --background=false 
    lucee_1       |    |     --host 0.0.0.0 
    lucee_1       |    |     --stop-port 35473 
    lucee_1       |    |     --processname www [lucee 5.3.8+206] 
    lucee_1       |    |     --log-dir /usr/local/lib/serverHome//logs 
    lucee_1       |    |     --server-name www 
    lucee_1       |    |     --tray-enable false 
    lucee_1       |    |     --dock-enable true 
    lucee_1       |    |     --directoryindex false 
    lucee_1       |    |     --timeout 240 
    lucee_1       |    |     --proxy-peeraddress true 
    lucee_1       |    |     --cookie-secure false 
    lucee_1       |    |     --cookie-httponly false 
    lucee_1       |    |     --pid-file /usr/local/lib/serverHome//.pid.txt 
    lucee_1       |    |     --gzip-enable true 
    lucee_1       |    |     --logaccess-enable true 
    lucee_1       |    |     --logaccess-basename access 
    lucee_1       |    |     --logaccess-dir /usr/local/lib/serverHome//logs 
    lucee_1       |    |     --cfengine-name lucee 
    lucee_1       |    |     -war /var/www/ 
    lucee_1       |    |     --web-xml-path /usr/local/lib/serverHome//WEB-INF/web.xml 
    lucee_1       |    |     --http-enable true 
    lucee_1       |    |     --ssl-enable false 
    lucee_1       |    |     --ajp-enable false 
    lucee_1       |    |     --http2-enable true 
    lucee_1       |    |     --open-browser false 
    lucee_1       |    |     --open-url <http://0.0.0.0:8888> 
    lucee_1       |    |     --port 8888 
    lucee_1       |    |     --urlrewrite-enable false 
    lucee_1       |    |     --predicate-file /usr/local/lib/serverHome//.predicateFile.txt
    lucee_1       |    | Dry run specified, exiting without starting server.
    lucee_1       |    |------------------------------
    lucee_1       |    | √ | Setting Server Profile to [production]
    lucee_1       |    |   |-----------------------------------------------------
    lucee_1       |    |   | Profile set from secure by default
    lucee_1       |    |   | Block CF Admin external
    lucee_1       |    |   | Block Sensitive Paths enabled
    lucee_1       |    |   | Block Flash Remoting enabled
    lucee_1       |    |   | Directory Browsing disabled
    lucee_1       |    |   |-----------------------------------------------------
    lucee_1       |    | √ | Loading CFConfig into server
    lucee_1       |    |   |-------------------------------------------
    lucee_1       |    |   | Setting OS environment variable [cfconfig_adminPassword] into luceeser
    lucee_1       |    |   | ver
    lucee_1       |    |   | [adminPassword] set.
    lucee_1       |    |   |-------------------------------------------
    lucee_1       | INFO: Starting server using generated script: /usr/local/bin/startup.sh
    Specifically the following:
    --processname www [lucee 5.3.8+206]
    Can anyone advise what’s going on here - shouldn’t
    ARG BOX_SERVER_APP_CFENGINE lucee@5.3.7+47
    within the dockerfile cause Lucee 5.3.7.47 to be used rather than 5.3.8.206 (which is the latest release version of lucee)?
    b
    • 2
    • 18
  • d

    danmurphy

    02/24/2022, 12:11 AM
    Anyone having issues with ColdBox v6.6.1 (released 2/17). Our login process, which uses cbsecurity, breaks on this new version. All fine on 6.6.0. Here is the error. The first file it references in the stack trace is location.cfm, which doesn’t exist in our project or within the Coldbox folders, as far as I can tell. Thoughts?
    b
    s
    e
    • 4
    • 35
  • d

    danlance

    02/24/2022, 11:18 AM
    Hi… Are there any plans to update the version of java 11 used within the ortussolutions/commandbox image? Within the 3.4.4 tag, java version is set:
    ENV JAVA_VERSION=jdk-11.0.11+9
    Latest version of java 11 is
    jdk-11.0.14.1+1
    When we test our builds using HackMyCF, we are getting Important Warning regarding Java 11 Security Update Available. We can of course manually override the version of Java used within our dockerfiles - but before I do, can I ask if there is a good reason for not creating a new tag with the latest version of Java 11?
    b
    j
    • 3
    • 3
  • r

    Ryan Albrecht

    02/24/2022, 9:49 PM
    With quick subclass and discriminated entities the docs state
    Once this is defined, any new BookMedia entity will be saved with a type value of book in the media table. As such, the following query will result in only entities of BookMedia being returned:
    however this does not seem to be the case. It seems you have to explicitly set the discriminator property before saving. Is this the expected behavior? Reading the docs it seems like this should be done implicitly for you.
    e
    • 2
    • 5
  • d

    deactivateduser

    02/25/2022, 4:40 PM
    use case?
    d
    e
    +3
    • 6
    • 22
  • t

    thisOldDave

    02/25/2022, 5:25 PM
    is there a print helper for structures/maps? or should i just write a loop and turn it into an array of arrays
    b
    • 2
    • 4
  • b

    bockensm

    02/28/2022, 5:02 PM
    Is it possible to have a CommandBox server with a name derived not from the current folder but from a parent? Let's say I have this folder structure and server.json lives inside the "app" folder, I'd always wind up with servers called "app" and it's not clear which I'm starting and where it lives:
    Copy code
    websites
      <http://website1.com|website1.com>
        app
      <http://website2.com|website2.com>
        app
    t
    b
    • 3
    • 10
  • f

    fman

    02/28/2022, 6:06 PM
    Hi, I've installed ACF2018 with hotfix 12 and now I need to remove it and apply hotfix 10. I've found the cfhxxx file inside cfusion\lib\updates. I've removed the cfh corresponding to hf12 and copied the cfh for the hf10 but after stopping and restariting the server when accessing coldfusion administrator it said still is a CF with hotfix 12. I've searched for docum to do this change but no luck. Any hint? some config file that I've not changed? Thanks a lot
    b
    • 2
    • 9
  • s

    Slackbot

    03/01/2022, 9:33 PM
    This message was deleted.
    b
    r
    • 3
    • 7
  • p

    Patrick Roy

    03/02/2022, 3:19 PM
    Hi! Wondering if someone could help clarifying how do we install extensions in CommandBox that are accessible for any users from the CLI / when running a task-runner ? Essentially, I need to install https://forgebox.io/view/037A27FF-0B80-4CBA-B954BEBD790B460E which would allow me to use the <cfspreadsheet> from a taskrunner script, and I'd like the extension to be installed for all users running the task. I've already tried with
    install 037A....
    but it'll only install if for the webserver if I
    start server
    .... Any help / clarifications would be great! Thanks 🙂
    b
    • 2
    • 3
  • b

    bdw429s

    03/02/2022, 6:36 PM
    https://twitter.com/bdw429s/status/1499090513739370498
    👍 1
    👍🏾 1
    d
    r
    • 3
    • 16
  • d

    davidrschaller

    03/03/2022, 12:22 PM
    Here is a non-technical question regarding CFCasts subscription and pricing. Does the annual subscription include all available video series? Some series are marked specifically as $250. Is this additional pricing for specific series on top of the annual subscription?
    m
    e
    • 3
    • 3
12345...30Latest