Problem Description: The current error is confusing
In CLI:
2022-03-24 06:08:34.887628 | controller | Galaxy import message: ERROR - Collection processing was not successful: {'non_field_errors': [ErrorDetail(string='The fields namespace, name, version must make a unique set.', code='unique')]} 2022-03-24 06:08:34.887658 | controller | ERROR! Galaxy import process failed: PulpTemporaryFile object can't be deleted because its pulp_id attribute is set to None. (Code: UNKNOWN)
UI "Error message":
PulpTemporaryFile object can't be deleted because its pulp_id attribute is set to None.
UI Import Log:
Collection processing was not successful: {'non_field_errors': [ErrorDetail(string='The fields namespace, name, version must make a unique set.', code='unique')]}
Proposed Solution:
- Improve the error message inside galaxy-importer
- Possible suggestion: “The fields namespace, name, version must make a unique set” or “The collection version you are trying to import already exists in the system”
- Catch the PulpTemporaryFile error (that occurs likely outside the galaxy-importer) and provide a better error or warning message or allow galaxy-importer error message to prevail - see which is best