Skip to content

Commit

Permalink
fix another 500 error on no local collection (#116)
Browse files Browse the repository at this point in the history
* fix another 500 error on no local collection

* update changelog
  • Loading branch information
briantist authored Oct 9, 2023
1 parent eac159a commit a60e3b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelogs/fragments/114-bugfixes.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
bugfixes:
- Requests for collections that were not already present in artifactory resulted in a 500 internal server error (https://github.com/briantist/galactory/issues/112).
- Requests for collections that were not already present in artifactory resulted in a 500 internal server error (https://github.com/briantist/galactory/issues/112, https://github.com/briantist/galactory/pull/116).
- Requests proxied to a v2 upstream endpoint that supports pagination caused a 400 error from the upstream due to the inclusion of the v3 ``limit`` query string parameter (https://github.com/briantist/galactory/issues/113).
2 changes: 1 addition & 1 deletion galactory/api/v2/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def collection(namespace, collection):

if upstream_result:
if colgroup is None:
result = upstream_result
return upstream_result
else:
try:
upstream_version = VersionInfo.parse(upstream_result['latest_version']['version'])
Expand Down
2 changes: 1 addition & 1 deletion galactory/api/v3/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def collection(namespace, collection):

if upstream_result:
if colgroup is None:
result = upstream_result
return upstream_result
else:
try:
upstream_version = VersionInfo.parse(upstream_result['highest_version']['version'])
Expand Down

0 comments on commit a60e3b4

Please sign in to comment.