Unverified Commit c7acfe7b authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #20477 from mvdbeek/fix_legacy_metadata_get_file

[24.2] Fix legacy get_metadata_file controller route
parents 446c8deb 4620f071
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ class DatasetInterface(BaseUIController, UsesAnnotations, UsesItemRatings, UsesE
        """Allows the downloading of metadata files associated with datasets (eg. bai index for bam files)"""
        # Backward compatibility with legacy links, should use `/api/datasets/{hda_id}/get_metadata_file` instead
        fh, headers = self.service.get_metadata_file(
            trans, history_content_id=hda_id, metadata_file=metadata_name, open_file=True
            trans, history_content_id=self.decode_id(hda_id), metadata_file=metadata_name, open_file=True
        )
        trans.response.headers.update(headers)
        return fh