cancel
Showing results for 
Search instead for 
Did you mean: 

Folder creation problem after applying a rule

shibu
Champ in-the-making
Champ in-the-making
I just created a js file with the following content for blocking exe files.


if(document.mimetype == "application/octet-stream")
{

document.remove();
  
}
else
{
   document.save();
}


Then created a rule for a folder, "My Docs",  and assigned above js as Execute Script.
The rule I created for blocking executable files. The rule will delete all files with mimetype "application/octet-stream" when files are entered in to the folder.

Now, the problem is , its not allowing me to create a new Folder inside folder "My Docs". That folder also getting deleted on creation.

How can I solve this issue?
3 REPLIES 3

marcocel6
Champ in-the-making
Champ in-the-making
Hello!
I do have the same problem as @shibu!
I've just added a new rule (classifiable), at the repository level…and I cannot create a new folder anymore in the repository.
Any idea please?

shibu
Champ in-the-making
Champ in-the-making
Check whether you have applied this rule specifically for "cm:content" or for "All Items".
Please try with cm:content!

The issue solved for me.

marcocel6
Champ in-the-making
Champ in-the-making
Thanks @shibu,
You're right. I solved the problem that way./