cancel
Showing results for 
Search instead for 
Did you mean: 

file impossible to delete

stickman
Champ in-the-making
Champ in-the-making
I have several files I'm trying to delete, with no luck so far. I always get this error:

* Unable to delete File due to system error: Found 1 integrity violations: Invalid property value: Node: archive://SpacesStore/870b7ffc-d3f2-4fe1-a1bf-71e4117bc6ed Type: {http://www.alfresco.org/model/content/1.0}content Property: {http://www.alfresco.org/model/content/1.0}name Constraint: Value 'Hoja de gastos - Gesti?n Econ?mica de XaTcobeo.ods' matches regular expression: (.*[\"\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)

The filename should be "Hoja de gastos - Gestión Económica de XaTcobeo.ods" but instead it was stored by Alfresco as: 'Hoja de gastos - Gesti?n Econ?mica de XaTcobeo.ods'.

Now it looks like it won't delete as stated in the error because of the ? characters.

How can I delete this kind of files?
5 REPLIES 5

bhonermann
Champ in-the-making
Champ in-the-making
Is there any solution to this?  I've been trying to delete several such files for a while and there seems to be no solution in the forums.

For me, seems the original file name was copied and pasted from word by one of our users using a curved apostrophe. File at least partially uploaded (though the file size is 0) but now I'm unable to delete it or modify it at all. If connected through CIFS and I try deleting through a command prompt using the original character, it identifies that the file exists, but still can't remove it.

Anyone?

gronfelt
Champ in-the-making
Champ in-the-making
This thread is pretty old, so hopefully the persons writing in it have solved the problem by now. However, I found it while searching for a solution myself and figured that the solution might be useful to others.

Unallowed characters are determined in the file contentModel.xml, so by editing this file one can allow the characters causing trouble, allowing the file(s) to be deleted. The interesting part of the file is this:


<constraints>
      <constraint name="cm:filename" type="REGEX">
         <parameter name="expression"><value><![CDATA[(.*[\"\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)]]></value></parameter>
         <parameter name="requiresMatch"><value>false</value></parameter>
      </constraint>
      <constraint name="cm:userNameConstraint" type="org.alfresco.repo.dictionary.constraint.UserNameConstraint" />
</constraints>

tfk
Champ in-the-making
Champ in-the-making
hi,
how does the expression exactly have to look like to allow ? and _
thx

iblanco
Confirmed Champ
Confirmed Champ
As far as I know _ is already allowed.

jharrop
Champ in-the-making
Champ in-the-making
See also https://issues.alfresco.com/jira/browse/ALF-2017 and https://issues.alfresco.com/jira/browse/ALFCOM-2567

The latter explains:
As a workaround, try disabling the integrity checking by adding this to your custom-repository-context.xml:
   <bean id="integrityChecker" class="java.util.ArrayList" />
Or else copy the original bean and just change the "enabled" attribute.

After doing this, I was able to delete the file using the JSF web client (but not using cadaver webdav client).