Skip to content

Commit

Permalink
Merge branch 'release_22.01' into release_22.05
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 23, 2022
2 parents 3a85b25 + a6ea0a6 commit 522e0c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/base/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def get_user(self):
def set_user(self, user):
"""Set the current user."""
if self.galaxy_session:
if user.bootstrap_admin_user:
if user and not user.bootstrap_admin_user:
self.galaxy_session.user = user
self.sa_session.add(self.galaxy_session)
self.sa_session.flush()
Expand Down
7 changes: 6 additions & 1 deletion lib/galaxy/webapps/galaxy/api/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
API operations on the contents of a history dataset.
"""
import logging
from io import IOBase
from io import (
BytesIO,
IOBase,
)
from typing import (
Any,
cast,
Expand Down Expand Up @@ -255,6 +258,8 @@ def display(
return FileResponse(file_name, headers=headers)
elif isinstance(display_data, ZipstreamWrapper):
return StreamingResponse(display_data.response(), headers=headers)
elif isinstance(display_data, bytes):
return StreamingResponse(BytesIO(display_data), headers=headers)
return StreamingResponse(display_data, headers=headers)

@router.get(
Expand Down

0 comments on commit 522e0c2

Please sign in to comment.