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

    dick

    03/03/2022, 1:47 PM
    I'm trying to install the Ortus module https://forgebox.io/view/s3explorer but I'm getting the following error...
    Copy code
    install id=s3explorer verbose=true
     | | Installing package [forgebox:s3explorer]
       | Installing version [3.0.1].
                                                                                                                                                                  × | Installing package [forgebox:s3explorer]
       | Verifying package 's3explorer' in forgebox, please wait...
       | Installing version [3.0.1].
       | Verified entry in forgebox: 's3explorer'
       | Deferring to [forgebox] endpoint for forgebox entry [s3explorer]...
    ERROR (5.4.2+00453)
    
    Invalid slug detected.  Slugs can only contain letters, numbers, underscores, and hyphens. They may also be prepended with an @ sign for private packages
    Where can I get some help?
    m
    b
    • 3
    • 5
  • s

    seandaniels

    03/03/2022, 3:14 PM
    I'm getting an error trying to install a Forgebox module as well, is Forgebox having an issue?
    403 <ForbiddenHTTPS://ortus-forgebox-private.s3.us-east-1.amazonaws.com/sdaniels/numverify/1.0.1+0001.zip>
    m
    b
    • 3
    • 97
  • w

    wil-shiftinsert

    03/04/2022, 3:21 PM
    routing question Let’s say I have this route
    Copy code
    route( "echo/:id", "echo.test" );
    and this echo test handler
    Copy code
    writedump(rc);
            abort;
    if I call http://myserver/echo/someValue
    id = someValue
    . That makes sense if I call http://myserver:/echo/%2Fsome%2Fpage
    id = some
    instead of
    id = %2Fsome%2Fpage
    or
    id = /some/page
    . I would expect the router would leave urlencoded values alone and put the exact value in the id url parameter. If I do
    someaction?id=%2Fsome%2Fpage
    the value will exactly be
    id = /some/page
    which is correct. So what is the coldbox router doing here. Parsing the url, and decoding BEFORE it is matching a route? That way you can never enter special characters in a path parameter.
    • 1
    • 1
  • m

    mburt

    03/04/2022, 6:59 PM
    Speaking of encoding/decoding, is there a trick when using relocate to prevent a query string from being encoded (or decoded, at this point words no longer have meaning to me 🥴 ) After logging a user in, I’m trying to relocate them back to the exact spot they left off, something like
    heroes?ids=1,2,3
    but no matter what I try I end up at
    heroes?ids=1%252C2%252C3
    b
    m
    • 3
    • 21
  • a

    aaronstoddard

    03/08/2022, 5:52 PM
    Are request header values automatically put somewhere in ColdBox apps where I can access them in the handlers?
    s
    b
    • 3
    • 16
  • d

    dick

    03/09/2022, 10:54 AM
    Is there a way to use
    cbmailservices
    as a
    LogBox
    email appender?
    w
    • 2
    • 8
  • s

    Sam Scott

    03/09/2022, 6:59 PM
    Hi All, I'm trying to wrap my head around the rest-hmvc app... running through the docs here: https://coldbox.ortusbooks.com/digging-deeper/recipes/building-rest-apis I can't seem to get the URL routes working. I have the following route defined in /config/Router.cfc and can see it in /route-visualizer
    Copy code
    // User Resource
            route( "/api/v1/user/:userID" )
                .withAction( {
                    GET    = 'view',
                    POST   = 'save',
                    PUT    = 'save',
                    DELETE = 'remove'
                } )
                .toHandler( "api.v1.user" );
    For example, a PUT to the conventional URL works:
    /api/v1/user/save/userid/55
    But, a PUT to
    /api/v1/user/55
    throws an error with message "Action '55' could not be found". Which means coldbox skipped right over the route definition, right?
    s
    c
    • 3
    • 31
  • r

    Ryan Albrecht

    03/09/2022, 10:36 PM
    CFMigrations question. I have a need to dynamically set a datasource when running migrations. I came up with the below solution and I am curios to see if anyone has any comments.
    Copy code
    var migrationService = getInstance( "migrationService:core" );		
    migrationService.getManager().setDatasource('someOtherDatasource');
    migrationService.runAllMigrations('up');
    w
    • 2
    • 2
  • n

    Nicole Liliana

    03/10/2022, 11:58 AM
    Hy everybody CacheBox question, i need to put one view in cache, the CacheBox create an object in the region, when users see the view, they “use” the same object or there are many objects with the same view? PS. Sorry for the english, i’m not very good at writing
    b
    • 2
    • 49
  • l

    laslo7

    03/11/2022, 5:29 PM
    Quick Question The following is in in a cfc of a older site of our. property name='dsn' inject='coldboxdatasourcetiger';
    b
    • 2
    • 22
  • a

    aliaspooryorik

    03/15/2022, 9:25 AM
    Hello - been trying to track down some JDBCRequest requests seen in FusionReact which are hanging. If I remove the
    coldbox.system.logging.appenders.DBAppender
    from my ColdBox 6.5 app then the queries do not appear. I'm pretty sure this is due to
    cfdbinfo
    use in
    DBAppender
    . Our setup is MariaDB with ACF2018.
    w
    b
    • 3
    • 33
  • r

    ryan

    03/15/2022, 2:06 PM
    Upon spinning up a new commandbox Lucee Server, should there be a server.json file automatically created?
    b
    • 2
    • 14
  • d

    David Rogers

    03/15/2022, 7:32 PM
    can I run 2
    it
    blocks concurrently with testbox?
    b
    • 2
    • 16
  • r

    Ryan Albrecht

    03/17/2022, 11:58 PM
    Thread to discuss my solution
    d
    s
    d
    • 4
    • 18
  • c

    cfexpert

    03/18/2022, 12:17 PM
    Hello, I have some troubles installing commandbox-cfconfig on one machine, because it throws an PKIX path building error. I tracked this down to the dependency cfcconfig-services which tries to load the module "propertyFile" from s3. Grabbed the files from artifact folder of my own machine, was successfull to load all the dependecies from the files and even installed commandbox-cfconfig without error. But cfconfig is not available and after the box startup it says: Cannot activate module: cfconfig-services. The module has not been registered, register the module first and then activate it.
    b
    • 2
    • 1
  • b

    bdeline2

    03/18/2022, 5:08 PM
    I'm playing around with Coldbox futures and was hoping to use it to execute a dozed or so database lookup table queries in parallel. We use a custom DAL that internally makes a reference to a scoped variable in the 'request' context called 'site'. Here is a bit of example code:
    Copy code
    async().all(
                () => LookupRepository.getCategories()
            ).then( 
                (results) => WriteLog(file='AsyncFutures',text="#serializeJSON(results)#")
            ).onException(
                (results) => WriteLog(file='AsyncFutureErrors',text="#serializeJSON(results)#")
            )
    I'm getting an error in the 'AsyncFutureErrors' log about the key 'site' not existing in 'request' scope. Is the current request scope not visible inside of a cbfuture? It'd make sense. Is there a workaround? I'm absolutely new to CB Futures. Thanks.
    s
    b
    • 3
    • 5
  • w

    wil-shiftinsert

    03/19/2022, 11:45 AM
    Interceptor question. I am using the preProcess interceptor a lot, and now I am getting some errors on reinits, because it can’t find some methods. Which probably is happening because some
    quick
    based service is not ready yet on my reinit request. A work around would be easy but I was wondering: are coldbox modules ready when preProcess is fired for the first time?
    b
    • 2
    • 3
  • j

    johnbarrett

    03/21/2022, 6:08 AM
    What is the command for command box for installing packages? I forgot it, and I can't scroll back far enough to see it here on slack. I am going to write it down this time so I won't have to ask again.
    s
    b
    • 3
    • 8
  • d

    dfgrumpy

    03/22/2022, 8:14 AM
    Anyone seen this error before? One of our devs started getting this out of the blue. I know the error being reported is with the hostupdater but, this commandbox install was perfectly fine and had 2 sites already running on it. Now any site that was running ok won’t start and gives the same error.
    Copy code
    × | Starting Server
       | > Component [commandbox-hostupdater.models.HostupdaterService] has no accessible Member with name [CONSOLELOGGER]
       |------------------------------
    ERROR (5.4.2+00453)
    Component [commandbox-hostupdater.models.HostupdaterService] has no accessible Member with name [CONSOLELOGGER]
    C:\Users\XX.XX\.CommandBox\cfml\modules\commandbox-hostupdater\models\HostupdaterService.cfc: line 32
    30:
    31:                     for( var hostname in arguments.hostnames ) {
    32:                             <http://variables.consoleLogger.info|variables.consoleLogger.info>( "Adding host '#hostname#' to your hosts file!" );
    33:                             // remove any line matching the current host name
    34:                             // in order to avoid duplicate entries
    called from C:\Users\XX.XX\.CommandBox\cfml\modules\commandbox-hostupdater\ModuleConfig.cfc: line 44
    called from C:\Users\XX.XX\.CommandBox\cfml\system\wirebox\system\core\events\EventPool.cfc: line 121
    called from C:\Users\XX.XX\.CommandBox\cfml\system\wirebox\system\core\events\EventPool.cfc: line 95
    called from C:\Users\XX.XX\.CommandBox\cfml\system\wirebox\system\core\events\EventPoolManager.cfc: line 59
    called from C:\Users\XX.XX\.CommandBox\cfml\system\services\InterceptorService.cfc: line 57
    called from C:\Users\XX.XX\.CommandBox\cfml\system\services\ServerService.cfc: line 290
    called from C:\Users\XX.XX\.CommandBox\cfml\system\modules_app\server-commands\commands\server\start.cfc: line 171
    called from C:\Users\XX.XX\.CommandBox\cfml\system\services\CommandService.cfc: line 345
    called from C:\Users\XX.XX\.CommandBox\cfml\system\services\CommandService.cfc: line 139
    called from C:\Users\XX.XX\.CommandBox\cfml\system\Shell.cfc: line 787
    called from C:\Users\XX.XX\.CommandBox\cfml\system\Shell.cfc: line 607
    called from C:\Users\XX.XX\.CommandBox\cfml\system\Bootstrap.cfm: line 160
    lucee.runtime.exp.ExpressionException: Component [commandbox-hostupdater.models.HostupdaterService] has no accessible Member with name [CONSOLELOGGER]
    t
    b
    • 3
    • 11
  • a

    alexpixl8

    03/22/2022, 1:14 PM
    I wonder whether its related to log4j changes in Lucee ? it seems its bombing out on line 32 of the file where its trying to log to the console that it has added a hostname to your host file pending an answer from Ortus you could i assume safely comment out that line pending a fix
    b
    • 2
    • 4
  • u

    uiswjd0

    03/22/2022, 4:19 PM
    can cfconfig not use UNC paths? if I do something like cfconfig show from=\\server1\c$\cf2018\cfusion fromFormat=adobe@2018 it will tell me the CF home directory doesnt exist. but if I map the drive with the same path. it works ok.
    b
    • 2
    • 10
  • e

    elpete

    03/22/2022, 6:53 PM
    The
    hasPermission
    method gets that string and you handle it however you'd like to return true or false.
    d
    w
    • 3
    • 8
  • a

    Adam Cameron

    03/23/2022, 1:23 PM
    Yo I'm trying to "locate" my
    logs/server.out.txt
    file via code. For me it's in
    /usr/local/lib/serverHome/logs/server.out.txt
    .
    /usr/local/lib/serverHome
    is the value of the
    BOX_SERVER_APP_SERVERHOMEDIRECTORY
    environment variable. Am I safe to ass-u-me that the
    logs
    subdir will be created off that, and that this is where
    server.out.txt
    will be? IE so
    pathToStdOutFile = "#server.system.environment.BOX_SERVER_APP_SERVERHOMEDIRECTORY#/logs/server.out.txt"
    is a legit approach?
    b
    • 2
    • 3
  • t

    Travis

    03/23/2022, 2:42 PM
    Anyone seen this error before? Every version of CommandBox is affected on the local machine with this symptom so it's got to be something else.
    t
    b
    • 3
    • 9
  • l

    Leon Miller-Out

    03/23/2022, 3:23 PM
    @bdw429s and @jclausen - Hey, guys. I’m having a weird issue with a project that I’m trying to convert from the “official” Lucee Docker images to the commandbox docker image. I’ve defined
    APP_ENV
    in my
    docker-compose.yml
    to be
    /app/htdocs_www
    , and I’ve mounted the app code appropriately. Early in the startup process for the container, I see:
    Copy code
    Start script for shell [bash] generated at: /app/server-start.sh
    (This is coming from commandbox’s
    ServerCommandLine.cfc
    ) Then later I see:
    Copy code
    har-lucee-1   | INFO: Starting server using generated script: /usr/local/bin/startup.sh
    har-lucee-1   | + [[ ! -n '' ]]
    har-lucee-1   | + [[ ! -n '' ]]
    har-lucee-1   | + echo 'INFO: Starting server using generated script: /usr/local/bin/startup.sh'
    har-lucee-1   | + mv /app/htdocs_www/server-start.sh /usr/local/bin/startup.sh
    har-lucee-1   | mv: cannot stat '/app/htdocs_www/server-start.sh': No such file or directory
    har-lucee-1 exited with code 1
    (This is coming from docker-commandbox’s
    start-server.sh
    ) So there’s some disagreement about where
    server-start.sh
    is supposed to be. It seems like docker-commandbox is respecting APP_ENV, but commandbox is not. Any ideas about where to start troubleshooting this?
    b
    • 2
    • 52
  • b

    birdy1980

    03/24/2022, 7:47 AM
    I have a question. We are trying to set up command box on a new MacBook. (with the M1 processor) We didn't install java globally but we downloaded Mac 64-bit JRE from the commandbox website. When we try to start our server the startup process does not complete but it ends with this error: Any idea's what could be causing this?
    Copy code
    [DEBUG] Runwar: StopMonitor listening for password
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x00000001307a5cbc, pid=4465, tid=7171
    #
    # JRE version: OpenJDK Runtime Environment Temurin-11.0.14.1+1 (11.0.14.1+1) (build 11.0.14.1+1)
    # Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.14.1+1 (11.0.14.1+1, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
    # Problematic frame:
    # C  [libawt_lwawt.dylib+0x3acbc]  Java_sun_lwawt_macosx_CRobot_mouseEvent+0x34b
    #
    # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    # An error report file with more information is saved as:
    # /Users/***/Dev/legacy-api/hs_err_pid4465.log
    #
    # If you would like to submit a bug report, please visit:
    #   <https://github.com/adoptium/adoptium-support/issues>
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #
    [DEBUG] Runwar: #
    [ERROR] #
    [DEBUG] Runwar: Server exit code is: 134
    ERROR (5.4.2+00453)
    Server process returned failing exit code [1]
    z
    b
    p
    • 4
    • 16
  • n

    Nicole Liliana

    03/25/2022, 1:58 PM
    Hi, i’m trying to create a web page where i print user’s products. i take the records from the db and then i use
    Copy code
    arrayList = queryToArray(queryexecute("select id.... from products... where userid = ?"));
    
    var returnArray=[];
    for (i=1;i<=ArrayLen(arrayList);i++){
        arrayAppend(returnArray, populator.populateFromStruct(target=getInstance('userProduct'), memento=arrayList[i],trustedSetter=true,ignoreEmpty=true));
    }
    
    return returnArray;
    to create an array of objects and i use it to print data on the page in the test the code use 1s to populate 10 object with this code am I wrong in using the function?
    d
    m
    +3
    • 6
    • 17
  • r

    ryan

    03/25/2022, 4:59 PM
    When running command
    server info
    I get the following warning. Is this anything to be concerned about or will everything still operate normally?
    Copy code
    CommandBox> server info
    
    amalga-ccpb (running)  127.0.0.1:58044 --> F:\code\web\sites\cfwt\testenv\  
      CF Engine: lucee 5.3.8+201
      Last Started: 25-Mar-2022 12:52:52
    
      Last status message:
      [INFO ] Runwar: Starting RunWAR 4.5.1
      [INFO ] Runwar: HTTP2 Enabled:true
      [INFO ] Runwar: HTTP sslEnable:false
      [INFO ] Runwar: HTTP ajpEnable:false
      [INFO ] Runwar: HTTP warFile exists:true
      [INFO ] Runwar: HTTP warFile isDirectory:true
      [INFO ] Runwar: Starting background testenv [lucee 5.3.8+201] from: /F:/code/.CommandBox/lib/runwar-4.5.1.jar
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by runwar.LaunchUtil (file:/F:/code/.CommandBox/lib/runwar-4.5.1.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 -
    b
    • 2
    • 18
  • j

    johnbarrett

    03/26/2022, 4:35 AM
    This might be a dumb question, but does commandbox work on the new macs with the M1 chip? I am getting the mac studio this weekend, and can't live without comanndbox.
    d
    l
    +3
    • 6
    • 12
  • g

    GVJustDOIT

    03/27/2022, 6:44 PM
    Hi, will the latest commandbox support .htaccess rewrites rules or do we need to set up any .jar files? because I am trying to enable and set the .htaccess (.htaccess is in the project root directory) file path like the below but the rewrite rules are not applying. Can anyone please help?
    Copy code
    server set web.rewrites.enable=true
    server set web.rewrites.config= .htaccess
    I found the below warning in the trace logs
    Copy code
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/C:/Users/John/.CommandBox/server/A050B21C76ADC5FA642B020347636AC5-htdocs4/lucee-5.3.8.206/WEB-INF/lib/lucee-5.3.8.206.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
    WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
    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
    b
    • 2
    • 1
12345...30Latest