get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2196928/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2196928,
    "url": "http://patchwork.ozlabs.org/api/patches/2196928/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20260216152447.2071146-1-i.maximets@ovn.org/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/?format=api",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260216152447.2071146-1-i.maximets@ovn.org>",
    "list_archive_url": null,
    "date": "2026-02-16T15:24:46",
    "name": "[ovs-dev] ovsdb: Add table name to the duplicate UUID error.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7e81b5dcf98a10177e5596e37aa7ff80478d7067",
    "submitter": {
        "id": 76798,
        "url": "http://patchwork.ozlabs.org/api/people/76798/?format=api",
        "name": "Ilya Maximets",
        "email": "i.maximets@ovn.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20260216152447.2071146-1-i.maximets@ovn.org/mbox/",
    "series": [
        {
            "id": 492320,
            "url": "http://patchwork.ozlabs.org/api/series/492320/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=492320",
            "date": "2026-02-16T15:24:46",
            "name": "[ovs-dev] ovsdb: Add table name to the duplicate UUID error.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492320/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196928/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196928/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ovs-dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.138; helo=smtp1.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org)",
            "smtp1.osuosl.org;\n dmarc=none (p=none dis=none) header.from=ovn.org"
        ],
        "Received": [
            "from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fF65m0Q0fz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 02:24:58 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id EC53081E80;\n\tMon, 16 Feb 2026 15:24:55 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id tg2omuZeR8No; Mon, 16 Feb 2026 15:24:55 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp1.osuosl.org (Postfix) with ESMTPS id 0B07881445;\n\tMon, 16 Feb 2026 15:24:55 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id C94CFC0035;\n\tMon, 16 Feb 2026 15:24:54 +0000 (UTC)",
            "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 24C0EC0033\n for <ovs-dev@openvswitch.org>; Mon, 16 Feb 2026 15:24:54 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 0F4A181464\n for <ovs-dev@openvswitch.org>; Mon, 16 Feb 2026 15:24:54 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 7joPMq1tkFmR for <ovs-dev@openvswitch.org>;\n Mon, 16 Feb 2026 15:24:53 +0000 (UTC)",
            "from mail-wr1-f68.google.com (mail-wr1-f68.google.com\n [209.85.221.68])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 13AA681445\n for <ovs-dev@openvswitch.org>; Mon, 16 Feb 2026 15:24:52 +0000 (UTC)",
            "by mail-wr1-f68.google.com with SMTP id\n ffacd0b85a97d-4359a16a400so3282186f8f.1\n for <ovs-dev@openvswitch.org>; Mon, 16 Feb 2026 07:24:52 -0800 (PST)",
            "from im-t490s.redhat.com (89-24-32-126.nat.epc.tmcz.cz.\n [89.24.32.126]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43796a5ac92sm27684912f8f.1.2026.02.16.07.24.49\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 16 Feb 2026 07:24:50 -0800 (PST)"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections -\n client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0B07881445",
            "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 13AA681445"
        ],
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.68;\n helo=mail-wr1-f68.google.com; envelope-from=i.maximets.ovn@gmail.com;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp1.osuosl.org 13AA681445",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771255491; x=1771860291;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=YQDQZU1SA+n7ZBSGCOBtURqTU9+X+30H1cum8LD08aA=;\n b=IDEHaQini3SbPF0E46Zmau5gLswBAmQttPyxdBdAOmB3/LOQwMWdmCG0v36lirHpqk\n AFbc8wHVW0yEX3ARPxR0P1wpHMdTp7icp+BBl7eowlE5oTxZ1+oK0ltgNVaDX2Qalq0x\n wLnVxQKnI/2lEr35Vjo4BI7QSTO6MXXYfj58PJUb+EbKwJvNtVIjNIcd5ztkc14Hh+bR\n pMWNxhmJQFsFM3aWNg90FYM9xJMhuoZNSZdp+1SoTlCUi+y7vwgpAwjjTQhEsAC8vs8y\n yIXZTZSgt8Xk5emex2UphiT15iS94COPEuF7t1XvS/QVymcRiArfpwWMQRkpWF+KFWd5\n e8Sg==",
        "X-Gm-Message-State": "AOJu0YwSGXWSP/VniplpOPLE6EH9hTA2zmVzYvkta5I0dV9fv5HGxhMO\n geqlJDYBmGkRAzsxV3B+E6SCLbxGevLrqvb17B7AzfO7lj9iH9yWOwLiFkXju/S8",
        "X-Gm-Gg": "AZuq6aI+4CK68q8xExirI7zd5GtQltqsfbt94UBBxHm90SCyvnqBxZEr0nh+yLtLXGR\n UuWLqY4I0hahhNMBq1oLtgKaNEXzsaFL/h23SKJQVNnDkrOe+xPCJkGYqt5RGcKevd7oGLxtGht\n 4+eyeGNDRelGbpG8wx2dVoUk0/9jAalUGGQDpyNMrfufsqoL4g8F+7b+zlJjnTeZJ+jDgLiHjfg\n aOMaE2TEWhqIHH1ls39UryzM10emqCD+kDGC/9fcazwCJSkze+zYA/b/U2viExQzNu9ONTXGLsy\n rqPUGcFkp5IMqCkShsoJWWFUo2WCyas6SxxeYTCj0w/hW5Qw+I6OkYLjgufWMLKZoqO5Vm8pJ/D\n 3H3n3Zg7dM7HridBkFwKjmGDvrTdZBABOoqLKAxr7qefvWc5iH2+dLVjkoI5quJfujqDE4Aoa4v\n uINPInGfx5MwLYkUW2lGybfd6nO/NfkD5OfoFZ3oCGnJgj3Qzcr41WxihH4meaa6UbrqbyQrOD3\n Q==",
        "X-Received": "by 2002:a05:6000:2dc1:b0:436:34d9:4627 with SMTP id\n ffacd0b85a97d-43797917e7amr17827647f8f.37.1771255490672;\n Mon, 16 Feb 2026 07:24:50 -0800 (PST)",
        "From": "Ilya Maximets <i.maximets@ovn.org>",
        "To": "ovs-dev@openvswitch.org",
        "Cc": "Ilya Maximets <i.maximets@ovn.org>",
        "Date": "Mon, 16 Feb 2026 16:24:46 +0100",
        "Message-ID": "<20260216152447.2071146-1-i.maximets@ovn.org>",
        "X-Mailer": "git-send-email 2.52.0",
        "MIME-Version": "1.0",
        "Subject": "[ovs-dev] [PATCH] ovsdb: Add table name to the duplicate UUID error.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "It's not obvious at a glance in which table the conflict occurred.\nUsers can look through the database to find the row with this UUID to\nunderstand what table it was, but it's not convenient and also may not\nbe always possible if the row was already removed or it was within the\nsame transaction.\n\nSigned-off-by: Ilya Maximets <i.maximets@ovn.org>\n---\n ovsdb/execution.c        | 6 ++++--\n tests/ovsdb-execution.at | 2 +-\n tests/ovsdb-idl.at       | 2 +-\n 3 files changed, 6 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/ovsdb/execution.c b/ovsdb/execution.c\nindex 99856f8fe..4d9b38742 100644\n--- a/ovsdb/execution.c\n+++ b/ovsdb/execution.c\n@@ -357,8 +357,10 @@ ovsdb_execute_insert(struct ovsdb_execution *x, struct ovsdb_parser *parser,\n         if (!ovsdb_txn_may_create_row(table, &row_uuid)) {\n             return ovsdb_syntax_error(uuid_json, \"duplicate uuid\",\n                                       \"This UUID would duplicate a UUID \"\n-                                      \"already present within the table or \"\n-                                      \"deleted within the same transaction.\");\n+                                      \"already present within the \\\"%s\\\" \"\n+                                      \"table or deleted from this table \"\n+                                      \"within the same transaction.\",\n+                                      table->schema->name);\n         }\n     }\n \ndiff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at\nindex 8c23033f3..d864a189e 100644\n--- a/tests/ovsdb-execution.at\n+++ b/tests/ovsdb-execution.at\n@@ -270,7 +270,7 @@ dnl Attempt to insert second row with same UUID (fails).\n        \"row\": {\"number\": 0, \"name\": \"zero\"}}]]]],\n   [[[{\"uuid\":[\"uuid\",\"ffffffff-971b-4cba-bf42-520515973b7e\"]}]\n [{\"rows\":[{\"_uuid\":[\"uuid\",\"ffffffff-971b-4cba-bf42-520515973b7e\"],\"_version\":[\"uuid\",\"<0>\"],\"name\":\"zero\",\"number\":0}]}]\n-[{\"details\":\"This UUID would duplicate a UUID already present within the table or deleted within the same transaction.\",\"error\":\"duplicate uuid\",\"syntax\":\"\\\"ffffffff-971b-4cba-bf42-520515973b7e\\\"\"}]\n+[{\"details\":\"This UUID would duplicate a UUID already present within the \\\"ordinals\\\" table or deleted from this table within the same transaction.\",\"error\":\"duplicate uuid\",\"syntax\":\"\\\"ffffffff-971b-4cba-bf42-520515973b7e\\\"\"}]\n ]])\n \n OVSDB_CHECK_EXECUTION([insert rows, query by index],\ndiff --git a/tests/ovsdb-idl.at b/tests/ovsdb-idl.at\nindex ae097887d..728d761d4 100644\n--- a/tests/ovsdb-idl.at\n+++ b/tests/ovsdb-idl.at\n@@ -2874,7 +2874,7 @@ OVSDB_CHECK_IDL_PERS_UUID_INSERT([simple idl, persistent uuid insert],\n 010: table simple: i=5 r=0 b=false s= u=00000000-0000-0000-0000-000000000000 ia=[] ra=[] ba=[] sa=[] ua=[] uuid=c5cc12f8-eaa1-43a7-8a73-bccd18df2222\n 011: done\n ]],\n-  [['This UUID would duplicate a UUID already present within the table or deleted within the same transaction']])\n+  [['This UUID would duplicate a UUID already present within the \\\\\"simple\\\\\" table or deleted from this table within the same transaction.']])\n \n OVSDB_CHECK_IDL_PERS_UUID_INSERT([simple idl, persistent uuid insert uref],\n   [['insert_uuid_uref d7f2845f-2e8d-46a9-8330-f6d0b7d2ca36 689420a0-515b-4c0f-8eba-7ad59a344b54']],\n",
    "prefixes": [
        "ovs-dev"
    ]
}