Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0.0
-
None
Description
When firing import command using
/api/atlas/admin/importfile
when file provided in the import_options.json doesn't have read permission or file is not present , Atlas throws 500 Internal server error but with proper error message.
Example :
{"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException: invalid parameters: /exportimport/db5.zip: file not found"}
{"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException: java.io.IOException: File '/exportimport/db6.zip' cannot be read"}
Expected that Atlas would throw 400 Bad Request instead of 500 Internal Server error.