jakobward
03/22/2023, 10:40 PMAdam Cameron
Anna User
03/27/2023, 5:05 PMSimone
03/27/2023, 8:06 PMSimone
03/27/2023, 8:06 PMzackster
03/28/2023, 10:26 AMCory Howitz
03/28/2023, 5:29 PMhemi345
03/28/2023, 9:12 PMzackster
03/29/2023, 10:38 AMchapmandu
03/30/2023, 3:21 AMAdam Cameron
java.util.GregorianCalendar
) operations, which results in a value I need being a java.util.Date
.
I can't be sure what's going to happen with this value, and it could possibly end up having CFML datetime methods being called on it (eg: myDate.year()
etc).
What's the most idiomatic way of forcing the java.util.Date
back to a native Lucee date?
My thought is DateAdd("s", 0, myDate)
, and whilst that works, it's not immediately clear in the code why I'm doing that.
I'm not adverse to an explanatory comment in this case, but it got me wondering if there's a more "idiomatic CFML" way of doing this?Slackbot
04/04/2023, 6:39 AMPrashant Gupta
04/04/2023, 8:49 AMbrettpr
04/04/2023, 2:55 PMgsr
04/05/2023, 2:57 AMError! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><Error><Code>PermanentRedirect</Code><Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message><Endpoint><http://s3.temp.files.s3.ca-central-1.amazonaws.com|s3.temp.files.s3.ca-central-1.amazonaws.com></Endpoint><Bucket>s3.temp.files</Bucket><RequestId>RequestID</RequestId><HostId>HostID</HostId></Error>" Error making Amazon REST Call: Code: PermanentRedirect\nMessage: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.\nEndpoint: <http://s3.temp.files.s3.ca-central-1.amazonaws.com|s3.temp.files.s3.ca-central-1.amazonaws.com>\nBucket: s3.temp.files\nRequestId: RequestID\nHostId: HostID
gavinbaumanis
04/06/2023, 2:56 AMlocal.deleteEntity = entityLoadByPK("customerAlertSpec", session.testEntityId);
This doesn't;
local.deleteEntity = entityLoadByPK(name="customerAlertSpec", id=session.testEntityId);
// This doesn't work either
// local.deleteEntity = entityLoadByPK(name="customerAlertSpec", id="#session.testEntityId#");
I get the following error;
'java.lang.Object lucee.runtime.functions.orm.EntityLoadByPK.call(lucee.runtime.PageContext, java.lang.String, java.lang.Object, boolean)'
Same result - with or without the unique attribute : (true OR false)Prashant Gupta
04/06/2023, 10:50 AMWARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/home/prashant/install/tomcat9/webapps/myApp/WEB-INF/lib/lucee.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
Prashant Gupta
04/06/2023, 10:51 AMDave Kopecek
04/08/2023, 7:24 PM/sharedSettings
to C:\projects\settings
. In CF2021 I can do <cfinclude template="/sharedSettings/settings.cfm">
but in Lucee I'm getting:
lucee.runtime.exp.MissingIncludeException: Page /sharedSettings/settings.cfm [C:\projects\myProject\sharedSettings\settings.cfm] not found
I'm also unable to map to ..\settings
. What am I missing?romanstr
04/10/2023, 10:35 AMgsr
04/11/2023, 9:29 PMgsr
04/12/2023, 12:57 AM<cfheader name="Content-Disposition" value="inline; filename=#uploadedFile#">
<cfcontent type="application/pdf">
gsr
04/12/2023, 12:57 AMzackster
04/12/2023, 7:52 AMgsr
04/12/2023, 12:19 PMeyk
04/13/2023, 10:31 AM<cfoutput>#isValid("integer", "no")#</cfoutput>
https://trycf.com/gist/83faa53bd3a1eb9e66eb66e6d89c7a51/lucee5?theme=monokaiMattiasR
04/13/2023, 1:02 PMDavid Rogers
04/13/2023, 6:02 PMzackster
04/13/2023, 6:37 PMgsr
04/18/2023, 3:33 AM<cffile file="#arguments.pathS3##uploadedfile#" action="readbinary" variable="myData">
encrypted=encryptBinary(myData, theKey, 'AES');
<cffile file="#arguments.pathS3##uploadefile#" action="write" output="#encrypted#" />
i converted it to a function, but i am confused on the last part where it is writing back to the s3 bucket
public function fetchAndWrite(any resources) {
var checkForFile = objectFileExists(resources.clientID,resources.ifile,resources.location,resources.secure);
if(checkForFile) {
results = fetchFile(clientID=resources.clientID,rawFile="1",gameSheet="#resources.ifile#");
}
if(resources.read) {
cffile( variable="myData", file="#results#", action="info" );
cffile( output="#encrypted#", file="#results#", action="write" );
}
return myData;
}
or should i use amazons3 like renameobject of amazonsdk