<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/features, 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-09-04T07:33:51+00:00</updated>
<entry>
<title>openbmc_rest: Refactor subscribe onmessage lambda</title>
<updated>2026-09-04T07:33:51+00:00</updated>
<author>
<name>Yuvakumar Selvamani</name>
<email>yuvakumars@ami.com</email>
</author>
<published>2026-08-20T07:17:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=e10c52ed88e8ef349777f054733bcf9f5fc70ba3'/>
<id>urn:sha1:e10c52ed88e8ef349777f054733bcf9f5fc70ba3</id>
<content type='text'>
Extract the long onmessage() websocket lambda in requestRoutes() into a
named function, handleDbusMonitorMessage(), per the &lt;10 line lambda
coding standard in docs/COMMON_ERRORS.md.

Tested:
- No other functional change.
- Tested on an AST2600 SoC platform.
- Redfish Service Validator passed with no new errors or warnings
introduced.

Change-Id: I340df11dfbc626e26dab931f0ca0581cbd17e102
Signed-off-by: Yuvakumar Selvamani &lt;yuvakumars@ami.com&gt;
</content>
</entry>
<entry>
<title>Flag long lambdas</title>
<updated>2026-07-01T17:10:08+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2026-06-22T16:53:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=8176ae6778015743b77e8744c046bc50edf13cc4'/>
<id>urn:sha1:8176ae6778015743b77e8744c046bc50edf13cc4</id>
<content type='text'>
Long lambdas have been documented as an anti-pattern for some time.[1]
Despite this being generally understood, bmcweb has a long ways to go
cleaning these up, and routinely code is submitted in violation of this
anti-pattern.

Invent an ast-grep rule that can identify when new examples of this
anti-pattern are added, and ignore the existing 200+ examples that are
in the codebase already using ast-grep ignore.  These flags will give us
something to search for as we clean this up, and will help to prevent
new instances from being added unintentionally.

[1] https://github.com/openbmc/docs/blob/master/anti-patterns.md#very-long-lambda-callbacks

Tested: Comment only change.  ast-grep passes.  Manually removing an
ast-grep ignore flag shows as a failure in ast-grep scan

Change-Id: I77d634a393884969f184d2c39c02cc08288d5a29
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>sdbusplus: use shorter type aliases</title>
<updated>2026-06-19T11:42:03+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2026-06-19T11:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=a887d6d977f0c058f999dc2a7f479420623e12e4'/>
<id>urn:sha1:a887d6d977f0c058f999dc2a7f479420623e12e4</id>
<content type='text'>
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines.  Possible replacements are for:
  * exception_t
  * manager_t
  * match
  * match_rules
  * message_t
  * object_t
  * slot_t

Change-Id: Iaf2a83fb67d57a6fafb664d27b349add17a96bcd
Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
</content>
</entry>
<entry>
<title>sdbusplus: use shorter type aliases</title>
<updated>2026-04-15T01:50:54+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2026-04-14T11:26:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=36498b406abb3be754e84072d50f16d9dcbbfa8f'/>
<id>urn:sha1:36498b406abb3be754e84072d50f16d9dcbbfa8f</id>
<content type='text'>
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines.  Possible replacements are for:
  * bus_t
  * exception_t
  * manager_t
  * match_t
  * message_t
  * object_t
  * slot_t
  * object_path

Change-Id: Iace20f9ad26e8d9dc234979e7a4087d599da2641
Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
</content>
</entry>
<entry>
<title>Port nlohmann::json::parse uses to sax</title>
<updated>2026-03-31T18:53:59+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2026-02-10T17:21:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=d4073bd32f3efe46d406fdfe538b022e1ca89570'/>
<id>urn:sha1:d4073bd32f3efe46d406fdfe538b022e1ca89570</id>
<content type='text'>
We should have a single entry point where we do json parsing.  There are
configurations for nlohmmann that we had previously documented, but were
not well enforced.  Move all uses to using the helper parse functions.

Tested: Unit tests pass.
Redfish service validator passes.

