Selaa lähdekoodia

Merge pull request #8260 from AttilaVamos/HPCC-14975-fix-6.0.0

HPCC-14975 Should not copy "Protected" metadata from source to new copy

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 vuotta sitten
vanhempi
commit
43da1ef48c
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      dali/ft/filecopy.cpp

+ 5 - 2
dali/ft/filecopy.cpp

@@ -3144,8 +3144,11 @@ void FileSprayer::updateTargetProperties()
 
             // and simple (top level) elements
             Owned<IPropertyTreeIterator> iter = srcAttr->getElements("*");
-            ForEach(*iter) {
-                curProps.addPropTree(iter->query().queryName(),createPTreeFromIPT(&iter->query()));
+            ForEach(*iter)
+            {
+                const char *aname = iter->query().queryName();
+                if (stricmp(aname, "Protect") != 0)
+                    curProps.addPropTree(aname, createPTreeFromIPT(&iter->query()));
             }
         }
     }