<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/http/routing, branch master</title>
<subtitle>A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/'/>
<updated>2026-04-29T19:29:07+00:00</updated>
<entry>
<title>Make request non const</title>
<updated>2026-04-29T19:29:07+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2026-01-29T01:08:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=59cb2010095fab358ff1fc86526af7c6d6805e5a'/>
<id>urn:sha1:59cb2010095fab358ff1fc86526af7c6d6805e5a</id>
<content type='text'>
In preparation for allowing handlers to "steal" the input (thus saving
memory), make the router pass a non-const Request down the pipeline.

Tested: Redfish service validator passes.  No functional changes.

Change-Id: Ic2f44081bc7b6a0e4a82c6ac498eb040574e79be
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Fix the corrupted Trie routing tree</title>
<updated>2025-10-03T15:00:09+00:00</updated>
<author>
<name>Myung Bae</name>
<email>myungbae@us.ibm.com</email>
</author>
<published>2025-10-02T15:01:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=a9da2b2b50758ec9657ab7034e57dadb3e62abd0'/>
<id>urn:sha1:a9da2b2b50758ec9657ab7034e57dadb3e62abd0</id>
<content type='text'>
The routing table may potentially become corrupted during the routing
table construction as the vector element pointer becomes invalid if the
vector is resized [1].

http/routing/trie.hpp#L241:
```
    ContainedType&amp; node = nodes[idx];
    size_t* param = &amp;node.stringParamChild;
    if (str1 == "&lt;path&gt;")
    {
        param = &amp;node.pathParamChild;
    }
    if (*param == 0U)
    {
L249:
        *param = newNode();   // &lt;---
    }
    idx = *param;
```

Here, `newNodes()` at L249 may resize the vector of `nodes[]` and thus
the reference of `nodes[idx]` becomes invalid and thus the previously
saved the pointer of `param` is invalid.

The similar issue is also at sub_route_trie construction [5].

This problem may be shown during CI/valgrind test depending on the order
of route setups in [2].

For example, for the commit 39574 [3], if `requestsRoutesAssembly()` is
added earlier than `requestRoutesProcessorCollection()`, it causes
CI/valgrind test fails [3].

The error looks like [4].

[1] https://github.com/openbmc/bmcweb/blob/master/http/routing/trie.hpp#L241
[2] https://github.com/openbmc/bmcweb/blob/master/redfish-core/src/redfish.cpp
[3] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/39574
[4] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/39574/comment/15e652e0_f8881ffc/
[5] https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/sub_route_trie.hpp#L160

Tested:
- CI with https://gerrit.openbmc.org/c/openbmc/bmcweb/+/39574 passes
  after rebase of having earlier `requestsRoutesAssembly()`.
- Redfish Service Validator passes

Change-Id: I349777dfab65f2d41eb5db25796d82322b3c36cc
Signed-off-by: Myung Bae &lt;myungbae@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>Remove namespace in http layer</title>
<updated>2025-08-26T02:46:57+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2024-10-10T00:00:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=05c273553e3e3f6ce0a6864cccb27e93f51c634c'/>
<id>urn:sha1:05c273553e3e3f6ce0a6864cccb27e93f51c634c</id>
<content type='text'>
Within this namespace, we don't need to call crow, we are already in the
crow namespace.

Tested: Code compiles.

Change-Id: Ida57624ef1157f98f2719b5c3af536aebaca601e
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>OEM Route Handling Infrastructure</title>
<updated>2025-04-03T15:26:31+00:00</updated>
<author>
<name>rohitpai</name>
<email>rohitpai77@gmail.com</email>
</author>
<published>2025-01-03T13:43:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=c1a75ebc267a78853fb26a3da8c6b3388e6ee07c'/>
<id>urn:sha1:c1a75ebc267a78853fb26a3da8c6b3388e6ee07c</id>
<content type='text'>
Goal of the MR is to provide infrastructure support in bmcweb to manage
the OEM fragment handling separately. OEM schema are vendor defined and
per DMTF resource we could have multiple vendor defined OEM schema to be
enabled.

The feature allows registration of route handler per schema per OEM
namespace.
Example
```
REDFISH_SUB_ROUTE&lt;"/redfish/v1/Managers/&lt;str&gt;/#/Oem/OpenBmc"&gt;(service,
 HttpVerb::Get)(oemOpenBmcCallback);
REDFISH_SUB_ROUTE&lt;"/redfish/v1/Managers/&lt;str&gt;/#/Oem/Nvidia"&gt;(service,
 HttpVerb::Get)(oemNidiaCallback);
```

We can have separate vendor defined route handlers per resource. Each of
these route handlers can populate their own vendor specific OEM data.
The OEM code can be better organized and enabled/disabled as per the
platform needs. The current MR has the code changes related to handling
GET requests alone. The feature only supports requests
where the response payload is JSON.

Tests
- All UT cases passes
- New UT added for RF OEM router passes
- Service Validator passes on qemu
- GET Response on Manager/bmc resource contains the OEM fragment

