Skip to content

Commit

Permalink
Limit tool markdown read size per mvdbeek request.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Mar 12, 2025
1 parent e22739a commit a51200e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/services/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def report(self, trans: ProvidesHistoryContext, dataset_id: DecodedDatabaseIdFie
dataset_instance = self.hda_manager.get_accessible(dataset_id, trans.user)
self.hda_manager.ensure_dataset_on_disk(trans, dataset_instance)
file_path = trans.app.object_store.get_filename(dataset_instance.dataset)
raw_content = open(file_path).read()
raw_content = open(file_path).read(1024 * 10)
internal_markdown = resolve_job_markdown(trans, dataset_instance.creating_job, raw_content)
content, extra_attributes = ready_galaxy_markdown_for_export(trans, internal_markdown)
return ToolReportForDataset(
Expand Down

0 comments on commit a51200e

Please sign in to comment.