From 9698fcd6f78e02f4491b165e83eff02e325db007 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20P=C3=ADsa=C5=99?= Date: Sun, 17 Apr 2016 17:42:20 +0200 Subject: [PATCH] doc: ISDS replaces some characters with their ASCII approximation Our wise ISDS creators decided that people must not use some characters like Czech double quotes. --- doc/message | 5 +++-- doc/web_service_interface | 26 ++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/doc/message b/doc/message index 50de51a..e16f37a 100644 --- a/doc/message +++ b/doc/message @@ -3,7 +3,7 @@ Message specification Source: Provozní řád ISDS, version 2016-02-07 Source: Webové služby rozhranní ISDS pro manipulaci s datovými zprávami, - version 2.48 (2015-11-01) + version 2.49 (2016-02-01) Source: MIME Media Types Source: O2. Datové schránky: Informace pro dodavatele aplikací, version @@ -67,7 +67,8 @@ application/x-msdownload. Attribute dmFileDescr (so called annotation) must present and must contain file name of the Document. Even if dmMimeType exists, ISDS uses THIS attribute to detect Document format (according file name extension) and checks content -for format conformance. +for format conformance. Especially this attribute is subject of a string +rewrite. List of allowed MIME types is copied (and sometimes agumented) in appendix of Webové služby rozhranní ISDS pro manipulaci s datovými zprávami. diff --git a/doc/web_service_interface b/doc/web_service_interface index 7d739c1..95c54cc 100644 --- a/doc/web_service_interface +++ b/doc/web_service_interface @@ -3,9 +3,9 @@ Web service interface Source: Provozní řád informačního systému (2015-06-07) Source: Webové služby ISDS pro manipulaci s datovými zprávami, -version 2.48 (2015-11-01) + version 2.49 (206-02-01) Source: Webové služby ISDS pro vyhledávání datových schránek, -version 2 (2009-07-26) + version 2 (2009-07-26) Web services for messages are synchronous, web services for boxes are @@ -57,3 +57,25 @@ responses or returning error responses. Clients must maintain their own history or delivered messages and download only messages or list of messages that have not yet been delivered. + +String rewrite +============== + +The dmFileDescr document message value and some unspecified other values are transformed to +more simple and "secure" form by the ISDS server when receving them from +a client: + +Class Input characters Output +------------------------------------------------------------------------- +XML <, > _ (underscore) +White space \r, \n, \t, \x20 (an ASCII space) +White space \u2028, \u2029, \u202F, \u00A0, \x20 (an ASCII space) +Control \u0080--\u009F removed +Spaces \u2000--\u200A, \u205F, \x20 (an ASCII space) +Word splitting \u200B, \u00AD removed +Dashes \u2010--\u2015 - (an ASCII hyphen) +Quotes \u201C--\u201F " (ASCII double quotes) +Formatting \u200C--\u200F removed +Formatting \u202A--\u202F removed +Invisible \u2061--\u206F removed + -- 2.11.4.GIT