Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-797

Special chars not being controlled in node name through the 'Update zip file' action

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce:

      1. create a zip file with name test characters].zip including some files inside
      2. open assets app and import zip file

      You get an error like:

      Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: '/test characters]' is not a valid path. '￿' not a valid name character.
      

      There must be a processing of the path name in order to avoid non-allowed characters. Special case is blank, which is allowed but ends up causing issues when linking to resources(see SUPPORT-10123)

      Problem appears here (line 80):

      info.magnolia.commands.impl.BaseRepositoryCommand.getJCRNode(Context)
      if (StringUtils.isNotEmpty(getUuid())) {
                  node = session.getNodeByIdentifier(getUuid());
              } else {
                  node = session.getNode(getPath());
              }
      

      The return of getPath() should be processed in order to control illegal chars

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              ccantalapiedra Carlos Cantalapiedra
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD