DIRACGrid / DIRAC

DIRAC Grid
http://diracgrid.org
GNU General Public License v3.0
113 stars 176 forks source link

MultiVOMetadata doubling VO identifier #7687

Closed andresailer closed 4 months ago

andresailer commented 4 months ago

It happens that the metadata key has twice appended (for example in the Transformation.InputDataAgent)

https://github.com/DIRACGrid/DIRAC/blob/4886513ac7a42f01c06cd5b2339fa666d3a04115/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DirectoryMetadata/MultiVODirectoryMetadata.py#L23

Should

  1. Prevent the creation of meta data keys with ___ inside
  2. Only append ___<vo> if it hasn't been appended yet

cc. @marianne013 @martynia

martynia commented 4 months ago

@andresailer could you post medatadata commands you used with @marianne013 to add to the catalog, so I could reproduce the issue ?

andresailer commented 4 months ago

https://dirac.readthedocs.io/en/latest/AdministratorGuide/Tutorials/dmsWithTs.html#using-metadata-queries-to-add-files-to-transformations

martynia commented 4 months ago

Fix proposal here: #7708