Error: "Error when copying a file or folder. filename cannot be copied: The file or directory is damaged or is ilegible"

  • 7001750
  • 28-Oct-2008
  • 26-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES 2)
Novell Open Workgroup Suite Small Business Edition (NOWS SBE)
OES
Open Enterprise Server
NetA's AV Stamp

Situation

Error: "Error when copying a file or folder.  filename  cannot be copied:  The file or directory is damaged or is ilegible"
Can't copy files to OES server.
Files copied to OES server are 0 bytes.
Files are corrupt when copying to OES server.
Only certain files can be copied to OES server.
Some files copy to the OES server without any issues.

Cannot copy XXXXXXXX: There is not enough free disk space. Delete one or more files to free disk space, and then try again.

Resolution

Extended attribute support is scheduled to be added in SP1.
Call McAfee and receive from them an extended attribute stripper NLM.  This will remove the extended attributes placed on the file system by NetShield v4.6.  Once the extended attributes have been removed, you will want to configure NetShield to not place the extended attributes on the files.  That is done by doing the following:

===============

A.)  From the workstation where the NetShield console is installed, browse to "C:\Program Files\Network Associates\McAfee Netshield for NetWare".

B.)  Launch MCREGEDT.EXE

C.)  Select Registry | Connect Network Registry and connect to the desired server.

D.)  Browse to "SOFTWARE\McAfee\VirusScan\McShield\CurrentVersion".  Add a DWord value where the Value Name is "bDisableSessionStamp" and Value Data = "1".

E.)  Unload and reload NetShield on the server.

(The above information was provided to Novell by McAfee.)

Additional Information

The initial release of OES does not support extended attributes. The problem only occurs if the file has extended attributes present. If you attempt to copy files that do not have extended attributes then they will copy fine to the OES server. If the files have extended attributes then they will fail to copy and a 0 byte file with the file name will be created.

The most common issue is the result of NetShield adding extended attributes to files as they are scanned. Below is a little history on this activity.

Starting with NetShield v4.6, McAfee started putting extended attributes on files scanned by NetShield.  Placing extended attributes on the files is called Session Stamping.  This extended attribute information contains information that NetShield uses.  Placing extended attributes on the files is on by default. 

To see the problem, a LAN trace was taken.  In the LAN trace, the files on the server were being examined and the extended attributes were being read.  One of the extended attributes' value is called "NetA's AV Stamp".  However, the problem can be with any extended attribute on the file, not just McAfee's extended attribute. 
 
It should be noted that most 3rd party utilities cannot change the extended attributes on files that have the Read-Only file attribute set.
Formerly known as TID# 10098491