atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ATLAS-2132) Error code during invalid file path/unreadable file provided during import
Date Tue, 19 Sep 2017 06:42:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Madhan Neethiraj resolved ATLAS-2132.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.8.2
                   0.9-incubating

Committed to following branches:
 - master: http://git-wip-us.apache.org/repos/asf/atlas/commit/67c04c63
 - branch-0.8: http://git-wip-us.apache.org/repos/asf/atlas/commit/1b56bec7

> Error code during invalid file path/unreadable file provided during import
> --------------------------------------------------------------------------
>
>                 Key: ATLAS-2132
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2132
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating
>            Reporter: Sharmadha Sainath
>            Assignee: Péter Gergő Barna
>            Priority: Minor
>             Fix For: 0.9-incubating, 0.8.2
>
>         Attachments: ATLAS-2132-2.patch, ATLAS-2132.patch
>
>
> When firing import command using 
> {code}
> /api/atlas/admin/importfile
> {code}
> 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  :
> {code}
> {"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException:
invalid parameters: /exportimport/db5.zip: file not found"}
> {code}
> {code}
> {"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException:
java.io.IOException: File '/exportimport/db6.zip' cannot be read"}
> {code}
> Expected that Atlas would throw 400 Bad Request instead of 500 Internal Server error.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message