Change-Id: I2a8aed9327b6b15219dc9b4d6db146b69bcd8eb3
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Fix routes missing trailing slash</title>
<updated>2026-03-24T21:42:34+00:00</updated>
<author>
<name>Davy Marrero</name>
<email>dmarrero@nvidia.com</email>
</author>
<published>2026-03-13T00:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=a39a77803146819e34e53605cb22d240ac446f73'/>
<id>urn:sha1:a39a77803146819e34e53605cb22d240ac446f73</id>
<content type='text'>
bmcweb's route handler generates handlers for both /foo/ and /foo
when a route is registered with a trailing slash.  This change adds
trailing slashes to 24 routes that were missing them.

Existing clients are not affected: the router already accepted
both forms.  This change makes the route registrations consistent
and lets the trailing-slash ast-grep rule pass without suppressions.

Routes using &lt;path&gt; captures already match everything and do not
need a trailing slash, so those are excluded in the ast-grep rule.

Tested: ast-grep scan --error exits 0.

Change-Id: I9de641bd8ffec773b313b7e4da9034be0fd7e8e8
Signed-off-by: Davy Marrero &lt;dmarrero@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Fix spelling mistakes using codespell</title>
<updated>2026-02-24T18:30:31+00:00</updated>
<author>
<name>George Liu</name>
<email>liuxiwei@ieisystem.com</email>
</author>
<published>2026-02-24T02:31:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=8f04d1710bb90a9dd225ce9b82cb0c157460b4a4'/>
<id>urn:sha1:8f04d1710bb90a9dd225ce9b82cb0c157460b4a4</id>
<content type='text'>
Signed-off-by: George Liu &lt;liuxiwei@ieisystem.com&gt;
Change-Id: If170e53077bc150d0062cd441394daea71f842b1
</content>
</entry>
<entry>
<title>Remove old login routines</title>
<updated>2026-02-03T00:10:55+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2026-01-20T22:23:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=11399367ecb83729cfe0c3d6ce3f3aa419f683e4'/>
<id>urn:sha1:11399367ecb83729cfe0c3d6ce3f3aa419f683e4</id>
<content type='text'>
At one point the bmcweb /login route has supported a bunch of
different login mechanisms:
1. Sending username and password via headers, mirroring a non-openbmc
   implementation that has never been used in openbmc, and predates this
   repo being called bmcweb.
2. Sending username and password under a "data" object, mirroring
   phosphor-rest json webserver.
3. Sending username and password as an http multipart as part of the
   initial multipart parser patch.
4. Sending a json payload as {"username": &lt;&gt;, "password": &lt;&gt;}

This commit removes all but the final login mechanism.  Redfish login
has been used exclusively for many many years, and only the webui used
4 above up until a few years ago in commit
1ff8e89fd2397c468ab0237158e5aeeff2692413

Keeping one viable login mechanism that's not Redfish is useful in the
future if there are those that want to disable Redfish.  All others
could potentially be security issues, so keeping the code simple and
conscise here is ideal.

This commit does not attempt to make a backwards compatibility path,
under the assumption that other than 4, none of the other code was ever
used in any real capacity.  If we find that to not be true, we can add
back the portions where we need compatibility, but this seems unlikely.

Tested: WIP

Change-Id: I04b4968836f0f824f46b3dff180ad92feb16967c
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Remove usages of nlohmann::json::begin()</title>
<updated>2026-01-30T17:05:11+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>ed@tanous.net</email>
</author>
<published>2023-02-04T03:18:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=76c2ad64440e2864a0cc3d66a3b8bb0f5ac2f288'/>
<id>urn:sha1:76c2ad64440e2864a0cc3d66a3b8bb0f5ac2f288</id>
<content type='text'>
nlohmann::json::begin() throws an uncaught exception.

Tested: Redfish service validator passes.

Signed-off-by: Ed Tanous &lt;ed@tanous.net&gt;
Change-Id: I08244b0787cd4d6e592b0731196490a5160aba62
</content>
</entry>
<entry>
<title>Fix includes</title>
<updated>2025-08-26T17:47:38+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>ed@tanous.net</email>
</author>
<published>2025-08-20T02:34:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=3577e44683a5ade8ad02a6418984b56f4ca2bcac'/>
<id>urn:sha1:3577e44683a5ade8ad02a6418984b56f4ca2bcac</id>
<content type='text'>
Our includes haven't been enforced by tidy in a while.  Run the script,
check in the result, minus the false positives.

Change-Id: I6a6da26f5ba5082d9b4aa17cdc9f55ebd8cd41a6
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
</feed>
