Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-984

Knox dropping request body for http DELETE requests

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.13.0
    • None
    • Server
    • None

    Description

      The problem is with the deleting users in Ranger when proxied through Knox.

      The issue is the DELETE http request. Ranger appears to be sending the delete data (user to be deleted) as message body.

      https://tools.ietf.org/html/rfc2616#section-4.3 http/1.1 specs are not clear on whether DELETE should support method body or not, it explicitly states so, for PUT and POST though. As a result HttpClient implementation does not support request body and the the request body is dropped (see org.apache.http.client.methods.HttpDelete) which is the problem we are seeing here.

      It appears to me that the REST api implementation for DELETE appears to be non-standard for Ranger.

      Attachments

        Issue Links

        Activity

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

          People

            smore Sandeep More
            smore Sandeep More
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment