Skip to content

Commit 77781c3

Browse files
committed
Merge remote-tracking branch 'upstream/wms_new_layer_factories_clean'
2 parents ffbdcb8 + 681e729 commit 77781c3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

eoxserver/resources/coverages/management/commands/eoxs_collection_delete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Command(CommandOutputMixIn, BaseCommand):
7171
@nested_commit_on_success
7272
def handle(self, *args, **kwargs):
7373
identifier = kwargs['identifier']
74-
if identifier:
74+
if not identifier:
7575
raise CommandError("Missing the mandatory collection identifier.")
7676

7777
try:
@@ -104,7 +104,7 @@ def _delete_collection(self, collection, recursive, force):
104104
sub_collection, recursive, force
105105
)
106106

107-
if not force and collection.eo_objects.exist():
107+
if not force and collection.eo_objects.count() > 0:
108108
raise CommandError(
109109
"Collection '%s' is not empty." % collection.identifier
110110
)

eoxserver/services/gdal/wcs/referenceable_dataset_renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def render(self, params):
132132
) for i, path in enumerate(out_ds.GetFileList())
133133
]
134134

135-
if params.mediatype.startswith("multipart"):
135+
if params.mediatype and params.mediatype.startswith("multipart"):
136136
reference = "cid:coverage/%s" % result_set[0].filename
137137

138138
if subsets.has_x and subsets.has_y:

eoxserver/services/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class to be used. It must be capable to work with iterators.
188188
else:
189189
boundary = None
190190
content_type = result_set[0].content_type or "application/octet-stream"
191-
headers = get_headers(result_set[0])
191+
headers = tuple(get_headers(result_set[0]))
192192

193193

194194
def response_iterator(items, boundary=None):

0 commit comments

Comments
 (0)