The official community for ColdFusion.
Recently active
I would like to automate setup of my cf install and wondered how one can set maximum number of post params via the API?
Hi, I use the below code to allow users to upload file(s) from the browser to our File Server. <cffile action="UPLOAD"filefield="#ThisFile#"destination="#NewDir#"nameconflict="Overwrite" <!--- nameConflict="Error" ---> > Every now and then, it will give users an error. "The page was not displayed because the request entity is too large." Today, a coworker was having this issue from his laptop from another location. So, I uploaded the file for him, using the same Cold Fusion interface. Of the 10 attempts, 2 attempts yielded the SAME errors and the other attempts went through without problems. When the error occurred, I could not find anything in the application.log. I have connection speed above 100MB/s both upload and download. The file in concern was only 100k in size. I could only find the below thread on this topic. https://community.adobe.com/t5/coldfusion-discussions/http-er
I have Coldfusion running on Linux 8 behind a firewall. From CF admin, I was able to update from 2 to 3 and then to update 4.I'm having issues upgrading from update 4 to any other version. I selected update 5 download and install. I clicked OK and then it shows Unable to proceed beyong this point. I tried to run the command as suggested. [root@elcfxa03 bin]# pwd/opt/ColdFusion2021/cfusion/bin[root@elcfxa03 bin]# ./cfpm.sh install administratorThe packages repository https://www.adobe.com/go/coldfusion-packages is not accessible. You can only load the packages that are available locally in the /opt/ColdFusion2021/bundles directory.The following packages will be installed : adminapi:2021.0.05.330109,administrator:2021.0.05.330109Downloading the package adminapi-2021.0.05.330109.zipAn error has occurred while installing the package adminapi. Exception : nullThe package adminapi is marked for uninstallation. Uninstallation will be done, on the next server st
Is there a book available on the latest version of ColdFusion? Something akin to a learning guide?
I am using Fluend as a sidecar of a Coldfusion application in Azure AKS. I am facing issues with some log messages getting truncated.I am using this docker image fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch8-1.FluentD configuration:apiVersion: v1 kind: ConfigMap metadata: name: fluentdconf data: fluent.conf: | <source> @TyPe tail path /opt/coldfusion/cfusion/logs/*.log path_key tailed_path pos_file /var/app/file.log.pos tag aks.coldfusionlog max_line_size 50MB <parse> @TyPe none </parse> </source> <match aks.coldfusionlog> @TyPe stdout </match>
CF2016 (OSX 10.11.6)In the CF Admin (Data & Services > REST Services I'm trying to register a REST service. When I select the path to the folder where my 3 test files live (all 3 files are in the same folder) and attempt to complete the registration process I get an error saying Error registering REST service. Please ensure that you have entered a proper mapping and path.No mapping found for path /Applications/ColdFusion2016/cfusion/wwwroot/CFC/testServices .If mapping is not specified, path should point to application root directory.In an effort to keep this as simple as possible I'm not using mappings of any kind and all of my files are in the same folder. The instructions on the form control say to use "Application path or root folder where CFCs reside"Does anyone know what I need to do to register my REST service in the CF Admin?I created 3 simple files: Application.cfc (contains only cfapplication name="test" tag, which is empty)service.cfc <cfcomponent rest="true">&n
Hello, I am developing an SSO Azure Ad from my localhost:When I run the InitSAMLAuthRequest(****) and call the ProcessSAMLResponse(“***”,”***”)The Azure Ad goes into constant loop and will not stop. Looking at the error log files I see the below and a bunch of othersjava.lang.nullpointerexception at coldfusion.saml.samlResponseHandler.getid(samlResponseHandler.java:**)java.lang.nullpointerexception at coldfusion.saml.samlResponseHandler.<init>(samlResponseHandler.java:**)java.lang.nullpointerexception at coldfusion.saml.SAMLServiceImpl.ProcessSAMLResponse(SAMLServiceImpl.java:**)
Hello,I am running CF2018 update 9 with Redis session storage enabled and I am finding that sessions are not consistently expiring on their configured expiration durations. Currently in CFAdministration I have the maximum session timeout set to 30 minutes, the default to 30 minutes, and in Application.cfc the timeout configured for 30 minutes.We are finding that often our session will not expire even after several hours of inactivity. Has anyone else seen this? Perhaps knows what could be going on? Thanks, -Curtis
We noticed an issue yesterday when with a cached CFC seemingly corrupted. We ran a number of tests and are able to recreate the issue:Here's a test:- Run any web pages that use the cfc to make sure they're working- Add a space inside one of the comments in the CFC file- Try to run the web page again. It'll error out.- In CF Admin, clear the cache- Test the web page again, it'll work Also, in cfclasses, related class files are updated the moment we change the CFC and run the web page, and they won't change after clear cache, indicating the problem doesn't initiate in class files.More details:- The CFC errors out with any change, even if with an additional space inside a comment. - Once we clear the cache in CF Admin, the problem goes away. This never happened with older version of CF all the way to the begining of CFCs. We used to have the problem of CFC not getting updated until we cleared the cache, but with CF2021, it actually errors out.- This is th
Revision history 13 Mar 2024: Added the impacted scopes and related code samples to both the tech notes. 14 Mar 2024: Add the Docker image locations of the updates. We are pleased to announce that we have released security updates to ColdFusion (2023 release) Update 7 and ColdFusion (2021 release) Update 13. This update includes several security fixes to ensure the safety and security of our systems. These changes address potential vulnerabilities and threats and are part of our ongoing commitment to protecting your data and privacy. For more information, view the security bulletin, APSB24-14. Where do I download the updates from Download the updates from the following locations: ColdFusion (2023 release) Updates ColdFusion (2021 release) Updates These updates address some significant changes in variable scope and cfdocument. In addition, we've updated a few libraries and packages. For more information, view the following te
I have an application that periodically throws this errorError Executing Database Query.Communications link failure The last packet successfully received from the server was 878,178 milliseconds ago. The last packet sent successfully to the server was 18,954 milliseconds ago. The specific sequence of files included or processed is: .......I think this is because the DB is on a different server.Is there any suggestions on how to fix this issue. The error occurs periodically.If the DB issue cant be fixed could I use cfcatch.cftry to keep trying until the connection doesnt fail?Maybe like this <cftry> Problem DB query goes here <cfcatch ...> <cftry> TRY DB query AGAIN? <cfcatch ...> TRY DB query AGAIN? </cfcatch </cftry> </cfcatch> </cftry>
Hi have a date condition that i dont understand.Where it says <cfif #FORM.LogDate# is not "//">Does that mean NOT Null?I have never seen it before. Full statement below. <cfif #FORM.LogDate# is not "//">'#LSDateFormat(FORM.LogDate, 'dd-mmm-yyyy')#',<cfelse>NULL,</cfif> Thanks in advance
We have a table in an Oracle database with a data type CLOB. We use the CF_SQL_CLOB CFSQLTYPE in the database query but we get an Oracle error indicating that the data exceeds the 4000 character limit with the VARCHAR2 datatype. We tried using both the ColdFusion Oracle driver and the JDBC driver from Oracle's site. Both are throwing the same error (see below). What is this CF_SQL_CLOB type? This site indicates that this is for CLOB or NCLOB data types.https://cfdocs.org/cfsqltype-cheatsheet Any suggestions would be greatly appreciated. Thank you. Error:OriginalSql = select 1 as testfrom request_descwhere to_char(text) = ?and requests_id = ?, Error Msg = ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4030, maximum: 4000) This is the table definition:COLUMN_NAME DATA_TYPE-------------------- ------------------------------REQUESTS_ID NUMBERTEXT &
Using Coldfusion 2023 we are having an issue setting a cookie that we previously did not have an issue with when using Coldfusion 11. As I understand it that / character is the reserved token; however, our software vendor is using this cookie name. Is there a way to override this or otherwise work around this issue?
I have a war file that was created using CF2018 with all patches applied. This war file was then submitted to a company named Veracode for a static security scan. The results stated that there were over numerous jar files with what they rated as Very High to Medium vulnerablities. They included jar files such as jackson-databind-2.8.8.jar, tika-core-1.21.jar, bcprov-jdk15on-153.jar, jetty-io-9.4.12.v20180830.jar and xercesImpl.jar. I also tried this on a patched CF2021 instance with similar results. I obviously cannot just go into the cfusion/lib and replace these jar files with updated versions. Does ColdFusion really have that many vulnerablities? Any suggestions on how to deal with this would be greatly appreciated.
Okay, I have never worked with coldfusion database before. Here is the deal. I have a website structure like this: /root /Register/index.cfm /MembersOnly/DatabaseFiles/users.sqliteI am trying to access this users.sqlite db from index.cfm file but I keep getting error. This is my code: <cfset request.pageTitle = "Registration"> <!--- Define the relative path to your SQLite database file ---> <cfset database_path = "../MembersOnly/DatabaseFiles/users.sqlite"> <cfif IsDefined("form.username") and IsDefined("form.email")> <!--- Establish Connection to SQLite Database ---> <cfquery name="insertUser" datasource="#database_path#"> INSERT INTO users (username, email) VALUES ( <cfqueryparam value="#form.username#" cfsqltype="CF_SQL_VARCHAR">, <cfqueryparam value="#form.email#" cfsqltype="CF_SQL_VARCHAR"> ) </cfquery> <!--- Che
If you have a query... and you output your results with groups...can you get a recordcount of how many records there are for each group? Much like you would do query.recordcount - can you do group.recordcount without having to do a mathematical approach such as doing <CFSET groupcount=groupcount +1>. Example: <query> <cfoutput query="query" group="name"> #name# <cfouptut query"query" group="city"> #city# </cfoutput> </cfoutput> I want to know how many records are contained in each group without having to do a CFSET.
I have a server with hard to access error logs. I keep getting an error on a certain page. Is there a way for me to output the error to the page, instead of just seeing the generic 500 error message?500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed.
Hello all - I am having an issue uninstalling our 2021 lockdown because it's missing the installvariables.properties file. This file was missing from the very first uninstall attempt. I saw where someone had a similar difficulty with CF 2018 and a responder mentioned that an installvariables.properties file was available for 2018. Is one available for 2021? Would this file necessarily be compatible with my installation? All work I am doing is on a clone so I am willing to give it a shot anyway if someone has one or knows where one resides. Thank you
Please find below is home.cfm, I don't have experience in Vue framework. This application was working earlier however for the past few days I only see balnk screen but there no errors in console. I use Edge browser and Chrome browser. In both the browsers the I see only balnk screen. Please help in this regard. Thanks. <div id="app" style="display:none"><!--- start vuetify ---><v-app> <!-- to use Vuetify components and styles, the page needs to be wrapped in v-app --><cfloop array="#components#" index="component"><!--- each component file contains the vuetify markup ---><CFINCLUDE template="ui_components/#component#.cfm"></cfloop><v-main v-if="isLoaded"><v-container ><div class="text-h5 my-4">My System</div><v-card><v-card-text class="subtitle-1 font-weight-medium"><v-row><v-col cols="7" class="pr-4"><div class="title mb-4">Welcome</div><div style="line-height: 30px
This issue seems to be related to the post below. CFHTMLTOPDF Fails Under 2021/Update 5 After Upgrading Java to 11.0.17 It seems as though CFHTMLTOPDF will not work with JAVA 11.0.17 and above on CF2021. We have tested this out by updating CF2021 to the latest JAVA, 11.0.22. When we update the add-on service(jetty.lax LAX.NL.CURRENT.VM) to use the JVM, as per the section 2.7.4 of the 2021 Lockdown Guide, we get a Server Error. "coldfusion.document.webkit.PDFgErrorHandler$ServiceManagerConversionException: Error occurred while generating PDF."In ColdFusion Admin we can "update PDF service Manager" and receive a "Service Manager localhost updated." message and the connection status says "ok". Everything seems to be happy but if we try to run a simple hello world page we get the error. If we change the JVM in Jetty.lax to a version prior to 11.0.17(but still leaving CF on the latest) then the error goes away and the pdf is rendered as expected. We can also fi
Hi, I'm running CF 2023 Update 6 on Windows Server 2022. According to the package manager the htmltopdf package is installed but cfhtmltopdf isn't working. On the CF admin -> PDF Service page it looks like everything is setup properly:Name: localhostHost Name: 127.0.0.1Port 8995Engine: 2.0When I try to start the service I get "Error enabling PDF Service Manager. Check logs for more details" In the coldfusion-out.log I get: Mar 19, 2024 10:54:15 AM Error [http-nio-8500-exec-3] - Connect to 127.0.0.1:8995 [/127.0.0.1] failed: Connection refused: connect http://127.0.0.1:8995/PDFgServlet/verifyMar 19, 2024 10:54:15 AM Error [http-nio-8500-exec-3] - Error enabling PDF Service Manager.Mar 19, 2024 10:54:15 AM Error [http-nio-8500-exec-3] - coldfusion.document.webkit.PDFgErrorHandler$ConnectionVerificationFailedException: Connection verification failed. Using "netstat -an", I don't see any service listening on port 8995. What am I missing? Sincerely, Alan Ya
This is really annoying. When I use jquery selectors with #, cf builder's code coloring gets broken.For example, in this image, the rest of the page after the selector in the is that sickly yellow / brown color. My code block is not surrounded with <cfoutput> tags. Any way to fix this that doesn't involve doubling up on #?
Hello there. I have over 5k pages where each has at least one image with extension .png or .jpg. Now, I was checking my website performance here: https://pagespeed.web.dev/ and it shows my images load very long which gives low google score. They suggested to me to use webp files which is okay however, I have plenty of images. Do I really need to convert each image to webp and than brute force each .cfm file to edit HTML for each image. That would be crazy. Another thing here is that I would like to set that webp but still keep compatibility for browsers that don't support webp. That would probably involve using <picture> tag. But, my main question here is if there is something coldfusion can do about this to automate this so that I don't have to trouble myself with such robust job?
After upgrading from Coldfusion 9 to Coldfusion 2021, I'm having issues with displaying Chinese/Japanese characters in the pdf files that are generated using cfdocument from html code. The characters display properly when output as html, but disappear when converted to pdf with cfdocument. Any one else encounter this? Was there any changes to the pdf engine that Coldfusion uses? Thanks!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.