Bryan Henderson
04/14/2023, 3:07 PMRyan Albrecht
04/14/2023, 6:17 PMLisa
04/17/2023, 6:26 PMX 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
gpickin
04/18/2023, 3:45 PMgpickin
04/18/2023, 5:00 PMlmajano
04/19/2023, 8:07 AMdougcain
04/19/2023, 4:16 PMPeter Hoopes
04/19/2023, 4:46 PMfwreinit
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.Charles Robertson
04/20/2023, 10:48 AMneo-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:
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.zackster
04/20/2023, 3:23 PMgsr
04/21/2023, 2:53 AMany 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;
}
salted
04/25/2023, 9:09 AMCharles Robertson
04/25/2023, 11:57 AM"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?redtopia
04/25/2023, 2:26 PMCharles Robertson
04/25/2023, 3:06 PMgpickin
04/25/2023, 5:00 PMPeter Hoopes
04/25/2023, 6:14 PMindex.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…hemi345
04/26/2023, 3:05 PMfunction 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-dataJason Ryan
04/26/2023, 5:42 PMOokma-Kyi
04/27/2023, 2:07 AMConfiguring 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?Ryan Albrecht
04/27/2023, 1:53 PMJohn Liljegren
04/27/2023, 2:27 PMmithlond
04/27/2023, 6:42 PMrunEvent(event="blah", private="true", prePostExempt="true")
from within my preHandler
. Is this a no-no?joechastain
04/27/2023, 6:45 PMDBAppender.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.Ookma-Kyi
04/27/2023, 7:49 PMERROR (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:
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.Peter Hoopes
04/28/2023, 6:35 PMapt 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. @bdw429sPeter Hoopes
05/01/2023, 1:23 AMbdw429s
05/01/2023, 8:36 PMlmajano
05/02/2023, 8:46 AMlmajano
05/02/2023, 2:11 PM