miki
New Here
miki
New Here
Activity
‎Mar 31, 2023
03:22 PM
I see that patch 4 upgrades tomcat to Tomcat 9.0.60 but i have a current nessus scan in hand of my CF2021patch 6 server and it contains one critical severity and 3 high severity vulnerabilities in Tomcat 9 as follows: Plugin Plugin Name Severity CVE 173251 Apache Tomcat 9.0.0.M1 < 9.0.72 Critical CVE-2023-28708 166906 Apache Tomcat 9.0.0-M1 < 9.0.68 Request Smuggling Vulnerability High CVE-2022-42252 169459 Apache Tomcat 9.0.40 < 9.0.69 High CVE-2022-45143 171657 Apache Tomcat 9.0.0.M1 < 9.0.71 High CVE-2023-24998 I searched the forum for posts about these, but mostly what i got was 2016 CVEs and Tomcat 9.0.60. I know that in some cases a CVE might not affect CF because the tomcat functionality isn't being used, so I am wondering if that is true for these in particular or if there is a way to mitigate these while Adobe works on integrating newer tomcats into CF patches. We are running CF2021 patch 6 on windows 2019 with IIS 10 Thanks
... View more
‎May 04, 2020
03:39 PM
our security team wants us to implement Multi Factor Authentication using a token based system. I located https://github.com/marcins/cf-google-authenticator which references CF10 and i was pleased becasue we still haven't been approved to move our app from CF 11 to a supported version but beyond serving as a sample has anybody got any idea how long it might take to implement either google authenticator OR another token based system. I'm being told that other 2FA methods are not approved (SMS, Email, etc) because they are not secure so they aren't options at this time. Any Advice, Recommendations, or realtime experience (it took us x long) would be appreciated. I hope this wasn't too vague, i just don't want to put too much in the post.
... View more
‎Nov 08, 2019
02:20 PM
I was positive i'd posted this yesterday, but i didn't see it on my profile page. So here it is again, possibly with different details. Coldfusion 11 (server config, dev profile) RedHat 7.7 Appache httpd (yum installed and updated, RedHat 7 uses systemctl to run services like httpd) We couldn't restore our dev CF server from backup when it went down so i had to re-create it. I am a passable unix admin but i have never administered CF on Unix before. These issues may could be related to ANYTHING and be addressed in the forums somewhere somewhere but when i searched on my issue keywords the descriptions didn't seem to fit. And sadly the person who built it originally has left. Order of install RedHat -> Apache -> CF before installing CF I am able to browse to the html on the apache web site During install i attempted to connect the connector to httpd using the systemctl httpd control file and when that had the same problem i'm describing i removed the connector and created it with wsconfig as follows /opt/coldfusion11/cfusion/runtime/bin/wsconfig -ws Apache -bin /usr/sbin/httpd -script /usr/sbin/apachectl -dir /etc/httpd/conf -v I got to a point where i had a CF Adminsitrator running on the same port as the application. I then did some unix admin stuff that required me to restart the server. When it came back up, i had the website responding but not the CF Adminsitrator. Of note: Due to the fact that cf-connectors.sh is not being removed/renamed regardless of whether i connect to httpd via apachectl or the httpd start script in the systemctl structure it is possible my wsconfig is incorrect. The problem is, the wsconfig runs, returning results similar to the below: >> sudo /opt/coldfusion11/cfusion/runtime/bin/wsconfig -ws Apache -bin /usr/sbin/httpd -script /usr/sbin/apachectl -dir /etc/httpd/conf -v
command line: -ws Apache -bin /usr/sbin/httpd -script /usr/sbin/apachectl -dir /etc/httpd/conf -v
Using Apache binary /usr/sbin/httpd
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Using Apache control script /usr/sbin/apachectl
Parsing Apache configuration file /etc/httpd/conf/httpd.conf
Exec'ing chmod 777 /opt/coldfusion11/config/wsconfig/1
Set permission to 777 on /opt/coldfusion11/config/wsconfig/1
Exec'ing chmod +x /opt/coldfusion11/config/wsconfig/1/mod_jk.so
Set permission to execute on /opt/coldfusion11/config/wsconfig/1/mod_jk.so
Created file /opt/coldfusion11/config/wsconfig/1/mod_jk.so
Wrote file /etc/httpd/conf/httpd.conf
Added ColdFusion configuration to Apache configuration file /etc/httpd/conf/httpd.conf
Created file /opt/coldfusion11/config/wsconfig/1/README
Wrote file /opt/coldfusion11/config/wsconfig/wsconfig.properties
Exec'ing /usr/sbin/apachectl restart
Restarted Apache server
The Apache connector was installed to /etc/httpd/conf So i'm at a loss as to whether my problems stem from the configs in the call being wrong or whether it is the issue below. I found this link https://helpx.adobe.com/coldfusion/kb/rhel-connector-configuration.html which led me to compile a new mod jk so file which i used to replace the one in the magic number folder for CF. Then i restarted CF. At the moment, my apparent ability to load Coldfusion Files breaks any time i restart CF, seemingly no matter what i do. As for my httpd install it is pretty much using default configs for everything with one exception: /var/www/html is a soft link to /opt/htdocs however since i never lose httpd, that really ought not to be the problem. If i'm not providing the correct answers to the wsconfig, can i get a bit more information as to what some of these values might be? - bin ( path to the Apache server binary file) The file at the location I provided is executable, there are others but of the ones i looked at, there weren't any that were executable. I used /usr/sbin/httpd - dir (path to the configuration directory) conf file is at /etc/httpd/conf/httpd.conf (so i supplied /etc/httpd/conf) - script (path to the Apache UNIX control script file) one of the things i used has to be correct either apachectl, or httpd.service , right? So i am at a loss. Should i try re-compiling the connector with different information? I don't have those here where i can paste them, but i can do the steps again and post the results. I'm just not sure where to go here. Anybody have suggestions? I'd like to toss the server and bring it up on windows but if i do that i'm not mirroring prod Thanks for whatever you can provide.
... View more
‎Oct 10, 2019
08:23 AM
related question, i've reviewed several updates notes pages and i don't see any at all that mention running wsconfig. Can you point me to an update notes that does require that? Doesn't have to be for CF 11
... View more
‎Oct 09, 2019
11:20 AM
Thank you! How do i mark the above response as a solution?
... View more
‎Oct 08, 2019
01:36 PM
I must not be using the right search terms because this has to have been asked before. I missed a hotfix release because i was not paying attention in april. do i need to apply the april hotfix AND the june/sept one or does the september one supercede June and april? I am not sure why this might change between versions and that's why i didn't specify a coldfusion server, but if it does, I'm still in CF 11. I know it's out of support. We are still trying to get approval to upgrade the server to either 2016 or 2018, but at the moment, i just need to get patches up to date with hf 19 and i'm wondering if i need to install 18 first, or if 19 will supercede 18. Thanks
... View more
‎May 21, 2019
09:48 AM
WolfShade​ They would, but few would argue that "scripters" I'm a scripter. started with perl 2 and sh and moved on to CF 2 then back to powershell and VBS, What I'm not is an OO programmer.
... View more
‎May 17, 2019
01:21 PM
Thanks BKBK​ and Charlie. This is the information i needed to go back to them and suggest that a Code solution would be better. (Lots of work, but better) I am adding BKBK's really awesome suggestion to the code solutions i suggested already and hopefully having the information i gave them reiterated by somebody with an ACP, MVP and who has been around the block several times might get them to see it my way. I suspect because i'm just a "coder" not a "engineer" and still find OO a little foreign, they ignore the fact that I've been dealing with ColdFusion off and on since version 3. But since when i hear "Listeners" and "Gateways" I translate it to "Stuff Miki Knows little or nothing about" i had to check.
... View more
‎May 15, 2019
08:31 AM
So sorry, i had actually come up with a workaround. We weren't hacked. I had found a configuration issue that had my dev server calling my uat report server instead of the dev one. FWIW i solved it by putting the "url" being called into a session variable and turning on debugging. It doesn't work on prod, but we don't test on prod. For prod, we brought down the lower environment report servers and since the prod report appeared, we knew prod was calling the prod report server. I am so sorry to have abandoned this, but i tend to post and forget, especially when i find a work-around that works. I learned a lot about how to phrase requests better today.
... View more
‎May 15, 2019
08:08 AM
I was away too long apparently. I'll try to answer the questions, let me know if i missed any 1. define lost. the emails went to the spool folder, were piked up by the relay but the relay was partially decommissioned, and while we were given the relay "logs" access to the relay itself was not granted. From the server perspective, the emails were sent, but never got to the recipients. They went somewhere, but nowhere we can go after them. They are not in UNDELIVR folder because they were picked up by the relay before disappearing. As far as CF can tell, they were sent 2. are we trying to use something different to send email? No. Not unless we have to. We need to put copies of the emails somewhere where we can access them after they leave the server because this is likely to happen again. We need to back up every email we send either by keeping a copy of the cfmail file somewhere OR by putting to, from subject and body in a database OR by doing something that we can use in the future to REBUILD the emails delivered to the relay. 3. CF does it already? ONLY if the email is not deliverable. As I understand it, If the relay takes it from the spool folder, it is gone. Am i wrong? Does it go to a "sent" folder somewhere on the CF server? Is there a way to add the body to the mail log? That would allow us to rebuild an email from the mail log? 4. question is about starting point. kind of. Spooling is enabled, the mail goes out every however many seconds emailing is happening, but when the relay is partially decommissioned, even sending to a local email doesn't happen. Conclusion @Dave Watts summed it up but unlike him, we are not being granted access to the relay. In order to rebuild emails if this happens again, we need a local backup. I will try his suggestion and add it to the possible solutions, but am looking specifically for things we can do that do not use coldfusion tags or change cf code. I proposed three cold fusion based solutions and they were POSITIVE i could find something that would not mean changing the code. I'm glad they think so highly of me but they are kind-of wrong. Other than MailGun, can you recommend APIs, gateways, listeners or mail log settings that might deliver what we're trying to do? For instance, could i intercept the call to the java listener from cf and create a copy that way? Or ? Thanks for being so helpful, i really need to remember to come back more often.
... View more
‎May 01, 2019
09:54 AM
I'm a bit out of my league on this issue. due to a recent infrastructure change that disabled the mail relay without actually notifying of an error and left us not sending any emails for two weeks, Worse we were completely unable to rebuild the "lost" emails. I've been tasked with a way to create a local backup of all outgoing mail. This is easy enough to do in CF, however the team wants solutions that don't use CF tags. The specific requirements I have are either to capture and locally store the cfmail file itself, or to capture the to, from, reply, cc, bcc, subject and body using (for instance) event gateways, mail log,or any listeners or apis that might be available. The email log contains to, from and subject, but doesn't contain body, so it's not viable for us unless i am missing a setting that makes the log keep the body of the email. I'm currently researching CFMailgun, and the Mailgun API, but i need a few other options as it does have some issues that may not be palatable to the client. Can anybody point me to gateways, listeners or mail log settings that might meet my requirements? Thank you.
... View more
‎Feb 20, 2019
10:39 AM
I am limited as to what i can do with the server, however i really need to verify that the code on a particular page is calling the right url into an iframe. CF Server: Cold Fusion 11 (11,0,15,311399) Web Server: IIS on Windows 2012 R2 I cannot do the following: turn on debugging modify the JVM install packet sniffers modify the code to write the log file directly I've reviewed the most recent IIS and CF logs on my dev environment and i couldn't locate outgoing calls. Can any of you recommend some other options? Is there a log level i might be able to turn on in CF that will capture this information? What about IIS? Thanks
... View more
‎Jan 25, 2019
11:19 AM
We had an issue recently that i needed to do a quick analysis of what emails were in undelivered folder. For all my other servers i used the CF Admin to go to the Mail page and click "View Undelivered" which gives me to/from/subject in a table and a view to the formatted html in the messages. All my servers but one. That server throws the same error twice when i try to perform this action and then displays nothing. ERROR: Bind Failed, Element not found: mailitems [Enable debugging by adding 'cfdebug' to your URL paremeters to see more information] adding ?cfdebug after the url took me back to the administrator home page, but navigating again to mail > view undelivered mail threw the same errors but added no debugging. I have tried the following things to fix it: 1. icacls on undelivr folder giving users full control of undelivr folder and all contents 2. look for 0 length file in Undelivr folder - none found 3. Clear all files from browser cache and history Can anybody suggest how to fix this issue that i haven't tried? CF Version: 11,0,15,311399 Web Server: IIS OS: Windows 2012 R2 Standard
... View more
‎May 09, 2017
02:47 PM
I'm only posting this because it is not coming up when i search on the text in the subject. I'm using CF 11,0,11,301867 on Server 2012 with IIS 8 for both the web service itself and the web service being called. I'm dumping the error structure in a custom error page and getting this: 1. The apps are currently housed on the same server, but were not originally. both servers have this error 2. The following folders give the following users full control: SYSTEM (the user running CF) and Everyone and a spot check of subfolders and files indicates the setting has been inherited. Essentially these folders are currently world writeable: C:\coldfusion11\cfusion\stubs C:\coldfusion11\cfusion\wwwroot C:\websites\myappfolder (the IIS root folder for the application) 3. the service is invoked from a CFC with one function that simply calls the web service and returns the result as follows: <cfinvoke webservice="#https://#hostname#/services/Servicename.cfc?wsdl" method="methodname" returnvariable="theResult" refreshwsdl='true'> <cfinvokeargument name="theSession" value="#arguments.theSession#" omit="true" /> </cfinvoke> a. The returntype of the returnvariable appears to be string. b. theSession is a string variable containing a series of letters, numbers and dashes, i can verify that it exists in the #Form# structure and is then passed to the cfc that invokes the service. c. It does not appear to make a difference whether refreshwsdl is true or false. 4. Another app on (previously) the same server is able to successfully consume the exact same service using apparently the exact same call. 5. The service is configured as follows: <cffunction name="servicename" access="remote" returnType="string" output="no"> <cfargument name='theSession' type='string'> <cfquery ... /cfquery> <cfset theResult = Queryname.columnname> <cfreturn theResult> </cffunction> 6. Axis2.xml is configured to accept https on port 443 and http on port 80 We tried the following: configure Axis2.xml to accept http and https connections and restart CF - no change Remove all stub folders, restart CF and call the application again. Remove all cfc-skeletons with the servicename in them, restart CF and try again set the folders referenced in 2. above to be world writeable and spot check sub folders and files Run the same query manually against the database (result is returned and appears valid) I am out of ideas. This code runs fine on local, dev and production configurations, but specifically on this server with the test configurations i'm getting this codeGenerationException error that points to a missing directory but isn't exactly clear WHICH directory is missing or what it should be. For giggles i set it to use Axis1 and when it generated the error it did so with an obscured foldername (for instance, i have five folders in .../cfusion/stubs and none of them contain the host name, only one was modified today and when i skip over and go looking for the subfolders there definitely isn't a CodeGenerationError.class file there, but the folder is world writeable. (here's the axis1 error's folder information) C:\ColdFusion11\cfusion\stubs\ https:\servername\services\servicename.cfc?wsdl_1\coldfusion\xml\rpc\CFCInvocationException.java Of note, everything in what APPEARS to be that folder is a class and not a java as well. (Once we tested this, i set it back to Axis 2 as the server is being called by five other apps.) Hopefully that is enough to start with, i can also say that the wsdl returns data whether i call it with cfhhtp or from a browser on the web server. It's not till the code is invoked that this directory not being a directory comes up. Let me know if i need to move this to another forum. And thanks. Message was edited by: Michelle Tracey
... View more
‎Mar 14, 2016
07:48 AM
I'm currently running two isolated domains which necessitates the need for two update servers anyway. I'm not going to be able to open a port between the domains, which would be my first choice. There is a VPN available that connects a portion of my local domain to the other isolated domain, but it's not all of the desktops and the connection is not 100% of the time. This separates them from the domain they started out on. I'm having a heck of a time getting any solution where i can push updates to all the pcs on my local domain without a LOT of trouble. I'm looking at the instructions on page 20-21 of the Flash Player 21 admin guide and wondering how flexible they are. Is it possible to modify the mms.cfg and list two different servers as the silentAutoUpdateServerDomain and allow Flash auto-updater to use the one that it can currently access.
... View more
‎Apr 25, 2011
02:10 PM
Since i did not need odbc to complete my project, i simply re-installed with none of the optional items (no odbc, no solr, search or .net extensions) and the administrator started working. I found an old note with a work-around for the beta version, but when i tried it, it did not appear to do what it claimed so i just installed barebones CF and was able to complete my task.
... View more
‎Apr 21, 2011
07:15 PM
Carl, All Ok. That helped some, although i've no idea how to fix the problem...here is what i found in coldfusion-out.log: [skipped for now] 04/21 21:22:14 Information [jrpp-1] - C:\ColdFusion9\logs\migration.log initialized 04/21 21:22:14 Error [jrpp-1] - Could not install the ODBC service. - The request has exceeded the allowable time limit Tag: cfoutput 04/21 21:22:16 Information [jrpp-1] - C:\ColdFusion9\logs\application.log initialized 04/21 21:22:16 Error [jrpp-1] - The request has exceeded the allowable time limit Tag: cfoutput The specific sequence of files included or processed is: C:\Inetpub\wwwroot\CFIDE\administrator\index.cfm, line: 232 04/21 21:22:16 [] - 04/21 21:43:26 Information [scheduler-1] - Run Client Storage Purge of note the odbc option was checked when i installed cf9...i made sure to install the 32 bit version...however i'm not entirely sure why the odbc service is required to continue.... the coldfusion-event.log contains onlyuser and info entries, so i'm leaving them out for now. I searched forums on the information in the log but also didn't find anything. ... so any ideas or links for where to go from here would be useful I have never had cf9 be so much trouble before...
... View more
‎Apr 18, 2011
06:19 PM
I feel incredibly stupid here, however i am unable to continue and i absolutely need to fix this immediately so i can finish my project on time. So here's full background. My website and CF9 install were on a drive that failed. Assuming that it would be faster and easier, i simply moved the iis and uninstalled cf9 assuming that i could easily re-install it to the appropriate iis install. This appeared to be the case, a fresh install worked up to the point where you have to log in to the CF Administrator. At which point it simply...timed out.... The following information is meant for the website developer for debugging purposes. Error Occurred While Processing Request The request has exceeded the allowable time limit Tag: cfoutput no matter what i do, i cannot log in to cfadmin. I've restarted cf, rebooted the machine. uninstalled, re-installed, you name it. it is a fresh download of cf9 32 bit for windows, so i'm not sure what exactly to do in order to fix it and i can't find anything in the knowledge base or forums about this problem, and i know my dev server does not run quickly, but this is completely new to me. What am i missing.
... View more
‎Jan 06, 2011
11:40 AM
OK, well there wasn't before i installed cf9. If you were looking on a Windows XP Pro laptop for 'a mail server running somewhere on that box' where would you look? And what would you look for?
... View more
‎Jan 06, 2011
09:16 AM
I have a question regarding mail server administration and behavior On CF8 i was able to set my mail server to 127.0.0.1. When i did this, the mail would simply go to my undelivr folder since CF is actually not an SMTP server. I am trying to do the same thing in CF9, however i must have the settings wrong, because my undelivr folder is empty (<cfdirectory>\Mail\Undelivr) I poked around, and according to the mailsent.log (<cfdirectory>\logs\mailsent.log) the mail is going out and the mail.log contains no errors(nor does exception), however it's then disappearing as the recipient does not receive the mail. I'd really like it to work as it did before, however i'm not sure what the settings should be for that in CF9. Is it possible? or do i need to install an SMTP server on my dev box in order to see the emails?
... View more
‎Mar 23, 2010
08:06 AM
OK. So i never found a good solution, although Adam's suggestions help find the problem, the solution may not be within my means, what i did find out was that every file uploaded from this machine (and this machine only) to any server running my code is being identified at some point as an itunes/ipl file. I'll be glad to find out where the problem was as i checked this computer's registry and it appeared to be correct, but didn't know how to see whether it was the browser or the server after that. I removed "accept" from the call and then ran the following code (which modifies the structure created by cf, see my note above) if the file extension matched my pre-arranged set of file extensions and threw an error if it did not (I did this is because i'm actually storing the mime type for when i output it, not because a filter that rejects by file extension didn't work for me) NOTE: macintosh and unix users may encounter issues because of this code on files without extensions. But they would have trouble with most measures as they are all based on file extension and thankfully, all of my admin users uploading documents are inside my firewall and i know they have windows pcs. Code: (note fileUpload is the variable created by cffile) <cfif fileUpload.clientFileExt eq "doc" and fileUpload.CONTENTSUBTYPE NEQ "msword"> <cfset fileUpload.CONTENTSUBTYPE = "msword"> <cfif fileUpload.contenttype neq "application"> <cfset fileUpload.contenttype = "application"> </cfif> </cfif> <cfif fileUpload.clientFileExt eq "ppt" and fileUpload.CONTENTSUBTYPE NEQ "vnd.ms-powerpoint"> <cfset fileUpload.CONTENTSUBTYPE = "vnd.ms-powerpoint"> <cfif fileupload.contenttype neq "application"> <cfset fileUpload.contenttype = "application"> </cfif> </cfif> <cfif fileUpload.clientFileExt eq "txt" and fileUpload.CONTENTSUBTYPE NEQ "plain"> <cfset fileUpload.CONTENTSUBTYPE = "plain"> <cfif fileupload.contenttype neq "text"> <cfset fileUpload.contenttype = "text"> </cfif> </cfif> <cfif fileUpload.clientFileExt eq "pdf" and fileUpload.CONTENTSUBTYPE NEQ "pdf"> <cfset fileUpload.CONTENTSUBTYPE = "pdf"> <cfif fileupload.contenttype neq "application"> <cfset fileUpload.contenttype = "application"> </cfif> </cfif> <cfif fileUpload.clientFileExt eq "wpd" and fileUpload.CONTENTSUBTYPE NEQ "wordperfect"> <cfset fileUpload.CONTENTSUBTYPE = "wordperfect"> <cfif fileupload.contenttype neq "application"> <cfset fileUpload.contenttype = "application"> </cfif> </cfif> <cfif fileUpload.clientFileExt eq "xls" and fileUpload.CONTENTSUBTYPE NEQ "vnd.ms-excel"> <cfset fileUpload.CONTENTSUBTYPE = "vnd.ms-excel"> <cfif fileupload.contenttype neq "application"> <cfset fileUpload.contenttype = "application"> </cfif> </cfif> <cfif fileUpload.clientFileExt eq "zip" and fileUpload.CONTENTSUBTYPE NEQ "zip"> <cfset fileUpload.CONTENTSUBTYPE = "zip"> <cfif fileupload.contenttype neq "application"> <cfset fileUpload.contenttype = "application"> </cfif> </cfif> <cfif fileUpload.contentsubtype eq "x-itunes-itlp"> <cfset fileupload.contentsubtype = "octet-stream"> </cfif> The final if is effectively a catch all for this specific problem which was that it was returning "application/x-itunes-itlp", and so if going through all that stuff on code with the proper file extensions doesn't work, then there's a bug in this code, it is, however, not the best way to handle it, and i hope to have time next week to follow Adam's advice and follow up WHERE the type is being modified. Adam, can you point to a resource explaining how to use JWS to upload files? I'm still new to the java underbelly.
... View more
‎Jan 26, 2010
06:54 AM
well, my registry has the correct content type for .xls, .doc and .pdf so that isn't the problem. i use accept but i also check the file extension after the file is uploaded...not sure how to virus check a file being uploaded...i'll hunt up some cf blogs to see examples. my real problem is that i really need that mime type to be correct as i use it at output as well. Is there any option OTHER than modifying the mime type in the structure after it's uploaded to convince the system these aren't itunes-itpl files?
... View more
‎Jan 25, 2010
02:08 PM
I can't explain the error, however the upload directory had been deleted by cvs. As soon as i put that back the code no longer felt all my files were itunes itpls. Note- this only worked locally. i did a chmod 777 on the production and staging directories machine and they're still telling me i'm upoading an itunes itlp file.
... View more
‎Jan 25, 2010
01:28 PM
i don't use this application often, but it has worked previously within the last month. However now my cffile is ALWAYS translating mime type to "application/x-itunes-itlp" even though it is sometimes a pdf, sometimes a word doc, sometimes an excel file etc. My <form> tag has enctype="multipart/form-data" The error is being thrown on the following line of code: <cffile action="upload" fileField="docUpload" destination="#dirPath#" nameConflict="overwrite" result="fileUpload" accept="application/vnd.ms-word, application/msword, application/vnd.ms-powerpoint, text/plain, application/x-pdf, application/pdf, application/vnd.wordperfect, application/vnd.ms-excel, application/zip, application/x-zip, application/x-zip-compressed, application/octet-stream, application/x-compress, application/x-compressed, multipart/x-zip"> and the error, no matter what file so far (except text files) is: The MIME type of the uploaded file application/x-itunes-itlp was not accepted by the server. My question: who decides what mime type a file has? is it the browser or the cffile tag? If it's the browser, which i'm starting to suspect, is it something i can change in my own browser? (I have both firefox 3.5.7 and IE 6) if it's the cffile tag, can i change how it behaves?
... View more
‎Dec 18, 2009
02:25 PM
I've done a bit of research on Cold fusion scopes, but i still am a bit confused. I'd really appreciate it if somebody corrected my assumptions outlined below. Server scope is part of CF, it persist based on a setting in CF Admin and is only re-created by re-starting cold fusion at the server level. - based on it's name, it is tied to a single server in a cluster. so server.whatever is the same for anybody hitting the server. Application scope is part of CF, it persists based on a setting in CF Admin and is re-created whenever the 'onApplicationStart' function is called in CF. it is less persistent than server but more persistent than session. It is also strongly tied to a single server in a cluster. This is a shared scope variable. Each different application run on a server has its own set of application variables, therefore this variable is less persistent than server. if i have two applications on my server, than i can easily have two different versions of application.whatever Session Scope is a part of CF, it exists and persists based on a setting in the application.cfc. When J2EE sessions are used, it persists across servers in a cluster. Each session in an app can have it's own copy of the variable, therefore it is less persistent than an application variable. Request Scope is a part of CF. It's the one i'm having the most trouble understanding ...based on its position in the application.cfc it is less persistent than application, however how many request variables are created? Are they created anew so that your request.whatever and my request.whatever can be different without a problem and thus less persistent than session? or is it instead more persistent than session but less than application. If i create an variable in request, and have say five users (each with one session) on my application page at a time, how many request variables couldi have? Variables scope is a part of CF as well. any variable, structure, recordset or scope created outside of the above but inside of a page request will exist within variables. These definitely persist only from the start of a page or fuseaction call to the end of it. variables scope appears to be discarded between say, index.cfm and page1.cfm (in addition, if you and i both call index.cfm, we have two different sets of variables within variables scope where the system is concerned) on a particular site. I am particularly interested in how exactly request and variables scope are actually different from each other. i noted that request does NOT appear when i dump variables, nor variables when i dump request
... View more
‎Aug 06, 2009
06:30 AM
I'm not sure what these posts have to do with form accessibility although it could be argued that they do speak to 'what to do when the users turn off JS' so i did some research. I was just really surprised nobody could already answer this. I took an accessible form and printed the source, then i took that form and replced it with cfinputs, cfselects, cfform etc and viewed the source..finally i did a line by line comparison of the two pages. It was identical. So if i use cfform/cfinput with type="html" there is no reason why the form itself would not be accessible. Our system has a requirement for realtime validation. We expect to use both client and server validation for the exact reasons listed in the followups above. Therefore, in case anybody is looking specifically to see if cfform type html generates accessible html the answer is "Yes, just remember to validate on the server as well as the client"
... View more
‎Aug 03, 2009
03:00 PM
Hey all I was sure i posted this last week but apparently i never clicked submit (duh) for aeons we have been writing our own JS validation for form fields because use of CFFORM (html)/CFINPUT for basic input types did not produce HTML that was accessible and therefore we could not meet government contact requirements unless we coded a whole other page with all that JS anyway. However, i won't even say how many years have passed, and versions come since we determined that, and well, i'd kinda like to revisit it because i HATE validating with JS with a passion. So, for those of you who do goverment sites, do any of you use CFFORM(html) and CFINPUT and get accessible HTML out of it? If so, what level? (we NEED to meet section 508, but would like to use W3C accessible 1 or 2 if we can)
... View more
‎Mar 06, 2009
01:39 PM
I have a requirement to generate pdfs that have two columns.
I have done so using both div tags (good html) and tables (bad
html) and both of the options have the same problem. Both times i
have simply generated a page, i'm not currently forcing pagebreaks,
it seemed to me like it oughtn't be necessary. Yet.
Sometimes when you reach the bottom of the page and the
cfdocument has to break the page, it chooses to do so in the middle
of a line in one column or another. (the lines are not currently
alingned in the two columns as i've no clue how i'd do that.
Is there a trick or a setting or an element that forces
cfdocument to look very closely at where it's breaking or do i need
to find some way to align the text in the columns or force
pagebreaks?
Thanks for any help.
If you need to see a sample, just email me and ill send you
one.
... View more
‎Feb 12, 2009
11:34 AM
I have a cfdocument that makes heavy use of Arial Black (oh
how i hate Arial Black) in inline styles, however when that font
ins rendered in MS Word and converted to PDF using Acrobat the font
is NOT the same as in the cfdocument generated pdf.
I am on a windows xp server running locally and it Arial
black is being widened. the Word "Brownfields" is 4.75cm in the
cfdocument and 4.5cm in the word/pdf. For times new roman, the word
"city" is just over .5cm in the cfdocument and just under .5cm in
the word/pdf.
Is there a calculation i can use for scaling and/or some css
for letterspacing that i can use to equalize this?
... View more
‎Feb 11, 2009
05:52 AM
Hi there experts
I have a problem with a pdf i'm trying to display with
footer.
i am using the following code to create a variable...
<cfsavecontent variable="myfooter">
<hr style="clear:both;">
<div style="width: 33%;padding-top: 5px;padding-bottom:
5px;font-family: Arial, Helvetica, sans-serif;font-size:
125px;float: left;">My Agency<br/> Washington, DC
20450</div>
<div style="width: 33%;padding-top: 5px;padding-bottom:
5px;padding-left:10px;padding-right: 5px;font-family: Arial,
Helvetica, sans-serif;font-size:
12px;float:left;">Department</div>
<div style="float: right;text-align: right;width:
33%padding-top: 5px;padding-right: 20pxpadding-bottom:
5px;font-size: 12px;font-family: Arial, Helvetica,
sans-serif;">#fs_epa_pub_no#<br/>
#dateFormat(fs_epa_pub_date, "mmm yy")#</div>
<br /><br />
<hr style="clear:both;">
</cfsavecontent>
and the following to display it within my cfdocument and
cfdocument section.
<cfdocumentitem type="footer">
<cfoutput>#myfooter#</cfoutput>
</cfdocumentitem>
Now, if i remove the cfdocumentitem thang, it displays
properly at the appropriate size. But as soon as i wrap it with a
cfdocumentitem it shrinks down to a size that is nigh on to
unreadable. You can even see in my snippet that i attempted to
affect the font size as large as 125px and while the other
formatting is rendering (the text that is to be right aligned is,
the text that is to be in the center is however, no matter what i
do, i cannot affect the text size. Can you make recommendations? Is
there a fixed size for a header that is affecting the font size?
Any suggestions?
... View more