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

    Bryan Henderson

    04/14/2023, 3:07 PM
    we are using CommandBox in a container (ortussolutions/commandbox:adobe2021-3.7.3) and wanted to see if we could get SeeFusion running in the container as well. Google hasn't been much help and I was unable to find tomcat configuration files in the container... is this possible?
    b
    • 2
    • 4
  • r

    Ryan Albrecht

    04/14/2023, 6:17 PM
    is there a commandbox command to remove unused packages? (unused meaning not found in box.json)
    g
    b
    • 3
    • 13
  • l

    Lisa

    04/17/2023, 6:26 PM
    Is there a command-line option for debugging paths when running box? We're having module loading issues in CI (github actions) using the Ortus box install which we do not have running locally.
    Copy code
    X Error: Requested instance not found: '@cbsecurity' The instance could not be located in any declared scan location(s) (models) or full path location or parent or children 
            -> /app/coldbox/system/ioc/Injector.cfc:482
            -> /app/tests/specs/Services/UserServiceTest.cfc:463
            -> /app/tests/runner-ci.cfm:25
    b
    • 2
    • 28
  • g

    gpickin

    04/18/2023, 3:45 PM
    Join @bdw429s and @gpickin for this weeks CFML News Podcast at 10am PDT / 12 CDT - We love having the hecklers in the chat - come join in https://youtube.com/live/Wq-mb05vAnM?feature=share
    a
    • 2
    • 1
  • g

    gpickin

    04/18/2023, 5:00 PM
    Going live now!!!! Join @bdw429s and @gpickin ( gpickin ) for this weeks CFML News Podcast at 10am PDT / 12 CDT - We love having the hecklers in the chat - come join in https://youtube.com/live/Wq-mb05vAnM?feature=share
  • l

    lmajano

    04/19/2023, 8:07 AM
    Into The Box 10th edition is just 1 month Away! I am excited to fellowship alongside folks at our 10th anniversary; get ready to Code and sing with our Mariachis!!! 🚀🤘 In case you haven't registered already, you can get a 15% off your Only conference or All Access tickets by signing in with the following link: https://bit.ly/3ojBj6t Hope to see you there!
  • d

    dougcain

    04/19/2023, 4:16 PM
    @bdw429s does cfconfig support any of the Adobe CF Admin mail settings like “*Maintain connection to mail server” and “Connection Timeout(in seconds)” in the mailserver entry - can’t find anything n the docs?*
    b
    p
    • 3
    • 34
  • p

    Peter Hoopes

    04/19/2023, 4:46 PM
    I’m trying to follow this Legacy->Coldbox migration video from @bdw429s from 2020. I have a massive legacy app and getting CB in place will allow me to move to it. However, I’m confused a bit about code that’s already in my Application.cfc. If I have onApplicationStart code there already, do I need to move that to somewhere else (where?), since my Application.cfc is now extending the ColdBox Bootstrap CFC? I previously had an reinit URL setup, but now that I have ColdBox in place I assume I would be using
    fwreinit
    which is fine, but then I’m not sure where my existing code would need to be order to get reexecuted with the restart. (Brad - the demo video is aimed at CB5. Wondering if it’s different with CB6 as well). Any pointers would be greatly appreciated.
    b
    • 2
    • 7
  • c

    Charles Robertson

    04/20/2023, 10:48 AM
    Hi Guys We are looking to add 600 datasources from ACF's:
    Copy code
    neo-datasources.xml
    Into a format that we can import into Lucee Both application servers are standalone servers, but we are allowed to install commandbox on the boxes I have created a small app that uses Lucee's brilliant import method:
    Copy code
    variables.config = ConfigImport(
        data=variables.data,
        type='server',
        password=variables.adminpassword
    );
    So, the idea would be to deserialise data, from a file [I guess JSON would be easiest], into a struct that could then be handled by
    ConfigImport()
    I have had a look at: https://www.forgebox.io/view/commandbox-cfconfig But I wasn't sure whether it could convert an XML file into JSON, or whether I would have to write the routine to do this from scratch? I cannot have both the ACF and Lucee servers, running on the same box. Only the Lucee standalone server is running. So, I am going to have to work at settings file level.
    p
    r
    +3
    • 6
    • 19
  • z

    zackster

    04/20/2023, 3:23 PM
    i did google first, how do a specify java arch in server.json, damn you new macbook
    p
    j
    b
    • 4
    • 10
  • g

    gsr

    04/21/2023, 2:53 AM
    with amazon s3 sdk, i tried creating a bucket but the bucket is getting created with this access: Bucket and objects not public here is my code for crreating it
    Copy code
    any function CreateBucket(required ID="", required location="USA",secureSection="0") {
    		var messages = [];
    		var bucket_Name = arguments.secureSection eq 1 ? 's3-'&lcase(arguments.clientID)&'-secure' : 's3-'&lcase(arguments.clientID)&'-files';
    		var checkBucket = hasBucket(bucket_Name);
    		var loc = getLocations(arguments.location);
    		if (!checkBucket ) {
    			createBucket = putBucket(bucketName=bucket_Name,location=loc);
    			if (createBucket ) {
    				arrayAppend(messages, 'Bucket Created Successsfully');
    			}
    		}
    		setAWSRegion(loc);
    		return messages;
    	}
    j
    b
    b
    • 4
    • 9
  • s

    salted

    04/25/2023, 9:09 AM
    can someone let me know when/why .mdmp files would be created by commandbox? I’m assuming it’s from when it crashes it dumps the memory. If there’s some settings to manage that like size/frequency/rotation that would be handy too
    b
    • 2
    • 11
  • c

    Charles Robertson

    04/25/2023, 11:57 AM
    Hi Guys https://github.com/Ortus-Solutions/cfconfig/blob/master/tests/resources/.CFConfig.json I am trying to work out what the debugging settings resolve to? For instance when I do this:
    Copy code
    "debuggingEnabled": "true",
    "debuggingDBEnabled ": "true",
    "debuggingExceptionsEnabled": "true",
    "debuggingQueryUsageEnabled": "true",
    "debuggingTracingEnabled": "true",
    "debuggingDumpEnabled": "true",
    "debuggingTimerEnabled": "true",
    "debuggingTemplate": "classic.cfm",
    "debuggingImplicitVariableAccessEnabled": "true",
    "debuggingMaxLoggedRequests": "true",
    This is the result [see screenshot] I would have expected every checkbox, in this section, to be checked? But then again, I don't really know whether these are the correct cfconfig keys, to use?
    b
    • 2
    • 14
  • r

    redtopia

    04/25/2023, 2:26 PM
    @bdw429s, I don't usually do this, but I ran commandbox in my vscode bash terminal that I typically only use for git. It looks like this:
    b
    • 2
    • 10
  • c

    Charles Robertson

    04/25/2023, 3:06 PM
    image.png
  • g

    gpickin

    04/25/2023, 5:00 PM
    Going live now for the CFML News Podcast - join us https://youtube.com/live/JGnYhZM7kk0?feature=share #cfml #coldfusion #podcast #news
  • p

    Peter Hoopes

    04/25/2023, 6:14 PM
    Is it possible to use a different reference CFM file for using Coldbox? For my existing site, I have a base
    index.cfm
    file already in place. While I’m trying to write my
    onRequestStart
    method to figure out whether or not CB should process the request, I’m running into some very weird redirection issues. I was wondering if by hitting
    https://<site>/coldbox.cfm?event=…
    that I could filter that way…
    r
    b
    • 3
    • 13
  • h

    hemi345

    04/26/2023, 3:05 PM
    I was testing out the PDF capability and am running into an issue. The following code:
    Copy code
    function printable( event , rc, prc ) {
    		event.renderData(data="<b>this is a test</b>", type="PDF");
    	}
    produces an error:
    Attribute validation error for tag cfcontent.
    1st line in stack trace is:
    coldbox\system\core\conversion\DataMarshaller.cfc:147
    If I remove the type="PDF" attribute, the page loads fine. Tried this from the example at: https://coldbox.ortusbooks.com/the-basics/event-handlers/rendering-data
    j
    b
    • 3
    • 5
  • j

    Jason Ryan

    04/26/2023, 5:42 PM
    Anybody else experience major slowdowns when switching to ColdBox? I sunk a lot of time converting most of my site the past few weeks but my server requests are taking at minimum 10x longer to resolve than before. I went ahead and got a FusionReactor license to do some profiling and can definitely see that a lot more is going on with ColdBox than vanilla CFML. See comments for some profiling screenshots. Both running on the latest Lucee Docker container
    s
    a
    • 3
    • 28
  • o

    Ookma-Kyi

    04/27/2023, 2:07 AM
    Um:
    Copy code
    Configuring CommandBox home: C:\Users\ookma\.CommandBox (change with -CommandBox_home=/path/to/dir)
    Library path: C:\Users\ookma\.CommandBox\lib
    Initializing libraries -- this will only happen once, and takes a few seconds...
    ...
    Libraries initialized
     √ | Installing ALL dependencies
       | √ | Installing package [forgebox:coldbox@^6.0.0]
       | √ | Installing package [forgebox:quick@^4.0.0]
       | √ | Installing package [forgebox:cbsecurity@^2.0.0]
       | √ | Installing package [forgebox:BCrypt@^3.0.0]
       | √ | Installing package [forgebox:cbvalidation@^3.0.0]
       | √ | Installing package [forgebox:redirectBack@^1.2.2]
       | √ | Installing package [forgebox:testbox@^4.0.0]
       | √ | Installing package [forgebox:commandbox-dotenv@*]
       |   | √ | Installing package [forgebox:propertyFile@^1.1.0]
       | √ | Installing package [forgebox:commandbox-migrations@*]
       |   | √ | Installing package [forgebox:cfmigrations@^3.0.6]
       |   |   | √ | Installing package [forgebox:qb@^8.0.0]
       |   |   |   | √ | Installing package [forgebox:cbpaginator@^2.4.0]
       |   | √ | Installing package [forgebox:sqlformatter@^1.1.3+31]
       |   |   | √ | Installing package [forgebox:cbjavaloader@^2.1.0+5]
       | √ | Installing package [forgebox:commandbox-cfconfig@*]
       |   | √ | Installing package [forgebox:cfconfig-services@be]
       |   |   | √ | Installing package [forgebox:lucee-password-util@^1.0.0]
       |   |   | √ | Installing package [forgebox:adobe-password-util@^1.0.0]
       |   |   |   | √ | Installing package [forgebox:propertyFile@^1.0.0]
       |   |   | √ | Installing package [forgebox:propertyFile@^1.0.7]
       |   |   | √ | Installing package [forgebox:semver@^1.0.0]
       |   |   | √ | Installing package [forgebox:JSONPrettyPrint@^1.2.6]
       | √ | Installing package [forgebox:commandbox-cfformat@*]
       |   | √ | cftokens executable not found.  Please wait for a moment while it is downloaded.
       | √ | Installing package [forgebox:cfmigrations@^2.0.0]
    PS D:\ookma-kyi-core> box start
     √ | Starting Server
       | √ | Setting Server Profile to [development]
       | √ | Loading CFConfig into server
    
    [INFO ] Runwar: ******************************************************************************
    [INFO ] Runwar: Starting RunWAR 4.7.7
    [INFO ] Runwar: Binding HTTP on 127.0.0.1:8080
    [INFO ] Runwar: Enabling HTTP/2
    [INFO ] Runwar: Starting background ookma-kyi-core [lucee 5.3.10+120] from: /C:/Users/ookma/.CommandBox/lib/runwar-4.7.7.jar
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by runwar.LaunchUtil (file:/C:/Users/ookma/.CommandBox/lib/runwar-4.7.7.jar) to method java.lang.ProcessImpl.pid()
    WARNING: Please consider reporting this to the maintainers of runwar.LaunchUtil
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    [INFO ] Starting in background -
    I don't understand what this means?
    a
    b
    • 3
    • 20
  • r

    Ryan Albrecht

    04/27/2023, 1:53 PM
    I have been having this persistent issue over the last couple days where our application starts 'hanging' and a bunch of requests start timing out. I am still trying to figure out the root cause but I have noticed something strange with coldbox. On this server there are multiple coldfusion applications running and one of them is an API built using coldbox. I am using logbox to log some data to a file and it seems there is this thread that relates to logbox and gets stuck forever. I have included a screenshot from fusion reactor. Hopefully some can point me in the right direction.
    d
    s
    • 3
    • 5
  • j

    John Liljegren

    04/27/2023, 2:27 PM
    Is there a good reference/sample app that implements cbsecurity and cbauth?
    s
    • 2
    • 1
  • m

    mithlond

    04/27/2023, 6:42 PM
    For some reason I'm getting a java stackoverflow error when I try to call
    runEvent(event="blah", private="true", prePostExempt="true")
    from within my
    preHandler
    . Is this a no-no?
    j
    • 2
    • 8
  • j

    joechastain

    04/27/2023, 6:45 PM
    We just realized any records older than 30 days in our log tables created by a logbox dbappender were getting wiped. After looking at the
    DBAppender.cfc
    , it turns out that the
    rotate
    property is defaulted to
    true
    and the
    rotationDays
    property is defaulted to
    30
    for dbappenders. We weren't aware that these properties even existed since they aren't listed along with the other properties like
    table
    ,
    dsn
    , etc. in the docs for the DBAppender. We added
    rotate = false
    to our appender properties and the problem is fixed. Easy enough. But wanted to mention it to see if the docs should be updated to prevent anyone else from running into this unexpectedly.
    r
    l
    • 3
    • 7
  • o

    Ookma-Kyi

    04/27/2023, 7:49 PM
    I am getting the error:
    Copy code
    ERROR (5.5.2+00578)
    
    Could not create connection to database server.
    
    C:\Users\ookma\.CommandBox\cfml\modules\commandbox-migrations\modules\cfmigrations\models\QBMigrationManager.cfc
    while trying to run the command
    box migrate up
    in the terminal. I have verified my database setting in the Lucee admin. I can also verify that the app itself seems to be able to access the database as seen in the attached screenshot. I also tried disabling SSL and it still doesn't work.I am getting the error:
    Copy code
    ERROR (5.5.2+00578)
    
    Could not create connection to database server.
    
    C:\Users\ookma\.CommandBox\cfml\modules\commandbox-migrations\modules\cfmigrations\models\QBMigrationManager.cfc
    while trying to run the command
    box migrate up
    in the terminal. I have verified my database setting in the Lucee admin. I can also verify that the app itself seems to be able to access the database as seen in the attached screenshot. I also tried disabling SSL and it still doesn't work.
    j
    e
    • 3
    • 18
  • p

    Peter Hoopes

    04/28/2023, 6:35 PM
    Sorry if I missed something - has Commandbox been updated to version 5.9.0? I thought 5.8 was the latest, but when running
    apt update
    on my Linux server box (using CB for hosting our app), it's showing
    commandbox/unknown 5.9.0-1 all [upgradable from: 5.8.0-1]
    as one of the available updates. Wondering if I missed a release. @bdw429s
    r
    b
    • 3
    • 8
  • p

    Peter Hoopes

    05/01/2023, 1:23 AM
    Howdy - as I’m a regular viewer of CFCasts, I went to watch this one, and I think it’s connected to the wrong Vimeo video link, as it’s just a 57-second promo video… I was all excited to watch @bdw429s talk about LogBox and CacheBox!
    b
    • 2
    • 1
  • b

    bdw429s

    05/01/2023, 8:36 PM
    https://twitter.com/bdw429s/status/1653134927888523291
    🎉 9
  • l

    lmajano

    05/02/2023, 8:46 AM
    https://www.ortussolutions.com/blog/coldbox-682-released New ColdBox Release!
    🎉 2
  • l

    lmajano

    05/02/2023, 2:11 PM
    ColdBox 7 is coming: https://coldbox.ortusbooks.com/v/7.x/intro/release-history/whats-new-with-7.0.0
    🎂 2
    🙌 2
    🎊 8
    j
    • 2
    • 1
1...2627282930Latest