)]}'
{
  "commit": "93c0202ad93c4bace9c8c79286a788300c86d08e",
  "tree": "912200d8381e2caba84526da83c5e74eb3d1353d",
  "parents": [
    "2b20ef6ee2a8ca656aaa49b181d9205e30ede451"
  ],
  "author": {
    "name": "Nan Zhou",
    "email": "nanzhoumails@gmail.com",
    "time": "Thu Feb 24 18:21:07 2022 -0800"
  },
  "committer": {
    "name": "Ed Tanous",
    "email": "ed@tanous.net",
    "time": "Mon Feb 28 17:56:53 2022 +0000"
  },
  "message": "websocket: fix authless\n\nWe should check if session is nullptr before referencing its data\nmember.\n\nTested:\n1. build authless BMCWeb\n```\nmeson -Drest\u003denabled -Dbmcweb-logging\u003denabled\n-Dinsecure-disable-auth\u003denabled build \u0026\u0026 ninja -C build \u0026\u0026\n./build/bmcweb\n```\n2. start websocket client without problems\n```\npython scripts/websocket_test.py  --host localhost:18080\n```\n3. bmcweb log\n```\n[DEBUG \"websocket.hpp\":221] Websocket accepted connection\n[DEBUG \"dbus_monitor.hpp\":114] Connection opened\n[DEBUG \"dbus_monitor.hpp\":115] Connection 0x55b22d618670 opened\n[DEBUG \"http_response.hpp\":134] 0x55b22d611040 calling completion\nhandler\n[DEBUG \"dbus_monitor.hpp\":129] Connection 0x55b22d618670 received\n{\"paths\": [\"/xyz/openbmc_project/sensors\"],\n\"interfaces\": [\"xyz.openbmc_project.Sensor.Value\"]}\n[DEBUG \"dbus_monitor.hpp\":231] Creating match\ntype\u003d\u0027signal\u0027,interface\u003d\u0027org.freedesktop.DBus.Properties\u0027,\npath_namespace\u003d\u0027/xyz/openbmc_project/sensors\u0027,member\u003d\u0027PropertiesChanged\u0027,\narg0\u003d\u0027xyz.openbmc_project.Sensor.Value\u0027\n[DEBUG \"dbus_monitor.hpp\":246] Creating match\ntype\u003d\u0027signal\u0027,interface\u003d\u0027org.freedesktop.DBus.ObjectManager\u0027,\npath_namespace\u003d\u0027/xyz/openbmc_project/sensors\u0027,member\u003d\u0027InterfacesAdded\u0027\n```\n\nSigned-off-by: Nan Zhou \u003cnanzhoumails@gmail.com\u003e\nChange-Id: I56613a26c129736f0e6980bb24e83f22ef60eea0\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e39bfcc9ebcebbd49e0f6c98669d00125eec00d3",
      "old_mode": 33188,
      "old_path": "http/routing.hpp",
      "new_id": "b39442bd3a62d12e441a2e46e29077b3cec9728b",
      "new_mode": 33188,
      "new_path": "http/routing.hpp"
    },
    {
      "type": "modify",
      "old_id": "213c4c74c0ed8edc61f341de15f9397f6066303b",
      "old_mode": 33188,
      "old_path": "http/websocket.hpp",
      "new_id": "daa510020f5598bde3ba49265eb600c966641440",
      "new_mode": 33188,
      "new_path": "http/websocket.hpp"
    }
  ]
}
