Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Outdated
-
2.28.00
-
None
-
None
Description
Recently, some effort was put into avoiding the creation of same-name-sibling (SNS) documents (or folders, images etc.). During the fixing of HIPPLUG-1010, I found that the New Document Wizard plugin also has the problem that you can create SNSs. I looked into fixing this, but found that I would have to add quite some code to get this working, code which would be pretty similar to what has already been created in f.e. [1].
Rather than creating more and more code for this, it seems desirable that the repository layer offers an API to (1) check if a [path, localizedName] combination would produce a SNS, and/or (2) reject an attempt to create a new SNS node at [path, localizedName].
Note that for the CMS user, SNS trouble is also related to the localizedName, not just the node name.
[1] org.hippoecm.frontend.plugins.standardworkflow.validators.AddDocumentValidator