Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-17511

single colon in logical file names

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.6.8
    • Fix Version/s: None
    • Component/s: None
    • Environment:
      Boca Prod

      Description

      An ECLUser renamed numerous logicals, where a single colon was used, like:
      ~thor_data400::key::aid::20170321:rawaid_to_acecahe

      This was causing it to write down to the filesystem as:
      /var/lib/HPCCSystems/hpcc-data/thor/thor_data400/key/aid/20170321%3Arawaid_to_acecahe._n_of_n

      The %3A was making it where the file couldn't be renamed via IDE/Eclwatch unless I renamed the file directly on the filesystem to %3a. Just to share, I was able to rename via this bit of bash:
      for BADNAME in /var/lib/HPCCSystems/hpcc-mirror/thor/thor_data400/key/aid/20170321%3Arawaid_to_acecahe* ; do mv $BADNAME ${BADNAME/%3A/%3a}; done

      For example, in Eclwatch, with it being %3A, it was breaking the Logical File, "View Data File". Causing it to error with:

      Message:2017-05-01 18:09:57 GMT: Could not open key file at //10.241.60.1/var/lib/HPCCSystems/hpcc-data/thor/thor_data400/key/aid/20170321%3arawaid_to_acecahe._401_of_401 or any alternate location.

      Once the %3a rename was done, the logical could be renamed via IDE/Eclwatch.

      Please either sanitize inputs and disallow single colon's, or at least write out single colons as %3a to not break functionality.

        Attachments

          Activity

            People

            • Assignee:
              attilavamos Attila Vamos
              Reporter:
              rwagner42 Russell Wagner
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: