summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-09-14 23:16:51 +0300
committerEd Tanous <edtanous@google.com>2021-10-05 20:51:01 +0300
commitd32c4fa936f9a88fc1dd124201ed11a6a90a18c5 (patch)
treefad1030fb5244223fa81ae84b0e4cea8b0bdbd44 /subprojects
parentb7ff344535c42af074c60bfb272ef66a2ba157b4 (diff)
downloadbmcweb-d32c4fa936f9a88fc1dd124201ed11a6a90a18c5.tar.xz
Boost uri update
Update to the latest version of boost::uri The newest version of boost uri makes some breaking changes that we need to account for. At the same time, we take the opportunity to move to the error code based parse methods that don't rely on exceptions. The biggest changes are: The standalone build is no longer present. A discussion with the boost::url maintainers shows that our best option is to do a simple copy of the headers, and compile boost/url/src.hpp in a separate file. This is intended to allow people to pull the library in "standalone" and not have to rely on the build machinery in boost-url, which we don't really need. Interestingly, this file doesn't have a newline at the end, which clang correctly flags. OpenBMC doesn't really need that warning, as we rely on clang-format to do that, so we add -Wno-newline-eof clang to get the code to compile there. All url parsers are moved to the parse_uri, or parse_relative_uri equivalents. This slightly tightens the requirements around what URLs are accepted, but in no ways that should break anything. (Ie, "/redfish/v1" is no longer accepted for a virtual media endpoint. boost::urls::url_view::params_type has been renamed to query_params_type, and the relevant methods have been updated. Because of the missing standalone mode, we now need to use boost::string_view which doesn't implicitly construct from std::string_view. Some discussion on the boost list shows that this is coming soon, so that cruft can eventually be cleaned up, but for now we need the construction. Tested: Loaded in qemu, and ran some URLs (/redfish/v1 and /redfish/v1/Chassis) to ensure that the url handler functions as intended. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I5843776d4ec01b4d92af2ee3a9cf1ebb1d920ae7
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/boost-url.wrap2
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/boost-url.wrap b/subprojects/boost-url.wrap
index c41d2d119e..3d00dcf8cc 100644
--- a/subprojects/boost-url.wrap
+++ b/subprojects/boost-url.wrap
@@ -1,3 +1,3 @@
[wrap-git]
-revision = a56ae0df6d3078319755fbaa67822b4fa7fd352b
+revision = 4f712ed69a04a344957d22efa5dc111b415b3aff
url = https://github.com/CPPAlliance/url.git \ No newline at end of file