Re: CFFILE move is copying
Well, I tried it this morning, and it worked. The only differences I could see is I used a different e-mail address and I didn't fill out the optional fields. Weird. Thanks! Scott On Fri, Jan 15, 2010 at 8:03 PM, b...@bradwood.com wrote: Hmm, I've used that form many times and never had any problems. If you're on CF9, you can try the public bug tracker: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html If you really are having troubles submitting a bug via the go/wish form, your best bet might be to try and ping Ben Forta or Adam Lehman. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Fri, January 15, 2010 7:36 pm To: cf-talk cf-talk@houseoffusion.com Well, I tried to, but every time I submit the form (using FireFox on Mac OS X), it says I haven't filled out forms I most certainly have filled out (e-mail address, etc.). Anyone know how to submit a bug report for their bug report form? :) ~| 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/groups/cf-talk/message.cfm/messageid:329726 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
Actually, I found a way around it. I'm using the underlying Java file reader (which is what I assume cfloop type=file uses) that also includes a close() method that fixes it. I would think cfloop would do that automatically once you exit the loop (whether upon the end of the file or prematurely), but maybe there are times you wouldn't want it to. Scott -- - Scott Brady http://www.scottbrady.net/ ~| 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/groups/cf-talk/message.cfm/messageid:329704 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFFILE move is copying
Either way, you should write up all the details and some sample code and submit it to Adobe. http://www.adobe.com/go/wish ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Fri, January 15, 2010 5:18 am To: cf-talk cf-talk@houseoffusion.com Actually, I found a way around it. I'm using the underlying Java file reader (which is what I assume cfloop type=file uses) that also includes a close() method that fixes it. I would think cfloop would do that automatically once you exit the loop (whether upon the end of the file or prematurely), but maybe there are times you wouldn't want it to. Scott ~| 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/groups/cf-talk/message.cfm/messageid:329708 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
Well, I tried to, but every time I submit the form (using FireFox on Mac OS X), it says I haven't filled out forms I most certainly have filled out (e-mail address, etc.). Anyone know how to submit a bug report for their bug report form? :) On Fri, Jan 15, 2010 at 1:38 PM, b...@bradwood.com wrote: Either way, you should write up all the details and some sample code and submit it to Adobe. http://www.adobe.com/go/wish ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Fri, January 15, 2010 5:18 am To: cf-talk cf-talk@houseoffusion.com Actually, I found a way around it. I'm using the underlying Java file reader (which is what I assume cfloop type=file uses) that also includes a close() method that fixes it. I would think cfloop would do that automatically once you exit the loop (whether upon the end of the file or prematurely), but maybe there are times you wouldn't want it to. Scott ~| 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/groups/cf-talk/message.cfm/messageid:329713 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFFILE move is copying
Hmm, I've used that form many times and never had any problems. If you're on CF9, you can try the public bug tracker: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html If you really are having troubles submitting a bug via the go/wish form, your best bet might be to try and ping Ben Forta or Adam Lehman. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Fri, January 15, 2010 7:36 pm To: cf-talk cf-talk@houseoffusion.com Well, I tried to, but every time I submit the form (using FireFox on Mac OS X), it says I haven't filled out forms I most certainly have filled out (e-mail address, etc.). Anyone know how to submit a bug report for their bug report form? :) ~| 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/groups/cf-talk/message.cfm/messageid:329715 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
Here's a thought on what might be going on (and if so, I'm open to suggestions). Basically, if I'm writing to the badFiles location, I have almost invariably broken out of a cfloop file=whatever loop before reaching the end of the file (using cfbreak). Is it possible that ColdFusion still has a lock on the file and, therefore, can't delete it? (I'm thinking this may be the case, because right now I can't manually delete that file from the source folder, either). Assuming that's the case, any ideas on how to get around it? Because this is a process we don't want to bog down unnecessarily, I'd rather not read the whole file in (the old way of looping over a file) or loop over the entire file if I don't have to. Scott On Wed, Jan 13, 2010 at 1:54 PM, Scott Brady dsbr...@gmail.com wrote: Well, here's a wrinkle: This line (same as before) doesn't delete the file in the source: cffile action=move source=#arguments.stConfig.ftpFileLocations.pending##local.qFiles.name# destination=#arguments.stConfig.ftpFileLocations.badFiles##local.qFiles.name# / This line (different destination, same source) DOES delete the course file: cffile action=move source=#arguments.stConfig.ftpFileLocations.pending##local.qFiles.name# destination=#arguments.stConfig.ftpFileLocations.archived##local.qFiles.name# / The only difference between arguments.stConfig.ftpFileLocations.badFiles and arguments.stConfig.ftpFileLocations.archived is the name of the specific folder (same parent folders, etc.). It almost seems like it would be a permissions issue on the badFiles folder, but wouldn't that only affect whether the file could be written to THAT folder, not deleting it from the source? On Tue, Jan 12, 2010 at 4:06 PM, Scott Brady dsbr...@gmail.com wrote: 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. :) On Tue, Jan 12, 2010 at 2:55 PM, b...@bradwood.com wrote: 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 possible some other process is writing the file back in a minute later before you are looking. Also, trying a straight-up delete with cffile will show you if it is a delete permissions error. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Tue, January 12, 2010 3:46 pm To: cf-talk cf-talk@houseoffusion.com 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 dwa...@figleaf.com wrote: Well, a move is basically just a copy followed by a delete. So maybe CF can't delete the file? Maybe it's locked by CF itself, preventing it from being deleted. ~| 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/groups/cf-talk/message.cfm/messageid:329696 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
Basically, if I'm writing to the badFiles location, I have almost invariably broken out of a cfloop file=whatever loop before reaching the end of the file (using cfbreak). Is it possible that ColdFusion still has a lock on the file and, therefore, can't delete it? (I'm thinking this may be the case, because right now I can't manually delete that file from the source folder, either). Yes, I think that's very likely. Assuming that's the case, any ideas on how to get around it? Because this is a process we don't want to bog down unnecessarily, I'd rather not read the whole file in (the old way of looping over a file) or loop over the entire file if I don't have to. You could copy the file, then schedule a task to delete it in the future. Or, you could see how long file locks exist in your OS and see if you can make that shorter. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsi ~| 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/groups/cf-talk/message.cfm/messageid:329697 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
What about firing off another thread to delete it after X amount of time? Or maybe not deleting it right away, and instead adding the file to a list, and then moving/deleting the list at the end (maybe with a sleep() first?) -- Dogs and philosophers do the greatest good and get the fewest rewards. Diogenes ~| 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/groups/cf-talk/message.cfm/messageid:329699 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
Well, here's a wrinkle: This line (same as before) doesn't delete the file in the source: cffile action=move source=#arguments.stConfig.ftpFileLocations.pending##local.qFiles.name# destination=#arguments.stConfig.ftpFileLocations.badFiles##local.qFiles.name# / This line (different destination, same source) DOES delete the course file: cffile action=move source=#arguments.stConfig.ftpFileLocations.pending##local.qFiles.name# destination=#arguments.stConfig.ftpFileLocations.archived##local.qFiles.name# / The only difference between arguments.stConfig.ftpFileLocations.badFiles and arguments.stConfig.ftpFileLocations.archived is the name of the specific folder (same parent folders, etc.). It almost seems like it would be a permissions issue on the badFiles folder, but wouldn't that only affect whether the file could be written to THAT folder, not deleting it from the source? On Tue, Jan 12, 2010 at 4:06 PM, Scott Brady dsbr...@gmail.com wrote: 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. :) On Tue, Jan 12, 2010 at 2:55 PM, b...@bradwood.com wrote: 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 possible some other process is writing the file back in a minute later before you are looking. Also, trying a straight-up delete with cffile will show you if it is a delete permissions error. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Tue, January 12, 2010 3:46 pm To: cf-talk cf-talk@houseoffusion.com 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 dwa...@figleaf.com wrote: Well, a move is basically just a copy followed by a delete. So maybe CF can't delete the file? Maybe it's locked by CF itself, preventing it from being deleted. ~| 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/groups/cf-talk/message.cfm/messageid:329631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFFILE move is copying
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: cffile action=move source=#arguments.stConfig.ftpFileLocations.pending##local.qFiles.name# destination=#arguments.stConfig.ftpFileLocations.badFiles##local.qFiles.name# / Scott -- - Scott Brady http://www.scottbrady.net/ ~| 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/groups/cf-talk/message.cfm/messageid:329586 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
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: cffile action=move source=#arguments.stConfig.ftpFileLocations.pending##local.qFiles.name# destination=#arguments.stConfig.ftpFileLocations.badFiles##local.qFiles.name# / Well, a move is basically just a copy followed by a delete. So maybe CF can't delete the file? Maybe it's locked by CF itself, preventing it from being deleted. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| 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/groups/cf-talk/message.cfm/messageid:329596 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
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 dwa...@figleaf.com wrote: Well, a move is basically just a copy followed by a delete. So maybe CF can't delete the file? Maybe it's locked by CF itself, preventing it from being deleted. -- - Scott Brady http://www.scottbrady.net/ ~| 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/groups/cf-talk/message.cfm/messageid:329599 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFFILE move is copying
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 possible some other process is writing the file back in a minute later before you are looking. Also, trying a straight-up delete with cffile will show you if it is a delete permissions error. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Tue, January 12, 2010 3:46 pm To: cf-talk cf-talk@houseoffusion.com 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 dwa...@figleaf.com wrote: Well, a move is basically just a copy followed by a delete. So maybe CF can't delete the file? Maybe it's locked by CF itself, preventing it from being deleted. ~| 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/groups/cf-talk/message.cfm/messageid:329601 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFILE move is copying
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. :) On Tue, Jan 12, 2010 at 2:55 PM, b...@bradwood.com wrote: 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 possible some other process is writing the file back in a minute later before you are looking. Also, trying a straight-up delete with cffile will show you if it is a delete permissions error. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady dsbr...@gmail.com Date: Tue, January 12, 2010 3:46 pm To: cf-talk cf-talk@houseoffusion.com 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 dwa...@figleaf.com wrote: Well, a move is basically just a copy followed by a delete. So maybe CF can't delete the file? Maybe it's locked by CF itself, preventing it from being deleted. ~| 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/groups/cf-talk/message.cfm/messageid:329607 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4