Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1315

[export/import] if input file content is not valid for import then it does not give proper error, it gives null pointer exception in logs

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • Ranger
    • None

    Description

      1) create an input file for importing
      2) create some invalid entry ( for ex: miss the service name attribute or some other essential attribute)
      3) upload the file and import it
      ER: proper error should be thrown, saying content of the file is not valid or some thing similar
      AR: Null pointer exception is thrown.
      2017-01-16 17:03:17,665 [http-bio-6080-exec-54] ERROR org.apache.ranger.rest.ServiceREST (ServiceREST.java:1885) - Error

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mehul Mehul Parikh
            deepakhuawei Deepak Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment