From 1f2d08fbe5c12772769b7fe14fd69951bf29fa80 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Thu, 1 Aug 2013 03:47:39 +0000 Subject: [PATCH] HDFS-4513. Clarify in the WebHDFS REST API that all JSON respsonses may contain additional properties. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1509075 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/site/apt/WebHDFS.apt.vm | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index e8f329102d..21b5f79616 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -281,6 +281,9 @@ Release 2.1.1-beta - UNRELEASED IMPROVEMENTS + HDFS-4513. Clarify in the WebHDFS REST API that all JSON respsonses may + contain additional properties. (szetszwo) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm b/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm index 7735f8dafe..71063c3a69 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm @@ -185,6 +185,10 @@ curl -i --negotiate -u : "http://:/webhdfs/v1/?op=..." curl -i "http://:/webhdfs/v1/?delegation=&op=..." +--------------------------------- + [] + + See also: {{{../hadoop-common/HttpAuthentication.html}Authentication for Hadoop HTTP web-consoles}} + * {Proxy Users} When the proxy user feature is enabled, a proxy user

may submit a request on behalf of another user . @@ -971,6 +975,12 @@ Transfer-Encoding: chunked See {{{http://tools.ietf.org/id/draft-zyp-json-schema-03.html}draft-zyp-json-schema-03}} for the syntax definitions of the JSON schemas. + <> that the default value of + {{{http://tools.ietf.org/id/draft-zyp-json-schema-03.html#additionalProperties}<<>>}} + is an empty schema which allows any value for additional properties. + Therefore, all WebHDFS JSON responses allow any additional property. + However, if additional properties are included in the responses, they are + considered as optional properties in order to maintain compatibility. ** {Boolean JSON Schema}