Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8166

creation of a folder with an incompatible name throws an AmetysRepositoryException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.1.8, 4.2.0
    • 4.0RC3
    • None
    • None

      When calling

      org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO.addResourceCollection(ModifiableResourceCollection parent, String desiredName, Boolean renameIfExists, List<String> errors)
      

      with a name with specials characters, the check of existence fails.

      Caused by: org.ametys.plugins.repository.AmetysRepositoryException: Unable to test if the underlying Node for object resources-collection://03df8624-4dee-479f-b68f-c7faa09e62dd has a child named test avec espaces :D
          at org.ametys.plugins.repository.jcr.TraversableAmetysObjectHelper.hasChild(TraversableAmetysObjectHelper.java:315)
          at org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory.hasChild(DefaultTraversableAmetysObjectFactory.java:76)
          at org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject.hasChild(DefaultTraversableAmetysObject.java:57)
          at org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO.addResourceCollection(ExplorerResourcesDAO.java:571)
          at org.ametys.plugins.workspaces.documents.DocumentManager.addFolder(DocumentManager.java:652)
      

       

            Unassigned Unassigned
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: