Skip to content

Commit

Permalink
- Typo: [Backport to 3.3.x][Fixes #9173] Upload Workflow: The finali…
Browse files Browse the repository at this point in the history
…ze task set "INVALID" state if the final step vew returns "error" without actually checking the real Import Session state (#9181)
  • Loading branch information
Alessio Fabiani authored Apr 20, 2022
1 parent 5a61bd4 commit f547e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/upload/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def final_step(upload_session, user, charset="UTF-8", layer_id=None):
raise UploadException.from_exc(
_("The GeoServer Import Session is no more available"), e)
upload_session.import_session = import_session
upload_session = Upload.objects.update_from_session(upload_session, resource=saved_layer)
upload_session = Upload.objects.update_from_session(upload_session, layer=saved_layer)

_tasks_failed = any([_task.state in ["BAD_FORMAT", "ERROR", "CANCELED"] for _task in import_session.tasks])
_tasks_waiting = any([_task.state in ["NO_CRS", "NO_BOUNDS", "NO_FORMAT"] for _task in import_session.tasks])
Expand Down

0 comments on commit f547e80

Please sign in to comment.