www: content: lookup via metadata archive instead of catalog

In case of pxar archives with split metadata and payload data, the
metadata archive has to be used to lookup entries for navigation
before performing a single file restore.

Decide based on the archive filename extension whether to use the
`catalog` or the `pxar-lookup` api endpoint.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2024-06-07 13:37:51 +02:00 committed by Fabian Grünbichler
parent 84981486cb
commit 4dd816b343

View File

@ -786,6 +786,9 @@ Ext.define('PBS.DataStoreContent', {
'backup-time': (time.getTime()/1000).toFixed(0),
'backup-type': type,
};
if (rec.data.filename.endsWith(".mpxar.didx")) {
extraParams['archive-name'] = rec.data.filename;
}
if (view.namespace && view.namespace !== '') {
extraParams.ns = view.namespace;
}