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

    bockensm

    05/20/2022, 11:43 PM
    Think I may have uncovered a bug in CommandBox 5.5.x. I've been jumping back & forth between 5.4.x and 5.5.x to check this, but it all works as expected in 5.4.x.
    b
    • 2
    • 6
  • s

    satauros

    05/23/2022, 7:00 AM
    @elpete we're using qb quite extensively, but we're seeing a lot of
    Caused by: java.util.EmptyStackException
    that occur. Any idea why?
    s
    e
    • 3
    • 7
  • s

    sknowlton

    05/23/2022, 7:48 PM
    For about 4 years now we've had a Docker production swarm with a (non-Docker) NGINX in front. We cannablized some Ortus NGINX configs that would relay the 'actual' IP address in use to Lucee and this always 'just worked.' With one of the recent Commandbox updates (or else one of the more recent Lucee updates), around May 12,
    cgi.remote_addr
    is now the local network address of NGINX. for everybody
    l
    b
    +2
    • 5
    • 30
  • b

    bhartsfield

    05/23/2022, 9:03 PM
    Enabling access logs in server.json is easy enough but can the location be defined by server.json as well? I'm not seeing anything for it.
    b
    • 2
    • 34
  • l

    Leon Miller-Out

    05/24/2022, 7:11 PM
    We just published a network-enabled wrapper for CommandBox: https://www.npmjs.com/package/commandbox_remote Yeah, it's written in JS and runs in Node, so that's a little bit odd, but it was the easiest way to get the job done. We use this to programmatically run box commands (i.e. cfformat) without having to incur the box/java startup penalty.
    👍 2
    👍🏾 1
  • w

    wil-shiftinsert

    05/25/2022, 3:29 PM
    cbauth question: what’s the difference in the postAuthenticate and postLogin interceptors: postAuthenticate because of user/pass and followed by postLogin because you can retrieve the user based on credentials, followed by a login(user) call? Just wondering which of these two I should use to update my lastLogin Time for the user. I guess it makes sense to use postLogin, so we also register password-less logins (e.g in testing) but not sure how often postLogin will be called. Postauthenticate will only be called if my user provides the correct username/password.
    g
    • 2
    • 3
  • c

    Cavan Vannice

    05/26/2022, 6:20 PM
    I'm upgrading to the latest Coldbox 6 and I am having an issue injecting my models see below
    Copy code
    property name="salesCFC" inject="sales";
    property name="salesReport" inject="reports.sales";
    This worked in v5 but moving into v6 I get this error.
    Copy code
    The target 'handlers.sales' requested a missing dependency with a Name of 'salesReport' and DSL of 'reports@sales'
    It seems to be injecting reports.sales (which "reports" is simply a subfolder of models) into salesCFC and thats not what is supposed to happen. I haven't done anything with wirebox yet, but I assume there was something I was supposed to do there.
    b
    • 2
    • 21
  • c

    Cavan Vannice

    05/26/2022, 6:24 PM
    I see this error too
  • c

    Cavan Vannice

    05/26/2022, 6:25 PM
    Copy code
    Neither the method getDocumentCustomer was found in component models.reports.sales nor was there any default method with this name present in any of the implementing interface.
    b
    • 2
    • 54
  • b

    bdeline2

    05/27/2022, 9:53 PM
    Question on modules and injection dsl. In my module I have a component that has a property that injects another component within the same module like so: property name="mycomponent" inject="myothercomponent@mymodule"; Is the '@mymodule' required? Or potentially a generic term for 'mymodule' that wirebox knows refers to the module I'm currently in?
    s
    • 2
    • 3
  • a

    Adam Cameron

    05/28/2022, 11:07 PM
    I just had a bit of a
    box install
    fail, and was after some expectations management...
    b
    • 2
    • 3
  • a

    Adam Cameron

    05/28/2022, 11:38 PM
    Also poss a side-effect of
    box install
    not having an equiv of a
    composer.lock
    /
    package-lock.json
    file but
    box install
    changed the version constraint on testbox I had said to use (
    "^4.2.1+400"
    ) to... um... a version constraint based on the version it actually installed:
    "^4.5.0+5"
    . Now I get that version
    4.5.0+5
    matches the constraint I specified, but looks to me like
    box install
    doesn't quite understand the differences between constraints and versions. It should not be updating my constraint.
    d
    w
    b
    • 4
    • 51
  • d

    davidrschaller

    05/31/2022, 2:59 PM
    Questions about commandbox server aliases configuration. I have virtual directories configured in IIS which link to UNC paths on my dev/production servers. For local development, I use command box and I believe that the only way to set aliases in commandbox server config is to map a drive letter and point it to the network location for those directories. First question, is a mapped drive letter the only way to accomplish this mapping? That is, there is currently no way to specify UNC path as alias. Also, I have had a number of aliases drive letters configured to connect to network paths. Within the last few weeks, when attempting to start up servers, the process hangs. If I either disconnect from our VPN or physically disconnect the network cable, the server will finish the startup process. There could be the possibility of some network / firewall change, but no known updates have been made that coincide with this issue. Anything on the commandbox / software side that could be causing this issue? Thanks.
  • l

    Leon Miller-Out

    05/31/2022, 4:03 PM
    Hey, folks! Is there a way to specify a Lucee version when using the CommandBox Docker images? The changelog makes it look like the app server versions are fixed (e.g. entries like this:
    Bumped :lucee5 server version to 5.3.8+189
    If we can't specify a version, is there any ETA for getting Lucee 5.3.9 support?
    s
    • 2
    • 16
  • g

    gpickin

    05/31/2022, 4:36 PM
    Eric and Gavin hosting the 150th episode of the CFML News Podcast today at 10am PDT - Join us live -

    https://youtu.be/7LhEqGkkwrU▾

  • g

    gpickin

    05/31/2022, 5:00 PM
    Going live now - Eric and Gavin hosting the 150th episode of the CFML News Podcast

    https://youtu.be/7LhEqGkkwrU▾

    👍 2
  • j

    Jamison Johnson

    06/03/2022, 5:23 PM
    Is there a way in QB to do a CROSS APPLY? Not finding anything in the documentation...
    👍 1
  • e

    elpete

    06/03/2022, 6:16 PM
    Nope. That’s the first time I’ve ever seen that! It looks like that is SQL Server specific, so I probably wouldn’t be adding it. The cross-engine way to do that looks like using a subqueries.
  • d

    Daniel Mejia

    06/03/2022, 6:49 PM
    I know I've heard about a tutorial for using wirebox with legacy apps (non coldbox apps), but I can't find it in the docs, youtube, cfcasts nor at ortussolutions.com. I even tried here on slack, but maybe those conversations have been archived.
    b
    g
    • 3
    • 34
  • s

    sknowlton

    06/03/2022, 7:12 PM
    Since (some arbitrary Lucee update) a few weeks ago, we've started seeing this error in one of our API handlers whose only job is to fetch some instances of data and display them. I know where in our code the stack is referencing (even though it's not listed) but I don't know why the Coldbox call is failing. Anybody seen this reference to
    getObjectMetadata
    returning null?
    Copy code
    Error building: modules_app.api.modules_app.v1.handlers.game -> The function [getObjectMetadata] has an invalid return value , [Cannot cast null value to value of type [struct]]
    					the function is located at [/app/coldbox/system/cache/store/indexers/MetadataIndexer.cfc]. DSL: , Path: modules_app.api.modules_app.v1.handlers.game,
    					Error Location:
    					/app/coldbox/system/cache/store/indexers/MetadataIndexer.cfc:128
    /app/coldbox/system/cache/store/ConcurrentStore.cfc:122
    /app/coldbox/system/cache/providers/CacheBoxProvider.cfc:216
    /app/coldbox/system/cache/AbstractCacheBoxProvider.cfc:376
    /app/coldbox/system/FrameworkSupertype.cfc:704
    /app/coldbox/system/FrameworkSupertype.cfc:729
    /app/coldbox/system/EventHandler.cfc:63
    b
    • 2
    • 15
  • r

    ryan

    06/03/2022, 10:42 PM
    Quick question about the cfconfig. I wrote up local environment setup steps for a colleague with commandbox and the use of server.json and .cfconfig.json files. I mentioned to place the json files in the web root and then start the server from the web root. I mentioned in the steps after to install cfconfig and restart the server. My colleague mentioned that the lucee admin was not configured. I was assuming and thought that I had read that cfconfig will automatically look for .cfconfig.json when the server starts, is that correct?
    d
    d
    b
    • 4
    • 10
  • d

    danmurphy

    06/03/2022, 11:05 PM
    Heading into the weekend so I might need to re-ask on Monday, but getting an error in our build process with the latest version of CommandBox (5.5.2). Moving from 5.0.1, where this works fine. (picture of error in thread)…
    b
    • 2
    • 187
  • d

    Daniel Mejia

    06/04/2022, 12:47 AM
    in a commandbox ACF server how do I read environment vars loaded with .env?
    • 1
    • 2
  • g

    gpickin

    06/07/2022, 2:17 AM
    Anyone who has attended ITB in the past, what would you say in a testimonial for ITB. Let me know and we might mention you in a podcast episode for ITB!
  • g

    gpickin

    06/07/2022, 3:41 PM
    Gavin and Dan card hosting CFML News Podcast at 10am - Big announcement in the show - join us live in the chat on youtube

    https://youtu.be/CKnPCL8870Q▾

    d
    • 2
    • 2
  • p

    Patrick

    06/07/2022, 4:34 PM
    Could anyone assist with some recursive code to return a full list of children ContentIds that reside underneath a specific parent page in Contentbox? All children, grandkids etc... Just need a list so we can see the entire set of contentIDs for a section. Thanks
    s
    • 2
    • 2
  • g

    gpickin

    06/07/2022, 5:00 PM
    Going live now - Gavin and Dan card hosting CFML News Podcast - Big announcement in the show - join us live in the chat on youtube

    https://youtu.be/CKnPCL8870Q▾

    p
    • 2
    • 2
  • g

    gpickin

    06/07/2022, 7:14 PM

    https://www.youtube.com/watch?v=8GIZTTcC0R4&feature=youtu.be▾

    First Conference Edition podcast released for ITB 2022, more to come
  • m

    Mark Drew (he/him)

    06/07/2022, 8:33 PM
    Hi there, I need to load another cfconfig file (aside from server and web) on server startup. I am looking at the possibility of using the
    scripts:onServerStart
    But doing the following to debug and see exactly when they are triggered doesnt seem to do any output:
    Copy code
    "scripts":{
            "preServerStart":"echo '---------preServerStart'",
            "onServerStart":"echo '---------onServerStart'",
            "onServerInstall":"echo '---------onServerInstall'",
            "onServerStop":"echo '---------onServerStop'",
            "preServerForget":"echo '---------preServerForget'",
            "postServerForget":"echo '---------postServerForget'"
        }
    When I do
    server start --debug
    b
    c
    • 3
    • 67
  • b

    birdy1980

    06/08/2022, 8:36 AM
    Question: is this still a valid method to get commandbox as a service? https://www.ortussolutions.com/blog/screencast-starting-commandbox-servers-as-a-windows-service
    b
    b
    • 3
    • 22
1...678...30Latest