CFZIP Bug in Coldfusion 11
CFZIP Bug in Coldfusion 11:
<cfzip action="unzip" ... storepath="no"> does not work as expected. The files are unzipped to the entry path and not to the root level.
My code worked fine with Coldfusion 9, but not with Coldfusion 11.
Best regards
Jürgen
Looks like you filed a bug report for this. Thank you!
-Carl V.
Similar Messages
-
File Upload Bug in ColdFusion 9
I have an application that allows users to upload files. Files lower than 200KB can be uploaded with no problem. Anything greater than 200KB will not push through. There is no error message but the application just hangs. Increased request timeout to 5 mins and Maximum Size of Post Data to 10MB but issue still persist.
This application worked without issues in CF8.My first thought was the limit of post data in the cf admin (at the bottom of the Server Settings section), but that can only be set to MB not KB, so that is probbly not the issue, but I will suggest you check it any way.
When you state that it worked well on CF8, You mean that :
1. The SAME server had CF-8 on it and you upgraded to 9 ?
2. You moved the application that was on a CF8 server to a CF9 server ?
Just trying to get as much info as possible to try and help you out ...
Posting a link (if possible) will be greate as well .... -
Adobe ColdFusion Builder Bugbase: Vote for Some of these Bugs to be Fixed
As I'm sure you know CF Builder 3 isn't quite perfect yet and the Adobe Bugbase has a not-so-great search interface so I thought I would share some issues I reported recently which have impacted my workflow with the product. Perhaps some of my fellow developers have also run into these annoyances. If you have, or if you feel like supporting these issues to get Adobe's developers to fix them, I encourage you to also leave a note on each bug to increase the likelihood that they get fixed in the next release. Feel free to also post links to bugs/feature requests you've submitted and perhaps the community will also support your bug reports as well.
Below please find the name and link to each bug/feature request. To vote for the bug please click the "my vote" button at the bottom right corner of the page.
Bug 1:Code Coloring Breaks When Comments Used Within Function with Named Arguments
Bug#3831825 - Code Coloring Breaks When Comments Used Within Function with Named Arguments
Bug 2: ColdFusion Builder 3.0 Hangs When Using Code Assist on Large Files
Bug#3833130 - ColdFusion Builder 3.0 Hangs When Using Code Assist on Large Files
Note: Adobe has asked for code samples on this one. If you have a large CFM or CFC file that hangs when trying to provide suggestions please upload your file to the bug report.
Feature Request 1: Code Suggest Enhancement: Ability to disable code suggest for variables / tags independantly
https://bugbase.adobe.com/index.cfm?event=selectBug&CFGRIDKEY=3854326
Note: This one is related to the above bug (bug #2). I believe that if we can turn on/off specific types of suggestions we can improve the performance when using code assist. This one will need a lot of votes since it's a feature request.
Bug 3: ColdFusion Builder Ignores CFELSEIF/CFELSE Tags in Outline
https://bugbase.adobe.com/index.cfm?event=selectBug&CFGRIDKEY=3865754Thanks Carl. I haven't tried Twitter yet as I don't really have any followers that are fellow developers. I've been looking for other people with relevant problems though on forums (this one, stackoverflow, etc...) and when I encounter them I pass along my bugbase submissions.
-
Coldfusion 8 /Apache Connector Bug??????
I have wasted almost 3 weeks now on this problem. It will
cost us $500 to get a answer if this is a bug on Coldfusion 8.
Almost ready to jump this ship and go to the Open source camp!
Install went fine.
Running Red Hat 4AES
Apache 2.0
ColdFusion 8
I rebuilt the connector about 10 times now....using
the following document
http://kb.adobe.com/selfservice/viewContent.do?externalId=121a0b29&sliceId=2
when I try to start Coldfusion I get the following error....
The ColdFusion 8 server is starting up and will be available
shortly.
======================================================================
Running the ColdFusion 8 connector wizard
======================================================================
Configuring the web server connector (Launched on the first
run of the ColdFusion 8 start script)
Running apache connector wizard...
=======================================
There was an error while running the connector wizard
Connector installation was not successful
=======================================
======================================================================
ColdFusion 8 has been started.
ColdFusion 8 will write logs to
/usr/coldfusion8/logs/cfserver.logCould use similar assistance with our CF8 Standard upgrade.
I have spent a week trying to upgrade our dedicated server
from CFMX7 to CF8 with no success. I submitted an Adobe support
request ticket (Case #0180044098) about five days ago, but am still
waiting for them to help me resolve the problem. Thought I would
post this in case someone can offer assistance while I am waiting
for the Adobe school solution.
Our server configuration is as follows:
-- LINUX version: REDHAT Enterprise 4 i686 on standard - WHM
X v3.1.0
-- Apache version: 2.0.63
-- MySQL version: 5.0.45-community
-- PHP version: 5.2.5
-- WebHost Manager: version 11.15.0
-- cPanel Version: 11.18.1-RELEASE, cPanel Build: 20683
Here is what I have done most recently:
(1) Uninstalled CF8 (for about the fourth time).
(2) Deleted /opt/coldfusionmx7 and /opt/coldfusion8
directories.
(3) Restarted Apache, ensured the httpd-devel version of
Apache was installed.
(4) Reinstalled CF8 (for about the 5th time); it is running
and appears to have installed successfully (except for Apache
connectors).
(5) Modified
/opt/coldfusion8/bin/connectors/apache_connector.sh as follows:
../../runtime/bin/wsconfig \
-server coldfusion \
-ws apache \
-dir /etc/httpd/conf \
-bin /usr/local/apache/bin/httpd \
-script /usr/local/apache/bin/apachectl \
-coldfusion
(6) Ran ./wsconfig -uninstall to remove old/incorrect
connectors.
(7) Ran ./wsconfig per the information below which indicated
that JRun Apache connector install was successful.
Here are the results of running the ./wsconfig ...
[root@_______ bin]# ./wsconfig -uninstall
[Wed Mar 05 01:15:06 2008] [warn] NameVirtualHost *:80 has no
VirtualHosts
Restarted Apache server
The Apache connector was removed from /etc/httpd/conf
[root@_______ bin]# ./wsconfig -server coldfusion -ws Apache
-dir /etc/httpd/conf -bin /usr/local/apache/bin/httpd -script
/usr/local/apache/bin/apachectl -coldfusion -v
Found JRun server coldfusion at 127.0.0.1:2930
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
Using Apache binary /usr/local/apache/bin/httpd
Using resource gcc3/mod_jrun20.so.20020903
Server version: Apache/2.0.63
Using Apache control script /usr/local/apache/bin/apachectl
Parsing Apache configuration file /etc/httpd/conf/httpd.conf
Exec'ing chmod 777 /opt/coldfusion8/runtime/lib/wsconfig/1
Set permission to 777 on
/opt/coldfusion8/runtime/lib/wsconfig/1
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
Using resource gcc3/mod_jrun20.so.20020903
Server version: Apache/2.0.63
Exec'ing chmod +x
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun20.so
Set permission to execute on
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun20.so
Created file
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun20.so
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
Using resource gcc3/mod_jrun20.so.20020903
Server version: Apache/2.0.63
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
Using resource gcc3/mod_jrun20.so.20020903
Server version: Apache/2.0.63
Wrote file /etc/httpd/conf/httpd.conf
Added JRun configuration to Apache configuration file
/etc/httpd/conf/httpd.conf
Created file
/opt/coldfusion8/runtime/lib/wsconfig/1/README.txt
Wrote file
/opt/coldfusion8/runtime/lib/wsconfig/wsconfig.properties
Exec'ing /usr/local/apache/bin/apachectl restart
[Wed Mar 05 01:21:18 2008] [warn] NameVirtualHost *:80 has no
VirtualHosts
Restarted Apache server
The Apache connector was installed to /etc/httpd/conf
[root@_______ bin]#
Although everything appears to have installed correctly, our
server and website will still not recognize or process .cfm files.
So I am still unable to even access CF8 Administrator and our site
will not process Coldfusion files, just asks me, "Do you want to
save this file, or find a program online to open it?"
Never had any problems with CFMX7 install or operation, so
this is most disconcerting.
I am not a happy camper.
Any suggestions while I am waiting for my Adobe customer
support ticket to be answered will be most appreciated.
Thanks. -
Query of queries problem or bug
Hello Everyone,
I have used cfdirectory to get a list of files. As the result
I receive query with the files.
Then I want to search it using query of queries. I' ve found
a problem and I wonder if it is a bug of Coldfusion or perhaps
wrong usage of QoQ. The thing is that the files that I have are
using '_' and then are followed by number of week. It seems that
searching something like this '%_6' returns results *_*6. See
attached code.
Thanks for all answers in advance.> I think you'll find "_" is a single-char wildcard when
used with the LIKE
> operator.
Found out how to escape it:
WHERE Name LIKE '%[_]6%'
I'm glad you brought this up... I didn't know about this
until I looked @
your issue. That's my new thing learned for the day: I can go
to the pub
now ;-)
Adam -
Date Time in Coldfusion at Daylight Saving
Hi
In coldfusion, I have problem creating Date Time using CreateDateTime when the daylight saving switch. For example
CreateDateTime(2011,3,13,2,0,0) gives error.
Also if you do like this
DateAdd('h',1,CreateDateTime(2011,3,13,1,0,0)) gives "2011,3,13,3,0,0" ie instead of 2AM it returns 3AM. This is happening every daylight saving switch time.
This is a bug in coldfusion?
It should be fixed by Coldfusion.
ThanksOn 3/17/2011 12:39 AM, Paresh_Patel said:
>
When we loop through the 24 hours on daylight saving day e.g
>
<cfset startDate = CreateDateTime(2011,3,13,0,0,0)>
>
<cfoutput>
<cfloop from="1" to="22" index="dayNo">
<cfset startDate = dateAdd('h', 1, startDate)>
#hour(startDate)#<br>
</cfloop>
</cfoutput>
>
This will show wrong hours (2 is missing)
and that means you've fallen into timezone hell. -
Intermittent problem in Coldfusion 9, BlazeDS with Java Service class and CFCProxy
If that title doesn't scare you, you might be able to help.
I believe there is a bug in Coldfusion 9's version of CFCProxy.
Tech Stack:
Flex Application
BlazeDS (stock with CF9)
Java Service class (java-amf BlazeDS endpoint)
Coldfusion business tier, invoked by the Java Service class using CFCProxy
Tomcat 6 on Java 1.6
Linux or Windows servers, both exhibit same behavior
SQL Server database
Problem:
When Flex calls a Java service method through BlazeDS that invokes a Coldfusion CFC through CFCProxy, and the method called in the Coldfusion CFC includes a large query (10 fields, 1000+ records returned), we intermittently (1 out of ~5 times) receive the following exception:
java.lang.NullPointerException
at coldfusion.runtime.NeoPageContext.popBody(NeoPageContext.java:1925)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:57)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:437)
at coldfusion.cfc.CFCProxyFilter.invoke(CFCProxyFilter.java:56)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.cfc.CFCProxy.doInvoke(CFCProxy.java:281)
at coldfusion.cfc.CFCProxy.invoke(CFCProxy.java:193)
at com.lampo.mapping.service.MapToolWebService.makeCfcProxyCall(MapToolWebService.java:1326)
at com.lampo.mapping.service.MapToolWebService.getTerritoryList(MapToolWebService.java:609)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)
at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)
at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1005)
at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)
at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)
at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:353)
at coldfusion.flex.ColdfusionMessageBrokerServlet.service(ColdfusionMessageBrokerServlet.jav a:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:71)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:662)
Attempts to diagnose:
These things remove the problem:
CF8 works perfectly with the identical code, never fails.
Calling the same Coldfusion CFC method with the large query (10 fields, 1000+ records returned) from another CFC 100+ times never fails.
Using a Coldfusion service class (a "my-cfamf" BlazeDS endpoint) never fails. However, we need to use a Java service class because we are using ~40 Java value objects (VOs) that correspond to ~40 auto-generated Actionscript VOs. BlazeDS won't correctly deserialize the Actionscript VOs into the Java VOs with a Coldfusion service class.
If I replace the large query with a Sleep(5000) instead, it never fails.
These things don't remove the problem:
Using the latest Microsoft JDBC driver doesn't help.
Even if the Coldfusion method returns an empty resultset (i.e., just calls the query and doesn't do any other work or return anything), the call still fails intermittently.
If the Coldfusion CFC with the method in question is instantiated and stored in SERVER scope as a singleton across multiple requests with CFCProxy, doesn't help.
Different large (1000+ record queries) all fail in the same way.
Caching the query doesn't help
Changes in the datasource configuration doesn't help
Using the older version of BlazeDS doesn't help
With all of these tests, I believe it comes down to a problem in the combination between CFCProxy and large queries. There may be more to it, but that is what we've narrowed it down to.
Any insight would be very welcome.Hi Frank
The page is ADF bound, I've added the page source and the adfc-config source below :
Page
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:commandButton text="commandButton 1" id="cb1"
actionListener="#{test.testws}"/>
</af:form>
</af:document>
</f:view>
</jsp:root>adfc-config
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<view id="view1">
<page>/view1.jspx</page>
</view>
<managed-bean id="__4">
<managed-bean-name id="__3">test</managed-bean-name>
<managed-bean-class id="__2">ch.mit.test.test</managed-bean-class>
<managed-bean-scope id="__1">request</managed-bean-scope>
</managed-bean>
</adfc-config>It seems to be the same sort of problem as in Re: Error in ADF Web Service Connection
Regards
Paul -
Is this a bug or a "security feature" ?
I had a nagging bug in coldfusion where every once in a while
when people entered text and I inserted it into an MS SQL database
it would throw the error "Statement is not allowed." I got a clue
when a customer put in the words drop and program in their
description for something, when I took the words out it worked
fine. I gave the datasource permission to grant, revoke, drop, ect
ect in the advanced datasource options and poof, it works! So is
this a bug or some kind of injection attack prevention? The text
was actually formatted in an FCK editor and put within single
quotes in an UPDATE statement.chazman113 wrote:
> I had a nagging bug in coldfusion where every once in a
while when people
> entered text and I inserted it into an MS SQL database
it would throw the error
> "Statement is not allowed." I got a clue when a customer
put in the words drop
> and program in their description for something, when I
took the words out it
> worked fine. I gave the datasource permission to grant,
revoke, drop, ect ect
> in the advanced datasource options and poof, it works!
So is this a bug or some
> kind of injection attack prevention? The text was
actually formatted in an FCK
> editor and put within single quotes in an UPDATE
statement.
>
It is not a bug, and you have definitely disabled a lot of
security by
opening up your DSN like that. It helps to look at this how
each of
various systems look at it.
On the ColdFusion end, it is just working with strings. The
security
settings in the administrator are basically string searches.
I.E.
Don't allow these problematic sub-strings in the SQL string.
Anyone who
has worked with more then the most basic string manipulation
understands
how convoluted it quickly becomes and how nigh impossible it
is to make
up a foolproof rule.
Once the database receives the query string, it tokenizes
what it
receives and starts processing the commands. If one just uses
<cfquery...> than everything is received as one long
string and the
database must make it's best attempt to determine which parts
of the
strings are commands and which parts are parameters and which
parts are
data. It is relatively easy to confuse the database in this
process so
that information meant to be data is processed as a command.
This is
the essence of a SQL injection attack.
If one uses the <cfqueryparam...> tag or stored
procedures, the
developer more explicitly defines which parts of the SQL is
commands and
which part is data. Now the database knows what part of the
SQL is data
and it does not even try to tokenize it for commands.
Thus the simpler and more secure solution to your original
problem would
be to use <cfqueryparam...> for these fields that could
potentially and
legitimately contain strings that could look like SQL
commands so that
the database would know to not even look there. Generally its
a best
practice to always use <cfqueryparam...> tags in your
ColdFusion SQL. -
Deserializtion error, coldfusion 9/flex 3.5 VO's and ORM
Lateley I've been receiving the following error when trying to send a VO to Coldfusion. The CFC it's bound to is an ORM component that has foreign key properties, so I don't know if that has anything to do with it. The same VO seems to work find when retrieving information from the database, I just can't send it back.
As far as I know I'm using the new format for the services-config file for CF 9, which I read on another post can cause the problem. Attached is the CFC, the Actionscript VO, the services-config and the code that calls the remote object in a zip file. Below is the error.
[RPC Fault faultString="Error deserializing client message." faultCode="Client.Packet.Encoding" faultDetail="null"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.5.0\frameworks\p rojects\rpc\src\mx\rpc\AbstractInvoker.as:290]
at mx.rpc::Responder/fault()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\rpc\Responder .as:58]
at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:103]
at NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.5.0\frameworks\projects\rpc\ src\mx\messaging\channels\NetConnectionChannel.as:586]
at mx.messaging::MessageResponder/status()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx \messaging\MessageResponder.as:222]
Thanks for any help! I've been stuck on this the past couple of days!I figured out what is happening, but I don't know how to get around it. I created a stripped down application for testing purposes. I then went through my person vo and CFC one property at a time to see where the error occurred. I found out it occurred on the email property. My email property is defined thusly in the CFC:
<cfproperty name="email" type="string" validate="email" column="EMAIL"/>
Looks innoccous enough, right? Well I have validate="email" in the property so it expects a valid email and only a valid email. Therefore if you pass a null in it or an empty string, it barfs and you get the deserialization error, at least I do. If I take out the validate, it works fine. If I pass in a valid email address with the validate, it works fine.
This brings up a few questions:
1. Is there a way around this? Can I pass in a null value with a property that has validate="email"?
2. Why do I get a deserialization message and not a "Invalid email" type of message?
3. Is this a bug in Coldfusion 9?
Attached is my stripped down application and services-config.xml. I would appreciate someone testing this and seeing if they get the same thing. Thanks! -
Cannot get all rows from cfProcResult
We upgraded one of our servers (A) from CF 6 to 7.02. Another
server (B) has CF 7.01.
On server B (CF 7.01) the code works (below), all rows of
each dataset are returned.
Now on server A (CF 7.02) all of the resulting datasets have
only the first record in them. If I add maxrows="-1" to each of the
cfProcResult tags there is no change. If I change that to
maxrows="100" then I can get the rows up to 100.
Is this a bug or is there a different means to return all
rows?It think its a bug. I got the same results under MX 7.0.2.
The topic of maxrows recently came up on another thread. I
did some searching and according to TechNote 18339 there was a
change with maxrow
"<cfquery maxrows=N> bug. ColdFusion MX (until ColdFusion
MX 7.0.1 CHF2) didn't pass maxrows to the underlying driver
(statement.setMaxRows())"
Given the results you're getting, it sounds like CF is
applying the maxrow to all of the resultsets, not just the one
where maxrows was declared. I suspect cfstoredproc's usage of
statement.setMaxRows() is incorrect. Thats just a guess though.
Bottom line, I think you'll need handle it manually.
Personally, I would recommend placing the row count logic in the
stored procedure (if possible). The overall results will be more
consistent and you won't have to worry about this kind of issue
again.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000314.htm
http://www.remotesynthesis.com/blog/index.cfm/2006/3/23/Maxrows-Issue-in-CFQuery -
Cannot get all updates from iTunes software
Hello. There is a strange problem.
Sometimes, when I open iTunes from my computer, a small number will be displayed after "Apps".
When I click the "Apps", I can also see that there are some updates available from the bottom link text.
But after I click that bottom link, I cannot get all programs which need to be update listed. When I update all listed, iTunes still says there are some apps to be updated, but when I click that bottom link, only a text "No updates are currently available. To check for updates for another Apple ID, sign in with that Apple ID."
At that time, I can get all updates from my iPhone - Apple Store. So all have to do, is update all apps from my iPhone and sync it back. But if some apps are not installed on this iPhone, I have no way to update it.
BTW, I've tried to click Store - Check for available downloads from iTunes on my computer. It's useless in this case.
Any solution? Thanks.It think its a bug. I got the same results under MX 7.0.2.
The topic of maxrows recently came up on another thread. I
did some searching and according to TechNote 18339 there was a
change with maxrow
"<cfquery maxrows=N> bug. ColdFusion MX (until ColdFusion
MX 7.0.1 CHF2) didn't pass maxrows to the underlying driver
(statement.setMaxRows())"
Given the results you're getting, it sounds like CF is
applying the maxrow to all of the resultsets, not just the one
where maxrows was declared. I suspect cfstoredproc's usage of
statement.setMaxRows() is incorrect. Thats just a guess though.
Bottom line, I think you'll need handle it manually.
Personally, I would recommend placing the row count logic in the
stored procedure (if possible). The overall results will be more
consistent and you won't have to worry about this kind of issue
again.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000314.htm
http://www.remotesynthesis.com/blog/index.cfm/2006/3/23/Maxrows-Issue-in-CFQuery -
Locking when using a component as an object in the application scope...
I have a component that I am building right now that hold
application settings that are stored in a database table. The
settings are maintained in a structure "variables.settings" within
the component and can only be accessed by get and set methods. I
use the following to create the instance of the object:
<cfset application.settings =
createObject("settings","component").init() />
Now when getting a setting I do not think locking is needed
as its just reading the value and I am not really concerned with a
race condition...
But when using the set method which will update the value of
the setting.... should I be locking that as technically the object
is in a shared variable scope? Or is it safe because its within the
cfc/object?
If locking is needed, would I need to lock when using the set
method? or can I just build the lock into the set method so that
its always there?To disagree with craigkaminsky, I think you only need to lock
if you are
concerned about race conditions and what could happen during
a 'dirty
read' and|or conflicting writes.
A lot of developers have an old impression of ColdFusion that
one *must*
lock all shared scope variable access to maintain a stable
application.
This dates from the ColdFusion 4.5 days where there where
bugs in
ColdFusion that could cause memory leaks and eventual
application
instability if one did not lock shared scope reads and
writes. This has
long been fixed, but the advice persists.
So now it is only a matter of your data and what would happen
if one
user read an old value while it was in the process of being
updated by
another user. Or could two users be updating the same value
at the same
time and cause conflict. If either of those two statements
are true,
then yes you should use locking as required by your
application.
But if they are both false and it does not matter that user A
might get
the old value microseconds before user B changes it. Or there
is no
concern with user A changing it once and user B changing it
again to
something different moments later without knowing the user A
has already
changed it. Then locking is probably unnecessary.
There can be a cost to over locking shared variable writes
and|or reads.
Every time one creates a lock, one is single threading some
portion of
ones code. Depending on how the locking is done, this single
threading
may only apply to individual users or it may apply to every
single user
on the entire server. Either way, too much of this in the
wrong places
can create a significant bottle necks in ones application if
too many
user requests start piling up waiting for their turn through
the locked
block of code. -
Trying to connect to a ftp server
I am able to connect to Cerberus (5.0.0.5) using the web browser or using a CoreFTP client, but I can't connect programatically using org.apache.commons.net.ftp.FTPClient.
Below is my code (this is actually using the java ftpclient through Coldfusion) :
ftpsClient = CreateObject("java","org.apache.commons.net.ftp.FTPClient").init();
ftpsClient.connect(JavaCast("string","xxx.xxx.xxx.xxx"),21);
connected = ftpsClient.isConnected();
login = ftpsClient.login(JavaCast("string","username"),JavaCast("string","password"));
This is what I see in the ftp server log file:
2011/12/13 13:47:54 [0] Client connected to Cerberus FTP Server 5.0.0.5 on 'machine'
2011/12/13 13:48:41 [1] Incoming connection request on FTP interface 0 at xxx.xxx.xxx.xxx
2011/12/13 13:48:41 [1] FTP connection request accepted from xxx.xxx.xxx.xxx
2011/12/13 13:48:45 [1] USER svc.script
2011/12/13 13:48:45 [1] 331 User svc.script, password please
At this point the Coldfusion/Java client returns "Truncated server reply". I also tried not using the login, and instead sending the user command and pass command separately like this:
userCmd = ftpsClient.sendCommand(JavaCast("string","USER" ),JavaCast("string","username" ));
But as soon as I send the "USER" command I see the above in the log file and the same reply, "Truncated server reply".
When I use the cfftp tag like this:
<cfsetting requesttimeout="1000">
<cfftp action="open" connection="ftptest" secure="false"
server="xxx.xxx.xxx.xxx" port="21"
username="username" password-"password" timeout="1000" stoponerror="true">
I receive a "java.net.ConnectException: Connection timed out: connect"
Does anyone have any ideas? Thanks much.This has been resolved.
There is a bug in the apache commons ftpclient that misinterprets /r in the welcome message. The ftp server people made a change that fixes this.
With cfftp, when I changed the server attribute on the cfftp open to the server name instead of the ip address, it started working. To me this is a bug in ColdFusion, you should be able to use the ip address.
The other thing I noticed is when you use getfile, you have to set the the failifexists attribute to "false". If you don't, it fails every time and the file has a "0" size, whether the file actually does exist. To me, another bug. -
When using DDX to merge certain pdf files, we get the following error:
failed: DDXM_S18005: An error occurred in the PrepareTOC phase while building <TableOfContents>. Cause given.
We are running Coldfusion 9.0.1 on a Windows Server 2008 R2 64-bit server.
The error occurs only on certain pdf files, and only if we include them in the table of contents.
There was a similar bug in Coldfusion 8 that was fixed, but it looks like it's come back again in Coldfusion 9.
merge.cfm:
<CFLOOP LIST="merge_no_toc.ddx,merge_toc.ddx" INDEX="ddx">
<CFLOOP LIST="good.pdf,bad.pdf" INDEX="pdf">
<CFSET inputStruct = StructNew()>
<CFSET StructInsert(inputStruct, "In1", pdf)>
<CFSET StructInsert(inputStruct, "In2", pdf)>
<CFSET outputStruct = StructNew()>
<CFSET outputStruct.Out1 = "merged.pdf">
<CFPDF ACTION="processddx" DDXFILE="#ddx#" INPUTFILES="#inputStruct#" OUTPUTFILES="#outputStruct#" NAME="merge"></CFPDF>
<CFOUTPUT>#DDX# with #pdf#:</CFOUTPUT>
<CFDUMP VAR="#merge#">
<BR />
</CFLOOP>
</CFLOOP>
merge_toc.ddx
<?xml version="1.0" encoding="UTF-8" ?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd">
<PDF result="Out1">
<TableOfContents bookmarkTitle="Table Of Contents" maxBookmarkLevel="1" includeInTOC="false">
<Header>
<Center>
<StyledText>
<p color="black" font-size="16pt">Table of Contents</p>
<p />
<p />
</StyledText>
</Center>
</Header>
</TableOfContents>
<PDF source="In1" bookmarkTitle="1" includeInTOC="true">
<PageLabel mode="Define" start="_PageNumber"/>
</PDF>
<PDF source="In2" bookmarkTitle="2" includeInTOC="true">
<PageLabel mode="Define" start="_PageNumber"/>
</PDF>
</PDF>
</DDX>
merge_no_toc.ddx
<?xml version="1.0" encoding="UTF-8" ?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd">
<PDF result="Out1">
<TableOfContents bookmarkTitle="Table Of Contents" maxBookmarkLevel="1" includeInTOC="false">
<Header>
<Center>
<StyledText>
<p color="black" font-size="16pt">Table of Contents</p>
<p />
<p />
</StyledText>
</Center>
</Header>
</TableOfContents>
<PDF source="In1" bookmarkTitle="1" includeInTOC="false">
<PageLabel mode="Define" start="_PageNumber"/>
</PDF>
<PDF source="In2" bookmarkTitle="2" includeInTOC="false">
<PageLabel mode="Define" start="_PageNumber"/>
</PDF>
</PDF>
</DDX>
The resulting output:
The "bad" pdf is a perfectly normal PDF with the Helvetica font (this is what the copier does).
The "good" pdf is a perfectly normal PDF from a different copier, without the Helvetica font.
The fonts available, as listed by the ColdFusion Administration page, include ArialMT and Helvetica:
The good and bad pdf files, as well as the ddx and cfm files can be downloaded here if you want to run it yourself: http://dl.dropbox.com/u/55552656/merge.ziphttps://bugbase.adobe.com/index.cfm?event=bug&id=3192782
I learned about the 8.0.1 part from here:
http://www.designovermatter.com/post.cfm/failed-ddxm-s18005-an-error-occurred-in-the-prepa retoc-phase-while-building-tableofcontents -
Query of Queries- sorting issue
I've discovered that when I get a query from the database and
then try to sort it by QofQ the results are very strange.
When using ' SELECT * FROM' the results differ from those
when using 'SELECT Column1, Column2 FROM'
I wonder if I did not include some parameters or it is a bug
of Coldfusion.
P.S. Attached code should illustrate what I mean.
P.P.S. Can you implement 'upper(ColumnName)' in order by in
QofQ?>> P.P.S. Can you implement 'upper(ColumnName)' in
order by in QofQ?
>It's always quite easy to TRY these things rather than
asking someone else if it works ;-)
Sorry :-) My mistake - it did not work because of the null in
the column. It works perfectly fine when there are no nulls.
Thanks for the response ;-)
Maybe you are looking for
-
Permission Problem when trying to Installation Adobe Flash Player
I'm having a problem installing the Adobe Flash Player in Windows 7 because I'm getting the now infamous message that there is not permission to install; however, mine is a bit different. I used to have Adobe Flash Player on my machine but it has dis
-
My 30g ipod video wont stop blinking the little apple!!! help!!
i plugged it in and forgot to 'safely remove the hard drive' and now its freaking out and blinking that little apple!! i cant turn it off or anything. I JUST GOT THIS IPOD TODAY!!!! somebody PLEASE help!
-
Generating n:m relationships
Hi all, i have two tables linked via an intersection table, a typical n:m thing. I'd like to generate a form displaying this relationship, like there's the data of the one table in the first block, and all records of the second table - that match the
-
Can't Delete or Unlock Locked File
Running Mountain Lion on Macbook Pro Hi, Y'all. This issue relates to a document that I locked to prevent accidental erasure or editing but now the ownership has 'gone strange' so I can't unlock it, delete it, or change the access privileges via Get
-
How to code flash players with Html 5 to the lastest versions for my site http://www.beatmart.net