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

Std.File.ForeignLogicalFileName unconditionally adds cluster prefix

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4.0
    • Component/s: Plugins
    • Labels:
      None

      Description

      IMPORT Std;
      
      // REMOTE_DALI := '10.194.112.105'; // AlphaProd - 6.4.36-1
      REMOTE_DALI := '10.173.147.1'; // RnD - 7.0.22-rc1
      SUPERPATH := '.::dcamper::test';
      
      FULL_PATH := '~foreign::' + REMOTE_DALI + '::' + SUPERPATH;
      // FULL_PATH := Std.File.ForeignLogicalFileName(SUPERPATH, REMOTE_DALI, TRUE);
      
      FULL_PATH;
      Std.File.SuperFileContents(FULL_PATH, FALSE);
      

      This code, with a hand-built FULL_PATH value (~foreign::10.173.147.1::.::dcamper::test), works on a 7.0 cluster (though it does fail on the 6.4 cluster). The commented-out Std.File.ForeignLogicalFileName version fails on both clusters, with a value of '~foreign::10.173.147.1::hthor::dcamper::test'.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jakesmith Jake Smith
                Reporter:
                dcamper Dan S. Camper
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: