Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-3209

Copy-paste produces document with problematic names when title has accented characters (generateDocumentName in Jackrabbit session)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.6, 5.2 M4
    • Fix Version/s: 5.1.x, 5.2 RC1
    • Component/s: None

      Description

      Scenario:

      • Create a document with a title with accented characters such as"Master français". Its "name" property is correctly formated in "master-francais" (so everything is well).
      • One copy-pastes this document in the same folder.
      • The "name" property of the newly created document is "Master_français.1233059473537" (instead of a better "master-francais.1233059473537").

      This causes some operations of the Nuxeo shell, such as rm, to be unusable with errors such as:
      Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: javax.jcr.PathNotFoundException. message: ecm:children/default-domain/ecm:children/workspaces/ecm:children/ws1/ecm:children/fichiers/ecm:children/Master_français.12345342901157
      at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2501)
      at org.nuxeo.ecm.core.repository.jcr.JCRSession.resolvePath(JCRSession.java:285)

        Attachments

          Activity

            People

            • Assignee:
              madarche Marc-Aurèle DARCHE
              Reporter:
              madarche Marc-Aurèle DARCHE
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: