『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
The official community for ColdFusion.
新着順
I'm migrating files from Windows ColdFusion 2018 to Linux ColdFusion 2018. On the Windows Server, I can successfully run the following code:<cffile action="rename" source="#srcDIR#" destination="#destDir#\#form.memID#.PNG" nameconflict="overwrite"> Where #srcDIR# is the path to the image that needs to be moved. But on Linux, the same command below fails "The source ... specified in the cffile tag is invalid." I added a CFIF FileExists check and it's returns as true, so #srcDIR# can be found.<cffile action="rename" source="#srcDIR#" destination="#destDir#/#form.memID#.PNG" nameconflict="overwrite"> If I change the cffile to move and remove nameconflict as shown next, it works:<cffile action="move" source="#srcDIR#" destination="#destDir#/#form.memID#.PNG"> Anybody have a clue why rename fails, but move works?
I have a website where the navigation bar appears on every page. This is so I can edit the navbar in one location and it will change in each subsequent page automatically. However I want to have the option to display the navbar or not display it based on the type of page that it is. I achieved the navbar being displayed on each page via my application.cfc under the “request start“ tag. Is there a way that I can selectively omit my navigation bar depending on the page that I select? Any suggestions on the direction? I should go with my coding <cffunction name="onRequestStart" returnType="boolean" output="true"> <!--- Any variables set here can be used by all our pages ---> <!---02/20/2023---><cfinclude template="navbar_admin.cfm"><cfset request.companyName = "BK_Club">
We have a small internal deployment of Coldfusion MX 7. The server is dead so I am build a new one. I am facing and error when running the site. The original programmer has left and I am not good at this. Can someone help me on this? Thank you.
So I thought I was having firewall (norton 360) issues but tech support fixed the firewall to allow me to connect to the cf administrator.That effort failed, so I contacted my IP (xFinity) tech support folks and he turned their firewall off...and I still cannot connect.If I cannot connect to the administrator, then I won't connect to anything I do in the report builder.I've got to demo the report builder on the 2nd of October...staying up all night is my only option. So if you know, please do contact me!Would anyone have a fix or an explanation of WT...is going on?kevin@mesllc.net
Hi, I've installed CF Builder 2018 on a Windows Server 2012 R2 Standard machine. Normally we don't use this tool but wanted to use the Security Analyzer. After setting it up and pointing it to a project folder, I right-click on one of the files I want to analyze, on the fly-out menu choose Security Analyzer, Run Security Analyzer, and it returns the following error: An internal error occurred during: "Security Analyzer".java.lang.NullPointerException I have tried installing the CF Builder 2018 package on several other machines on our network with the same results. Here are the version details that I could find. CF Builder:Version: 3.2.1Build: 313943 From the configuration log:com.adobe.ide.coldfusion.securityanalyzer (3.2.1.201902041055) "Htmlconverter" [Active]Id: com.adobe.ide.coldfusion.securityanalyzer, Version: 3.2.1.201902041055, Location: reference:file:plugins/com.adobe.ide.coldfusion.securityanalyzer_3.2.1.201902041055/Adobe ColdFusion Bui
I have a search results page that lists part numbers that engineers have to work on, but I only want part numbers displayed on the results page that have a C and then a number after the C in the part number. How do I write this in the Where statement in my CFQuery? If I write Where Part_Number Like 'C%', it lists all the parts that have anything after a C in the part number like CBT-BGA. I want it to find only part numbers like this: C4560. I also tried this: Where Part_Number Like '^C[0-9]', but this doesn't show any results. Thanks for your help.
I am creating datasource wth ms-access driver it give following errorColdFusion ODBC Server service is not running or has not been installed. You may also use the "MS Access with Unicode" driver to connect to MS Access datasources.. please help i try following suggested by cold fusion support team still facing same issuePlease try the below instructions and let me know if it works: Step 1: Uninstall any existing “Microsoft Access database engine ” from add\remove program. Step2: Ensure that you don’t have any MS Access related data source defined in ColdFusion admin page(under Data Source). Step 3: Ensure that you have removed all the DSN entries from odbc administrator(both 32 bit and 64 bit under system DSN). 64 bit odbc path: C:\Windows\System32\odbcad32.exe32 bit odbc path: C:\Windows\SysWOW64\odbcad32.exe Step 4: Download and install 64 bit MS Access Database Engine from the link: http://www.microsoft.com/download/en/details.aspx?id=13255 St
Working on a new project that utilizes cfhttp to make a call to a remote site. The authentication to this site uses a unique account key that is passed in the url. This key is decrypted and passed in at the time of the cfhttp call. I'm able to make calls without any issues (get, put, post, etc) but upon reviewing logs(http.log and coldfusion-out.log), I noticed the account key is saved in plain text. I tried placing the key into a cfhttpparam as a type url but the log still reveals the same plain text key. I would like to prevent the key from being "stored/logged" anywhere for obvious reasons. Is there some way to modify the logging level? Any way to modify the logs if a certain string is found? Maybe some other method that I should use? I appreciate any advice.
Hi, I have a question regarding licensing/cores. Say, for whatever reason, ColdFusion 2021 was installed on an 8 core VM, but is only licensed for 4 cores (2 x Standard licenses). Is it possible to limit the number of cores CF uses by some mechanism other than reducing the number of cores the VM has? I'm thinking Java startup parameters, or something similar. Or is the only way to get CF to use four cores by reducing the VM core count to 4? Many thanks!Mike.
Recently I tried to upgrade colfusion 2021's JVM to newest version from 11.0.1 to 11.0.19. By doing that I get db connection error now. I am using aws Aurora db service. Any pointers please? Thanksexact error is :com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureif I point back to old JVM i.e. is 11.0.1 all works fine
Lockdown tool is stuck on "Change Permissions of IIS Website: ... Input Logs". It also messed up the permissions on server webroot. Files are now missing an owner. Any insight would be appreciated.
I have an ADFS server acting as the IDP, CF2021 update 5 using a simple SP setup running on RHEL 8/httpd. Oracle JDK 11.0.17, SELinux is disabled. Signing and Encryption are disabled on the SP. SSO was working until I created a security sandbox around the code webroot. I created a default security sandbox around the web root, I started getting this error message: "Invalid SAML Response. Not match the saml-schema-protocol-2.0.xsd" I enabled all Tags and Functions, "Other", and opened up the File/Folder permissions to absolutely everything, but it still fails. If I remove the security sandbox, it starts working again. coldfusion-out.log shows this: 01/31 10:26:40 [ajp-nio-127.0.0.1-8020-exec-3] WARN Error executing validateXML: schema_reference.4: Failed to read schema document 'bundle://5a95f7f4-292b-4044-9e7d-2bd1e4eb78ed_272.0:1/schemas/saml-schema-protocol-2.0.xsd', because 1) could not find the document; 2) the d
As the subject describes, optimizing PDF files yields the error message "The document could not be saved. Cannot save to this filename. Please save the document with a different name or in a different folder." and the file gets turned into a .tmp file. Optimizing the .tmp file and saving it to the previous name correctly saves it as a PDF, however, this wasn't necessary before. Due to the work environment, these files must stay within this folder and follow a certain naming convention that cannot be changed. Is there a reason these files keep converting into tmp files? Any help is appreciated. Thank you!
I am using this code amd works fine in my environment but when I try it in different CF 2018 environment is giving me an error the form,SAMLRespose does not not exist. Any help appreciated. accountSettings = createObject("java","com.onelogin.AccountSettings");accountSettings.setCertificate(reReplace(request.company.getCertificate(),"-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----","","all"));// Generate an AuthRequest and send it to the identity providerb64Coded = createObject("java","org.apache.commons.codec.binary.Base64");xmlString = toString(b64Coded.decode(trim(form.SAMLResponse)));
Anyone has run intot this cookies issue?Imagine I have these 2 subdomains ("www" and "test", as part of the ".foo.com" domain), like this:test.foo.comwww.foo.comIm having the issue where If a user logs in into a CF app hosted in one of these doamins it logs the user out of the app on the other domain. This I guess has to do with the CFID and CFTOKEN cookies that get saved on the browser somehow.I also noticed that there is a setDomainCookies setting for an app in CF, but setting it to true or false does not seem to do anything.Amy ideas what to do in this case? Is there a way to tell CF that it should handle cookies for one subdomain independently of any other subdomain (or main domain)???
We have encountered an error which we have tracked back to the Progress JDBC driver for SQL Server. This Progress KB post describes the error exactly: https://community.progress.com/s/article/exception-thrown-when-retrieving-multiple-large-result-sets-using-sql-server-jdbc-driver-6-0 The timing, along with Charlie Arehart's presentation (https://www.carehart.org/presentations/Hidden%20gems%20in%20CF2021.pdf - see slide 38) indicates that the 6.0.0.000367 release is probably what we have. (If someone can tell us how to find the actual version number... please pile on) The progress article indicates that the problem is resolved in 6.0.0.000381 (or later). We can't download this directly from Progress without a Progress login, so... how do we get the updated driver?
I'm trying to read a page with cfhttp and extract code from it using #find. I've done this before and it works fine. The problem is that the page I'm trying to read has lots of embedded AJAX mechanisms — when I use my browser's "inspect" function on particular attributes I can see all the code, but when I simply say "show page code" (or use cfhttp) I just get the top-level static code without the sub-components that load when the page loads (the code of which are visible when I select elements and click "inspect" using the browser's debug tools). Is there a way to tell coldfusion to read from a specific http location and load the entire file, the way a browser does, rather than just retrieving the top-level file and ignoring the javascript and other mechanisms that fill the page dynamically with code as it loads? Thanks in advance for anyone's help or advice. Jordan
I am taking over a codebase from another developer. The codebase is written using FW/1 4.3 and curently runs on Windows Server 2016 with ACF 2016. The current hosting account belongs to the developer, and will be shut down at the end of the year.I am testing setting up the clients site on a new install of the server and ACF version that they offer when opening a new hosting account, which are Windows Server 2022 and ACF 2021.I have setup the site in IIS and configured CF. A test site with a fresh install of FW/1 runs smoothly, but when I setup a site with the clients codebase in it I get this error:Exception occured before FW/1 was initialized Exception in onError cannot simultaneously fetch multiple bags (org.hibernate.loader.MultipleBagFetchException)followed by this error:Unable to create requested service [org.hibernate.engine.spi.CacheImplementor] (org.hibernate.service.spi.ServiceException) Error message: net.sf.ehcache.CacheException: Another CacheManager with same name '_ORM_d
As part of generating an XML document (using CFXML and ToString), we have a section for user comments. As it's user input, we have to treat it as potentially malicous so we wrap the user comment with<![CDATA[#userComment#]]>This doesn't cover the corner case of the userComment containing ]]> itself. So we tried to use replace to "escape" the corner case like so<![CDATA[#replace(userComment, "]]>", "]]]]><![CDATA[>", "ALL")#]]>This works in testing"Test ]]> comment" becomes "Test ]]]]><![CDATA[> comment" but when we use CFXML (and then toString), it seems that CFXML strips out the ]]><![CDATA[.Can we use the CDATA approach or should we drop that and just use EncodeForXML? More detailsCF Version: 2021 Update 6Code summary:<cfxml variable="xmlReport" casesensitive="yes"> ... <COMMENTS><![CDATA[#replace(userComment, "]]>", "]]]]><![CDATA[>", "ALL")#]]></COMMENTS> ... </cfxml> <cfset xmlStri
I am wondering if anyone has any ideas about this: I am trying to solve some sort of mail issue with ColdFusion 2016:The same message keeps appearing in the mail spool several times per minute.Nothing seems to be actively sending it out - it doesn't seem to be a scheduled task or a human doing it. I have no idea what could be causing this. If it matters, the mail is being sent via a Google Workspace account and does make it to its destination - repeatedly.I have tried restarting the server but the problem still lives on. I'd emphasize that it seems to be one particular email that was originally generated by ColdFusion...and if I go back to the source and change the code for the email/text of the email, it doesn't actually change the email that keeps appearing in the mail/spool directory.
Hello, I'm on Coldfusion 2021. When I try to load a pdf from a cfdocument it doesn't see the CSS at all. The thing I'm exporting to it has a lot of div in it, and the format is always wrong. Does cfdocument not work at all with CSS or is there a hot fix for this? Thanks,Chad
After the upgrade to CF 2021 Enterprise, when we attempt to unzip a file we are getting a new error message I have not seen before: "Exception while extracting 69_campaign.zip: Uncompressed contents cross maximum permissible size of 405.52734375 KB" The file is only 41526Kb in size (small) and the import routine worked perfectly BEFORE the upgrade. I can find no info on this error anywhere - help?
Seems there is a cache stuck somewhere that has old database fields. For example, it keeps telling me I am missing a PK called p_id. That is an old field that does not exist any longer the DB. ```Incomplete primary keys provided.The table you are attempting to update, products requires the following primary keys ('P_ID,RECORD_ID,'). Ensure that all the primary keys are provided in the form.``` I can simply change the name of the table and everything works fine. So Coldfusion has to have that table metadata cached but I have tried everything to clear it out and I cant find anywhere to completelty wipe out that metadata. Anyone ran into this and have any suggestions?
Hi all, I test the use of access="package" in a cfc function and it doesn't work, although I do exactly what the documentation says. It says that1) cfcs in the same folder are considered a package and2) a func having access="package" can be accessed by the functions of the all the other components of the same package (folder). Please see the simple code below. All 3 files are in the same folder.When I call index.cfm I get the message "Variable CFC2FUNC is undefined" <!--- index.cfm ---><cfobject name="oX" component="cfc1"><cfset x = oX.cfc1func()><cfoutput>#x#</cfoutput> <!--- cfc1.cfc ---><cfcomponent><cffunction name="cfc1func" access="public" returntype="string"> <cfset local.ret = cfc2func()> <cfreturn Ret></cffunction></cfcomponent> <!--- cfc2.cfc ---><cfcomponent><cffunction name="cfc2func" access="package" returntype="string"&
I have a table with the column StatusSubStr char(2)In it are many instances of "00"I want it to print in a table cell with another string from the tableStatusStr char(2)which contains either 1 or 2 number characters#FQ.StatusStr#.#FQ.StatusSubStr# prints as an example 1.01 or 1.10but when StatusSubStr = "00"it prints 1 or 2it only prints the string StatusStrThey were both integer fields in the database and I tried every kind of cast and concatenation I could find doing them both in mariadb before returning the results and in Coldfusion with the results. I finally changed the database to char(2) on both fields with alot of confidence that it would work. I filled all the StatusSubStr directly with "00" because some were null, and with lpad(statussubstr, 2, "0") so that the field has every record filled with 2 characters. And cold fusion still refuses to print the string "00". Any help would be super appreciated. This piece should have taken me
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
申し訳ございません。このファイルは、ダウンロードしても安全かどうか、内容を確認中です。数分後にもう一度お試しください。
申し訳ございませんが、当社のウイルススキャナは、このファイルをダウンロードすることは安全ではないと検出しました。