From 65a8841b38cdff90ce21e12a0eb17ebffa9da741 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sun, 6 Sep 2020 10:50:01 +0200 Subject: [PATCH] [#1102] Updated doc --- ChangeLog | 9 +++++++++ doc/sphinx/arm/config.rst | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index a3ae341cde..b2d41437ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +1802. [bug] fdupont + Removed the bug which allowed for repeating the same configuration + parameter multiple times in the same scope. The second occurrence + of the parameter overwrote the first occurrence causing server + misconfiguration. Starting from this change an error is raised + when the same parameter occurs multiple times in a given scope. + the location of the first value. + (Gitlab #1102) + 1801. [doc] fdupont Moved JSON files describing commands to the share directory and adding a new access entry taking read or write values. diff --git a/doc/sphinx/arm/config.rst b/doc/sphinx/arm/config.rst index cffa05c44d..d604cec62e 100644 --- a/doc/sphinx/arm/config.rst +++ b/doc/sphinx/arm/config.rst @@ -34,6 +34,16 @@ defined in `RFC 7159 `__ and `ECMA In particular, the only boolean values allowed are true or false (all lowercase). The capitalized versions (True or False) are not accepted. +Even if the JSON standard (ECMA 404) does not require JSON objects +(i.e. name/value maps) to have unique entries Kea implements them +using a std::map so: + +- if there are multiple values for the same name in an object/map + the last value overwrites previous values + +- configuration file parsers since Kea 1.9.0 version raise a syntax error + in such cases + Kea components use an extended JSON with additional features allowed: - shell comments: any text after the hash (#) character is ignored.