rucio download wrongly resolves wildcarded DIDs
Motivation
----------
In 1.17.* the wildcard download stopped working. (Related to re-implementation of downloader)
diff --git a/lib/rucio/client/downloadclient.py b/lib/rucio/client/downloadclient.py
index 9528d1e2c..e0278f979 100644
--- a/lib/rucio/client/downloadclient.py
+++ b/lib/rucio/client/downloadclient.py
@@ -871,7 +871,7 @@ class DownloadClient:
                     new_item['type'] = dids['did_type'].upper()
                     new_item['name'] = dids['name']
                     new_item['did'] = '%s:%s' % (did_scope, dids['name'])
-                    resolved_items.append(new_item)
+                    resolved_items.append(copy.deepcopy(new_item))
             else:
                 new_item['type'] = self.client.get_did(did_scope, did_name)['type'].upper()
                 new_item['name'] = did_name
['lib/rucio/client/downloadclient.py']