cancel
Showing results for 
Search instead for 
Did you mean: 

Set a path length constraint in Alfresco

diegop
Champ in-the-making
Champ in-the-making
Hi,
what is the best way to configure a path length constraint in Alfresco?

Our problems are due to CIFS and Windows Explorer: if some user create a space or a content in Alfresco with a path greater then 256 characters the Windows Explorer fails.

Of course, There are not problems with the navigation by the web client. It's only Explorer in Windows the problem.

So how can we set a constraint in the model in order to configure a max path length?

Thank you!
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
Customise the content model to configure constraints http://wiki.alfresco.com/wiki/Constraints on the cm:Folder title.

diegop
Champ in-the-making
Champ in-the-making
Customise the content model to configure constraints http://wiki.alfresco.com/wiki/Constraints on the cm:Folder title.

I have already seen that page.  Smiley Sad

And I noticed that (adding a custom constraint) you can check only the value of the field, without any way to access to its parent node and check the full path.

It's possible to notice that seeing:

http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/dictionary/constraint/Abstra...

diegop
Champ in-the-making
Champ in-the-making
Ok I just resolved editing IntegrityCheck.java and adding a custom class that I named "PathIntegrityEvent". This custom class verify the path length of folders, contents and links  and it is enabled in onCreateNode, onUpdateProperties and onCreateChildAssociation (for moving operations) methods of IntegrityCheck class.

It seems work, even if I have some redundant check in the copy operation of folders (a same path can be checked more times).