[
https://issues.apache.org/jira/browse/ATLAS-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
chaitali borole reassigned ATLAS-4147:
--------------------------------------
Assignee: chaitali borole
> [Atlas: Glossary Term Bulk Import] When un_supported file type is passed
> error message displays "file type {0}"
> ---------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-4147
> URL: https://issues.apache.org/jira/browse/ATLAS-4147
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Reporter: Dharshana M Krishnamoorthy
> Assignee: chaitali borole
> Priority: Major
>
>
> Repro steps:
> Pass unsupported file type to the glossary term bulk import
> {code:java}
> curl --request POST -u user:password
> 'https://<cluster>/api/atlas/v2/glossary/import' \
> -H 'Accept: application/json' \
> -H 'Cache-Control: no-cache' \
> -H 'X-Requested-With: XMLHttpRequest' \
> -H 'X-XSRF-HEADER: ""' \
> -H 'Content-Type: multipart/form-data' \
> -F [email protected] \
> --compressed \
> --insecure{code}
> The following error message is displayed
> {code:java}
> {"errorCode":"ATLAS-400-00-098",
> "errorMessage":"The provided file type {0} is not supported."} {code}
> Expectation:
> Instead of "file type \{0}" actual file type should be displayed
> Suggestion:
> Along with the above message, display the supported file format too
> Example:
> {code:java}
> The provided file type .py is not supported. Supported file formats: .csv,
> .xls{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)