Re: trigger onMissingTemplate in CF for directory requests
onMissingTemplate only fires for ColdFusion processed template requests (.cfm, .cfc, etc). Generally a directory request will need to be handled by a 404 handler. I haven't tested this, but your issue may be your web server's default template handler. Most web servers are setup to, by default, serve index.html first, and then other defined templates (like index.cfm). You can control that lookup order, by moving index.cfm to the front of the pack. But, again, it may be that you'll just have to point your 404 page handler to a custom CF template to parse the url and treat the result. Steve 'Cutter' Blades Adobe Community Professional Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer http://cutterscrossing.com Co-Author Learning Ext JS 3.2 Packt Publishing 2010 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book The best way to predict the future is to help create it On 2/25/2013 8:52 PM, Matthew Smith wrote: I am using ses urls, so a product page is linked as: mysite.com/art/art-product-2/ Right now I am getting the defualt 404 page from the web server(not CF). A request for: mysite.com/art/art-product-2/index.cfm works, triggering the onMissingTemplate in Application.cfc. Is there a way to configure CF to capture requests for a directory as well? I guess it might be a web server config issue. I'm running apache with .mod_rewrite for the site. Thank you. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354693 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
full file information
I've played with cfdirectory and cffile as well as their functional equivalents but none of them give me 'all' of the information available about a file. It'll give me the lastmodified date but not the created or accessed dates. Does anyone know of a cfx, java object, or something else that will get me all of the data available from a file? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354694 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: full file information
getFileInfo() On Tue, Feb 26, 2013 at 5:57 AM, Michael Dinowitz mdino...@houseoffusion.com wrote: I've played with cfdirectory and cffile as well as their functional equivalents but none of them give me 'all' of the information available about a file. It'll give me the lastmodified date but not the created or accessed dates. Does anyone know of a cfx, java object, or something else that will get me all of the data available from a file? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354695 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: full file information
Only returns Lastmodified, not created or lastaccessed. On Tue, Feb 26, 2013 at 6:59 AM, Raymond Camden raymondcam...@gmail.comwrote: getFileInfo() On Tue, Feb 26, 2013 at 5:57 AM, Michael Dinowitz mdino...@houseoffusion.com wrote: I've played with cfdirectory and cffile as well as their functional equivalents but none of them give me 'all' of the information available about a file. It'll give me the lastmodified date but not the created or accessed dates. Does anyone know of a cfx, java object, or something else that will get me all of the data available from a file? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354696 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
danger of Flash files?
What danger is there in having Flash FLV files in with your application code? I know about Flash player vulnerabilities, but are there any issues with the FLV files themselves? Generally we like to keep code and content separate, but the question came up about security, too. thanks, Chris ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354697 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
error: [Macromedia][Oracle JDBC Driver](Internal Error) Message 1018 not found
error: [Macromedia][Oracle JDBC Driver](Internal Error) Message 1018 not found Anybody know what this error is? It happened after a request with 2 queries ran for a very long time (basically, the query is hung and the ColdFusion request is frozen). - A DBA checked the query in a SQL Optimizer and it ran fine. - One query returned 248 rows, the other query never returned anything (see below). - The user got a generic InternetExplorer timeout error page. Thank you, Chris Message [Macromedia][Oracle JDBC Driver](Internal Error) Message 1018 not found. SQLState HY000 StackTrace java.sql.SQLException: [Macromedia][Oracle JDBC Driver](Internal Error) Message 1018 not found. at macromedia.jdbc.base.BaseExceptions.createException(Unknown Source) at macromedia.jdbc.base.BaseExceptions.getException(Unknown Source) at macromedia.jdbc.oracle.net8.OracleDataProvider.receivePiggybackPacket(Unknown Source) at macromedia.jdbc.oracle.net8.OracleDataProvider.readByte(Unknown Source) at macromedia.jdbc.oracle.net8.OracleNet8NSPTDAPacket.getNextTTCCode(Unknown Source) at macromedia.jdbc.oracle.OracleImplStatement.processBufferedReply(Unknown Source) at macromedia.jdbc.oracle.OracleImplStatement.fetchNext(Unknown Source) at macromedia.jdbc.oracle.OracleImplStatement.fetchNext2(Unknown Source) at macromedia.jdbc.oracle.OracleImplStatement.execute(Unknown Source) at macromedia.jdbc.base.BaseStatement.commonExecute(Unknown Source) at macromedia.jdbc.base.BaseStatement.executeInternal(Unknown Source) at macromedia.jdbc.base.BaseStatement.execute(Unknown Source) at com.intergral.fusionreactor.jdbc.h.execute(StatementSurrogate.java:55) at coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:348) at coldfusion.sql.Executive.executeQuery(Executive.java:1364) at coldfusion.sql.Executive.executeQuery(Executive.java:1127) at coldfusion.sql.Executive.executeQuery(Executive.java:1058) at coldfusion.sql.SqlImpl.execute(SqlImpl.java:341) at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:915) at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:590) at cfsearchinspections2ecfm757494456.runPage(F:\pool\content\Scripts\RH\search\searchinspections.cfm:143) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfdefault2ecfm2142669457.runPage(F:\pool\content\Scripts\RH\search\default.cfm:38) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:428) at com.intergral.fusionreactor.filter.FusionReactorFilter.d(FusionReactorFilter.java:262) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:171) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at
Re: full file information
Java's NIO gives you that info, but requires JDK7. If you're on Windows, you could use the File class to get that info: http://msdn.microsoft.com/en-us/library/system.io.file.aspx If on Linux or other *nix, you can use cfexecute and bash stat command, and parse the output. Billy Cravens bdcrav...@gmail.com On Feb 26, 2013, at 6:06 AM, Michael Dinowitz mdino...@houseoffusion.com wrote: Only returns Lastmodified, not created or lastaccessed. On Tue, Feb 26, 2013 at 6:59 AM, Raymond Camden raymondcam...@gmail.comwrote: getFileInfo() On Tue, Feb 26, 2013 at 5:57 AM, Michael Dinowitz mdino...@houseoffusion.com wrote: I've played with cfdirectory and cffile as well as their functional equivalents but none of them give me 'all' of the information available about a file. It'll give me the lastmodified date but not the created or accessed dates. Does anyone know of a cfx, java object, or something else that will get me all of the data available from a file? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354699 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ExactTarget experience
Hello guys, I am working with ExactTarget trying to make the triggered mail xml formatted file to transact with their servers but haven't had any luck thus far. It appears they have no experience with Coldfusion so help is non existant at this time. Does anyone have any experience with ExactTarget that could shed light on my issue? Thanks, Charlie ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354700 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Weird issue with SOLR and cfindex - it won't index more than 10k rows
I did more digging into the Solr config XML for my collection, and found this in the updateHandler: autoCommit maxDocs1/maxDocs !-- maxTime1000/maxTime -- /autoCommit That seems to allow me to index more documents. Solr ended up not being able to do what I needed so I've used SQL full-text indexing instead. Just wanted to ask again if there's anyone out there who's had experience with this before On 25 February 2013 15:19, Edward Chanter firew...@cc.uk.com wrote: I'm trying to create a searchable index of database content using SOLR. It's a really simple implementation. The problem is that it won't let me index more that 10,000 rows of data. I can do 10k no problemo but as soon as I try to increase the number I get an HTTP 500 error from IIS, not CF, which also makes no sense. I'm running CF10/IIS 7.5 and the code lives within a CFWheels 1.1.8 framework. I've included my code below but it's as basic as things get so I don't think the code is the problem. cftry cfcollection action = create collection = st_items engine = solr path = PATH_TO_\collections\ cfcatch type=any /cfcatch /cftry cfquery name=itemList datasource=#application.dsn# maxrows=2 select * from items where deletedat IS NULL /cfquery cfindex query=itemList collection=st_items action=refresh key=id title=title body=description,implications,whatchanging,whyimportant,textcapture If anyone has any ideas I'd be most grateful for your insight. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354701 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: trigger onMissingTemplate in CF for directory requests
How do I get the calling template though? I was using CGI.PATH_TRANSLATED but the value for that is always 404.cfm. On Tue, Feb 26, 2013 at 5:38 AM, Steve 'Cutter' Blades cold.fus...@cutterscrossing.com wrote: onMissingTemplate only fires for ColdFusion processed template requests (.cfm, .cfc, etc). Generally a directory request will need to be handled by a 404 handler. I haven't tested this, but your issue may be your web server's default template handler. Most web servers are setup to, by default, serve index.html first, and then other defined templates (like index.cfm). You can control that lookup order, by moving index.cfm to the front of the pack. But, again, it may be that you'll just have to point your 404 page handler to a custom CF template to parse the url and treat the result. Steve 'Cutter' Blades Adobe Community Professional Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer http://cutterscrossing.com Co-Author Learning Ext JS 3.2 Packt Publishing 2010 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book The best way to predict the future is to help create it On 2/25/2013 8:52 PM, Matthew Smith wrote: I am using ses urls, so a product page is linked as: mysite.com/art/art-product-2/ Right now I am getting the defualt 404 page from the web server(not CF). A request for: mysite.com/art/art-product-2/index.cfm works, triggering the onMissingTemplate in Application.cfc. Is there a way to configure CF to capture requests for a directory as well? I guess it might be a web server config issue. I'm running apache with .mod_rewrite for the site. Thank you. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354702 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Weird issue with SOLR and cfindex - it won't index more than 10k rows
The 10k records entry is only for autocommit which means that as soon as your collections reaches 10k uncommitted docs it will commit them and then start queuing up more. What could be happening is that you have more than 10k but less than 20k documents which would leave these documents uncommitted. Run the following after indexing. cfindex action=commit collection=st_items and see if that commits the remaining documents. I did more digging into the Solr config XML for my collection, and found this in the updateHandler: autoCommit maxDocs1/maxDocs !-- maxTime1000/maxTime -- /autoCommit That seems to allow me to index more documents. Solr ended up not being able to do what I needed so I've used SQL full-text indexing instead. Just wanted to ask again if there's anyone out there who's had experience with this before On 25 February 2013 15:19, Edward Chanter firew...@cc.uk.com wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354703 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm