Re: Problem deleting structure in an array

2010-01-12 Thread Leigh
> That's why I love this list it makes you less dumb. Now that would make a good T-Shirt ;-) "Join CF-Talk (It makes you less dumb)" ~| Want to reach the ColdFusion community with something they want? Let them kno

Re: Problem deleting structure in an array

2010-01-12 Thread jrmuniz
Hello: For those of you following the tread Leigh had the correct solution. When deleting using a loop, delete in reverse or descending order. It makes so much sense, yet in never occurred to me. That's why I love this list it makes you less dumb. Jaime ~

Re: Problem deleting structure in an array

2010-01-12 Thread Leigh
Jaime, No problem. I just wanted to make sure you saw the examples, as I think they give a good demonstration of both the issue and resolution. -Leigh ~| Want to reach the ColdFusion community with something they want

Re: Problem deleting structure in an array

2010-01-12 Thread Qing Xia
Yep, Leigh's solution is much simpler. [?] On Tue, Jan 12, 2010 at 9:47 PM, jrmuniz wrote: > > Leigh: My apologies. When I read your post I stopped at the word "Yes" not > realizing there was more. What you are saying makes perfect sense. I'll > give that a try. Jaime > > See my previous re

Re: Problem deleting structure in an array

2010-01-12 Thread jrmuniz
Leigh: My apologies. When I read your post I stopped at the word "Yes" not realizing there was more. What you are saying makes perfect sense. I'll give that a try. Jaime See my previous response. You must remove the item in _descending_ order. That way the element you are trying to remove

Re: Problem deleting structure in an array

2010-01-12 Thread Leigh
See my previous response. You must remove the item in _descending_ order. That way the element you are trying to remove will always exist. -Leigh ~| Want to reach the ColdFusion community with something they want? Le

Re: Problem deleting structure in an array

2010-01-12 Thread jrmuniz
Chad & Qing Xia: Thanks for your responses. You are both correct. But I still can't figure out how to fix it. Chad: I used cfdump in the loop and what is happening is that the session.shopping array index is decreasing by 1 every time one structure is deleted. Which makes sense. When the ind

Re: Recent SQL Injection attacks

2010-01-12 Thread Michael Dinowitz
Didn't know about that IP. Thanks They got in through some code that was written literally 10 years ago on one of the clients forgotten sites. I've fixed up the cfquery tags and added my anti-injection code to the whole dir. Thanks -- Michael On Tue, Jan 12, 2010 at 6:31 PM, Jerry Johnson

Re: QoQ DataType Error

2010-01-12 Thread Duncan
Hi James, Did you ever get past this? I am running code that gets this exact qoq error ("The value '' cannot be converted to a number"), but here's the twist: It only happens on our fully updated and patched cf8 production server (original install would have been cf8 I think). On our shared dev

Re: Recent SQL Injection attacks

2010-01-12 Thread Jerry Johnson
Yes. All from ip 91.212.226.161 Which we have blocked at our firewall. Annoying, but we saw these coming 2 summers ago, and took steps. On Tue, Jan 12, 2010 at 6:05 PM, Michael Dinowitz < mdino...@houseoffusion.com> wrote: > > Has anyone seen any recent SQL injection attacks on their sites

Re: CFFILE move is copying

2010-01-12 Thread Scott Brady
I don't think permissions or other processes would be an issue. This is on my local machine, and I haven't had problems before. Now, I'm doing a cffile delete and it's not even throwing an error if the file doesn't exist (which it should, right?). Maybe I'll restart CF and see what happens. :)

Recent SQL Injection attacks

2010-01-12 Thread Michael Dinowitz
Has anyone seen any recent SQL injection attacks on their sites or in the wild? I just cleaned a bunch of JS and other code from a clients DB. Most of the scripts were running those fake anti-virus popups but some had other things like lung cancer scams. Anyone see anything? Thanks -- Michael

Re: CF5 download

2010-01-12 Thread Stephen Hait
On Tue, Jan 12, 2010 at 3:09 PM, Dave Watts wrote: > > >> Tom, I've always loved your signature-- does it not count now that it is > >> 2010? > > > > We've not won it this year yet :-) > > > > -- > > Helping to preemptively seize networks as part of the IT team of the > year, '09 > > and '08 > >

Re: Problem deleting structure in an array

2010-01-12 Thread Qing Xia
So maybe you can figure out which array index values are NOT selected for deletion, clear out the original array and insert the un-deleted array elements back in there. On Tue, Jan 12, 2010 at 5:10 PM, Qing Xia wrote: > Nope, on 2nd thought, Chat was right. If your array index was messed up, >

Re: Problem deleting structure in an array

2010-01-12 Thread Qing Xia
Nope, on 2nd thought, Chat was right. If your array index was messed up, then the error would have occurred sooner while rendering the form. I bet the error happens only if item 3 is selected. If you do 1 and 2 then you'll get the original number 2 remaining in the array. On Tue, Jan 12, 2010 at

RE: Problem deleting structure in an array

2010-01-12 Thread Leigh
> My best guess is if you remove one item it changes the > structure of the array and when it goes to remove the next > one it cannot be found? Yes. delete element [#i#] array size = #arrayLen(myArray)# When deleting within a loop, itera

RE: CFFILE move is copying

2010-01-12 Thread brad
I would check permissions too. CF might have permissions to write and read, but not delete. If this was the case though, I would expect there to be an error. As a debugging measure, you could dump out the contents of a cfdirectory right after moving the file and see if the file exists. It is p

Re: Problem deleting structure in an array

2010-01-12 Thread Qing Xia
You are looping over the array sequentially from 1 but are you sure your array key values are sequential from 1 as well? Your loop goes 1, 2, 3, which means it will expect to find session.shoppingCart[1].itemid, session.shoppingCart[2].itemid and session.shoppingCart[3].itemid. But are you sure

Re: CFFILE move is copying

2010-01-12 Thread Scott Brady
That's probably it -- though, I guess I'd expect an error to result. I guess I can try deleting after the move -- not a solution, but it might tell me if the file is locked. (It's just a text file, so not much should be locking it) Scott On Tue, Jan 12, 2010 at 2:24 PM, Dave Watts wrote: > > W

Re: 500 Internal Server Error

2010-01-12 Thread Ian Skinner
On 1/12/2010 12:57 PM, Jordan Michaels wrote: > Note to self: need more coffee. :) > > Not sure how I missed "Apache" in your note. My fault. > > What does your error log say "exactly"? > From the access log 10.104.97.39 - - [12/Jan/2010:12:21:19 -0800] "GET /calpiq/index.cfm HTTP/1.1" 500

RE: Problem deleting structure in an array

2010-01-12 Thread Chad Gray
My best guess is if you remove one item it changes the structure of the array and when it goes to remove the next one it cannot be found? Use CFDump to display the array as you are looping over it to help debug. This way you can see the way the array is changing as you are removing items. >

Re: CFFILE move is copying

2010-01-12 Thread Dave Watts
> I'm using ColdFusion 9 on Windows with Apache 2 (in case that matters) > and am trying to do a basic cffile action="move" but it appears to be > copying rather than moving (i.e., the file is now in both the source > and destination folders).  Does anyone know what could cause that? > > Here's my

Problem deleting structure in an array

2010-01-12 Thread jrmuniz
Hello: Sorry, I forgot the subject in my last post. I'm having an issue deleting a form structure that is in a shopping cart array. I'm sure it's something simple I'm doing wrong, but it's driving me crazy. I have a checkbox to select which items to delete. If only one item is selected there i

RE: Provide access to the CFIDE

2010-01-12 Thread brad
> Your second option is one of the first I considered, but I wasn't sure > what folders I needed to keep and|or could get rid of such as you listed. My list of folders is just one I came up with based how they seemed to be used, but it hasn't seemed to affect anything unexpected to date. :) YMM

Re: 500 Internal Server Error

2010-01-12 Thread Jordan Michaels
Note to self: need more coffee. :) Not sure how I missed "Apache" in your note. My fault. What does your error log say "exactly"? Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Railo Community Distributions Jordan Michaels wrote:

Re: 500 Internal Server Error

2010-01-12 Thread Jordan Michaels
That kind of an error is a web server error. What do your web server logs say? What web server are you using? This wording is a little confusing: "The exact same code running on a different configured the same ColdFusion instance is working just fine." Do you mean a different instance on the

Re: Provide access to the CFIDE

2010-01-12 Thread Ian Skinner
On 1/12/2010 12:43 PM, b...@bradwood.com wrote: > Use .htaccess to secure the admninistrator folder. > > Alternatively, I have two copies of the CFIDE folder-- one with ALL the > sub-folders that is ONLY mapped to my internal default site and cannot > be accessed by anyone outside my network. > An

RE: 500 Internal Server Error

2010-01-12 Thread Chad Gray
Sometimes when I use IE the robust exception message does not appear you just get a default IE 500 page. Switch to Firefox or dig into the CF logs to view the error. > -Original Message- > From: Ian Skinner [mailto:h...@ilsweb.com] > Sent: Tuesday, January 12, 2010 3:44 PM > To: cf-t

500 Internal Server Error

2010-01-12 Thread Ian Skinner
Anybody care to take a guess what a HTTP/1.1 500 538 error might mean. We have a web application that is returning an *Internal Server Error* with that error code in the Apache error log file. The trouble is I have no idea why. The exact same code running on a different configured the same C

RE: Provide access to the CFIDE

2010-01-12 Thread brad
> Most of those ideas apply, I believe, but our server is a Unix system > with Apache so if nothing else no IUSR account. Use .htaccess to secure the admninistrator folder. Alternatively, I have two copies of the CFIDE folder-- one with ALL the sub-folders that is ONLY mapped to my internal def

Re: CF5 download

2010-01-12 Thread Dave Watts
>> Tom, I've always loved your signature-- does it not count now that it is >> 2010? > > We've not won it this year yet :-) > > -- > Helping to preemptively seize networks as part of the IT team of the year, '09 > and '08 I would prefer that my network not be preemptively seized, TIA. Dave Watts

CFFILE move is copying

2010-01-12 Thread Scott Brady
I'm using ColdFusion 9 on Windows with Apache 2 (in case that matters) and am trying to do a basic cffile action="move" but it appears to be copying rather than moving (i.e., the file is now in both the source and destination folders). Does anyone know what could cause that? Here's my cffile tag

Re: Provide access to the CFIDE

2010-01-12 Thread Ian Skinner
On 1/12/2010 11:13 AM, Justin Scott wrote: > On our IIS servers we generally create a virtual folder mapping called > "cfide" at the site root which points back to the CFIDE folder on the > server. Then, within the virtual folder structure on the site, we redirect > the "administrator" folder eit

RE: reorder a query

2010-01-12 Thread Chad Gray
http://www.austin-williams.com/unplugged > > > > > __ Information from ESET Smart Security, version of virus > signature > database 4765 (20100112) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > >

RE: Provide access to the CFIDE

2010-01-12 Thread Justin Scott
> What are someways that we could provide access to the necessary > folders without illuminating the nice feature that only our > admin web site has access to the the Administrator portal. On our IIS servers we generally create a virtual folder mapping called "cfide" at the site root which points

File Upload with CFKeditor in CF8

2010-01-12 Thread Mallory Woods
Hello all, I have been trying to get file uploading working with cftextarea , CF 8.01 on a UNIX host. I am able to see the entire FCKEditor toolbar and I have made the tweaks to get the file upload option as described here: http://www.rakshith.net/blog/?p=58 However, when I try to upload an ima

Provide access to the CFIDE

2010-01-12 Thread Ian Skinner
When we installed our server, only one special admin site was given a mapping the the CFIDE folder. This has obviously affected the ability of ColdFusion AJAX, Flash and DHTML features from working. What are someways that we could provide access to the necessary folders without illuminating t

RE: reorder a query

2010-01-12 Thread Robert Harrison
http://www.austin-williams.com Great advertising can't be either/or.  It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4765 (20100112) __ The messa

Re: reorder a query

2010-01-12 Thread Qing Xia
Could it be that one (or more) of the rows in column reOrder is of type Double while the other rows are all of type string? I am guessing maybe you want a numeric value in this row but one of more rows got empty. On Tue, Jan 12, 2010 at 1:34 PM, Chad Gray wrote: > > While I am looking over Robe

RE: reorder a query

2010-01-12 Thread Chad Gray
Never mind... figured it out. I needed javaCast when setting the values of the Array. > -Original Message- > From: Chad Gray [mailto:cg...@careyweb.com] > Sent: Tuesday, January 12, 2010 1:35 PM > To: cf-talk > Subject: RE: reorder a query > > > While I am looking over Roberts cod

RE: reorder a query

2010-01-12 Thread Chad Gray
While I am looking over Roberts code that he sent me why would I get a casting error for this code? I take the ORDER BY statement out of the Query of a Query and it does not error. Error casting an object of type java.lang.Double cannot be cast to java.lang.String to an incompatible type.

RE: reorder a query

2010-01-12 Thread Robert Harrison
Chad... can't attach files to the list, but I'm sending you a CF Routine that does exactly that... coming shortly. Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin

reorder a query

2010-01-12 Thread Chad Gray
I am thinking there has to be an easier way to do this then what I currently have. I need to move a row in a Query object up or down. Like imagine a page with little arrows on each record and you want record 2 to move to the position of record 1 and move record one to the position of record 2

RE: CFTALK List Problems

2010-01-12 Thread brad
> Is there anyone that can help me with list problems? FYI, if you're having problems with the list, or even more so, the HOF site; the proper course of action is generally to E-mail the administrator of both directly. He usually responds in good time. Michael Dinowitz mdino...@houseoffusion.c

Re: CFTALK List Problems

2010-01-12 Thread Jason Fisher
Yep. Don't know about the site, but the mail list is working fine. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com

Re: CFTALK List Problems

2010-01-12 Thread John M Bliss
be either/or. It must be &. > > Plug in to our blog: A&W Unplugged > http://www.austin-williams.com/unplugged > > > __ Information from ESET Smart Security, version of virus signature > databas

CFTALK List Problems

2010-01-12 Thread Robert Harrison
rity, version of virus signature database 4763 (20100112) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House

Re: CF5 download

2010-01-12 Thread Tom Chiverton
On Monday 11 Jan 2010, b...@bradwood.com wrote: > Tom, I've always loved your signature-- does it not count now that it is > 2010? We've not won it this year yet :-) -- Helping to preemptively seize networks as part of the IT team of the year, '09 and '08 *