rest: metalink in replica frontend badly constructed
Motivation
----------

The metalink frontend is still using the old RSE scheme instead of the new PFN scheme.
diff --git a/lib/rucio/web/rest/webpy/v1/replica.py b/lib/rucio/web/rest/webpy/v1/replica.py
index 85404269a..158aeacce 100755
--- a/lib/rucio/web/rest/webpy/v1/replica.py
+++ b/lib/rucio/web/rest/webpy/v1/replica.py
@@ -357,10 +357,9 @@ class ListReplicas(RucioController):
 
                     replicas = []
                     dictreplica = {}
-                    for rse in rfile['rses']:
-                        for replica in rfile['rses'][rse]:
-                            replicas.append(replica)
-                            dictreplica[replica] = (rfile['pfns'][replica]['domain'], rfile['pfns'][replica]['priority'], rse)
+                    for replica in rfile['pfns'].keys():
+                        replicas.append(replica)
+                        dictreplica[replica] = (rfile['pfns'][replica]['domain'], rfile['pfns'][replica]['priority'], rfile['pfns'][replica]['rse'])
 
                     yield ' <file name="' + rfile['name'] + '">\\n'
                     yield '  <identity>' + rfile['scope'] + ':' + rfile['name'] + '</identity>\\n'
['lib/rucio/web/rest/webpy/v1/replica.py']