```
curl -c cjar -b cjar -k -X GET https://127.0.0.1:2443/redfish/v1/Managers/bmc
{
  "@odata.id": "/redfish/v1/Managers/bmc",
  "@odata.type": "#Manager.v1_14_0.Manager",

  "Oem": {
    "OpenBmc": {
      "@odata.id": "/redfish/v1/Managers/bmc#/Oem/OpenBmc",
      "@odata.type": "#OpenBMCManager.v1_0_0.Manager",
      "Certificates": {
        "@odata.id": "/redfish/v1/Managers/bmc/Truststore/Certificates"
      }
    }
  },

  "UUID": "40575e98-90d7-4c10-9eb5-8d8a7156c9b9"
}
```

Change-Id: Ic82aa5fe760eda31e2792fbdfb6884ac3ea613dc
Signed-off-by: Rohit PAI &lt;rohitpai77@gmail.com&gt;
</content>
</entry>
<entry>
<title>Use Node as template parameter for creating Tries</title>
<updated>2025-04-03T15:26:31+00:00</updated>
<author>
<name>Rohit PAI</name>
<email>ropai@nvidia.com</email>
</author>
<published>2025-04-02T06:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=81f915bc39a97a38b610a461394a795cb49c3f6d'/>
<id>urn:sha1:81f915bc39a97a38b610a461394a795cb49c3f6d</id>
<content type='text'>
Abstracting Node can help us extend Tries for other use case like sub
routes management

Tested
1. Service Validator passes

Change-Id: I4703af9f30107ce2bc3685683a5fd5b669341d35
Signed-off-by: Rohit PAI &lt;ropai@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Move router trie to its own file</title>
<updated>2025-04-03T15:26:31+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2025-03-26T19:13:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=5b607eae18bd270a300e319d12b391dd33e2a81d'/>
<id>urn:sha1:5b607eae18bd270a300e319d12b391dd33e2a81d</id>
<content type='text'>
Just as the title says.   Trie is useful outside of just the router (for
making other routers.)

Change-Id: I961927f2cea44ee78f32337e64741edad9dc542f
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Break out sse into a compile unit</title>
<updated>2025-02-27T07:32:18+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2025-02-23T20:31:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=e60300aee76b7875f5fc407acede2f05ddbdd9bc'/>
<id>urn:sha1:e60300aee76b7875f5fc407acede2f05ddbdd9bc</id>
<content type='text'>
Verify similar to beb96b0 Break out websockets

Break out the SSE functions into a separate compile unit.  This allows
the SSE sockets in beast to be compiled separately, which significantly
reduces the overall compile time by a few seconds.  Code is identical
with the exceptions of minor header definitions to convert header-only
to compile unit.

Change-Id: I5aae4f17cbd2badf75b3e0bb644a2309f6300663
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Break out websockets</title>
<updated>2025-02-12T16:11:14+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2025-02-09T17:22:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=beb96b0b7b1c4d9630dc329d86db119ed3ead086'/>
<id>urn:sha1:beb96b0b7b1c4d9630dc329d86db119ed3ead086</id>
<content type='text'>
When running clang build analyzer it shows that one of the largest
templates in the Redfish compile unit (which is also the slowest compile
unit) is actually the beast websocket instantiations, taking about 6
seconds to compile on their own.

Luckily, the websocket layer is already split into Websocket and
WebsocketImpl classes that we inherited from crow.  Unfortunately, crow
puts these two classes into the same file.  So.

1. Move the WebSocketImpl class into its own header.
2. Move the websocket() upgrade routes in the websocket routing rule
   into their own compile unit to take advantage of only needing
   WebsocketImpl in this compile unit.

Tested: Drops build time by several seconds depending on what other
level of optimizations are present (1:15 -&gt; 1:00)

[1] https://github.com/aras-p/ClangBuildAnalyzer

Change-Id: Ia0445eae4a793bb4ccb28136f30d2a05662c529c
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>clang-format: update latest spec and reformat</title>
<updated>2025-02-04T20:09:52+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2025-02-03T19:29:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=504af5a0568171b72caf13234cc81380b261fa21'/>
<id>urn:sha1:504af5a0568171b72caf13234cc81380b261fa21</id>
<content type='text'>
Copy the latest format file from the docs repository and apply.

Change-Id: I2f0b9d0fb6e01ed36a2f34c750ba52de3b6d15d1
Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
</content>
</entry>
<entry>
<title>Fix includes</title>
<updated>2025-01-31T18:11:36+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2025-01-28T23:32:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=d78572018fc2022091ff8b8eb5a7fef2172ba3d6'/>
<id>urn:sha1:d78572018fc2022091ff8b8eb5a7fef2172ba3d6</id>
<content type='text'>
Clang-tidy misc-include-cleaner appears to now be enforcing
significantly more headers than previously.  That is overall a good
thing, but forces us to fix some issues.  This commit is largely just
taking the clang-recommended fixes and checking them in.  Subsequent
patches will fix the more unique issues.

Note, that a number of new ignores are added into the .clang-tidy file.
These can be cleaned up over time as they're understood.  The majority
are places where boost includes a impl/x.hpp and x.hpp, but expects you
to use the later.  include-cleaner opts for the impl, but it isn't clear
why.

Change-Id: Id3fdd7ee6df6c33b2fd35626898523048dd51bfb
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
Signed-off-by: Gunnar Mills &lt;gmills@us.ibm.com&gt;
</content>
</entry>
</feed>
