|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
cffile delete -- readonly HELP!
Author: Josh Trefethen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126660
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.
Author: Mosh Teitelbaum
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126658
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 -----
Author: Josh Trefethen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126654
>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.
Author: Dave Watts
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126652
> 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
Author: Josh Trefethen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126651
----- 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.
Author: Dave Watts
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126648
----- 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
Author: jtnews
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126644
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/
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||