There is a limit to the size of the corruption report a server must accept

This commit is contained in:
Jean-Paul Calderone 2023-03-10 11:17:09 -05:00
parent 8645462f4e
commit 369d26f0f8

View File

@ -692,7 +692,7 @@ It also includes potentially important details about the share.
The request body MUST validate against this CDDL schema:: The request body MUST validate against this CDDL schema::
{ {
reason: tstr reason: tstr .size (1..32765)
} }
For example:: For example::
@ -704,6 +704,11 @@ If the identified **storage index** and **share number** are known to the server
In this case the response SHOULD be ``OK``. In this case the response SHOULD be ``OK``.
If the response is not accepted then the response SHOULD be ``Not Found`` (404). If the response is not accepted then the response SHOULD be ``Not Found`` (404).
Discussion
``````````
The seemingly odd length limit on ``reason`` is chosen so that the *encoded* representation of the message is limited to 32768.
Reading Reading
~~~~~~~ ~~~~~~~