Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4287

Replace whitespace and brackets in export backup filename

    • High
    • When creating backup zips of translate5 task whites space square and normal brackets are now also replaced in the filename to a hyphen character. Multiple hyphens are condensed to a single hyphen.

      problem

      When saving the tasks with the Workflow Action deleteOldEndedTasks the taskname can be used as parameter in the target filename for the backup file.

      Currently several special chars #%&{}\\<>*?/$!\'":@+`|= in the filename are already escaped. What is missing is the white space and square and normal brackets.

      solution

      Replace them also with - character (hyphen). Final list is:

      #%&{}\\<>*?/$!\'":@+`|= ()[]
      

      Multiple - characters are replaced then to a single one.

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Volodymyr Kyianenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: