House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

cffile delete -- readonly HELP!

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
jtnews
06/30/2003 05:00 PM

I am trying to delete a file on a share that is read-only and coldfusion, although it has full controll of the share, cannot delete the file. Here is the error I get when I try to delete or even write over the file: Service threw an exception during method invocation: The file/directory "\\estarsdev01\estarsdocs\LMSI\2002\9\32759\assignVol_dump.txt" provided as the "Destination" is ReadOnly. Any ideas? Thanks, Josh ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mosh Teitelbaum
06/30/2003 05:41 PM

Have you tried changing the file so it is not read only?  For example:   <CFFILE     ACTION="Rename"     SOURCE="#workingDir#\test.txt"     DESTINATION="#workingDir#\test.txt"     ATTRIBUTES="Normal"> -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: mosh.teitelbaum@evoch.com WWW: http://www.evoch.com/ ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
06/30/2003 05:14 PM

----- Excess quoted text cut - see Original Post for more ----- If the share is read-only, that implies that no one has permission to write, modify or delete files through the share. Keep in mind, also, that share permissions are separate from filesystem permissions - that is, you might grant a user full control to the directory within the filesystem, yet if the share permissions are more restrictive than the filesystem permissions, the user might not be able to write or delete. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Josh Trefethen
06/30/2003 05:23 PM

----- Excess quoted text cut - see Original Post for more ----- Thanks, I guess I didn't give correct info, the directory is wide open, but the file itself is read-only.  I can write files and delete non-read-only files, but ones that are read-only are returning an error... Also, I am deleting the file from a cfc that is called via flash remoting.  I know it isn't a remoting issue however, as I have called the cfc in CF and get the same error. Status (object #2) .....code: "SERVER.PROCESSING" .....description: "Service threw an exception during method invocation: The file/directory "\\estarsdev01\estarsdocs\LMSI\2002\9\32759\assignVol_dump.txt" provided as the "Destination" is ReadOnly." .....details: "coldfusion.tagext.io.FileTag$DirFileIsReadOnlyException: The file/directory "\\estarsdev01\estarsdocs\LMSI\2002\9\32759\assignVol_dump.txt" provided as the "Destination" is ReadOnly.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
06/30/2003 05:25 PM

> Thanks, I guess I didn't give correct info, the directory is > wide open, but the file itself is read-only.  I can write > files and delete non-read-only files, but ones that are > read-only are returning an error... If the file itself is marked as read-only, I suspect you'll have to change its attributes first. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Josh Trefethen
06/30/2003 05:31 PM

>If the file itself is marked as read-only, I suspect you'll have to change >its attributes first. yeah, tried that. I get the same error on trying to reassign the attributes.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Josh Trefethen
06/30/2003 05:51 PM

I did a cffile action read and then write to change the attirbs and it would bomb out.  I just tried a rename and it worked! I wonder why you can rename and change the attribs on a file if it is read-only, but you cannot delete... Thanks for the help Dave.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

September 09, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30