commit | f4ef2acd1f59d318a3cf66e8de835ce574a1356e | [log] [tgz] |
---|---|---|
author | Chanyoung Park <park910113@gmail.com> | Wed May 06 19:24:34 2020 -0700 |
committer | Chanyoung Park <park910113@gmail.com> | Wed May 13 01:55:19 2020 +0000 |
tree | 93fd6ec1b25f3c6606b9917e5d5f3555b110cc38 | |
parent | e9a14131650d30389eaf9dc38a3c32f1cb552f52 [diff] |
Fix incorrect decoding of query string QueryString class decodes incorrectly when it encounters percent-encoded query strings "%xy", and cause the http request class to have wrong query parameters. Fixed a bug in the process of converting 2-digit hexadecimal number to a single byte. Tested: - Generate requests contains percent-encoded query strings - Check the urlParams field in crow::Request class and it works as expected Example: - Before: GET https://{bmc}/...?a=b%20c&d=e req->urlParams: [ a=b, d=e ] - After: GET https://{bmc}/...?a=b%20c&d=e req->urlParams: [ a=b c, d=e ] Signed-off-by: Chanyoung Park <park910113@gmail.com> Change-Id: Ic1bfc74bbf4882e55445dba246ca769699fab332
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.