You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Rushabh S Shah (JIRA)" <ji...@apache.org> on 2017/12/06 19:13:00 UTC

[jira] [Commented] (HDFS-6305) WebHdfs response decoding may throw RuntimeExceptions

    [ https://issues.apache.org/jira/browse/HDFS-6305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280707#comment-16280707 ] 

Rushabh S Shah commented on HDFS-6305:
--------------------------------------

I think we dropped {{TestWebHdfsBadResponses}} class while committing the patch.

> WebHdfs response decoding may throw RuntimeExceptions
> -----------------------------------------------------
>
>                 Key: HDFS-6305
>                 URL: https://issues.apache.org/jira/browse/HDFS-6305
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 2.0.0-alpha, 3.0.0-alpha1
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>            Priority: Critical
>             Fix For: 2.5.0
>
>         Attachments: HDFS-6305.patch
>
>
> WebHdfs does not guard against exceptions while decoding the response payload.  The json parser will throw RunTime exceptions on malformed responses.  The json decoding routines do not validate the expected fields are present which may cause NPEs.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org