<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic UUIDs are Case-Sensitive? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222054#M8619</link>
    <description>&lt;P&gt;It looks like in some calls (at least /show-task), the UUID is case-sensitive:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@TestSC:0]# taskId="01234567-89ab-cdef-a755-0ba545d712b8"

[Expert@TestSC:0]# mgmt_cli -f json -s session.txt show task task-id "${taskId}"
{
  "tasks" : [ {
    "task-id" : "01234567-89ab-cdef-a755-0ba545d712b8",
    "task-name" : "Publish operation",
    "status" : "succeeded",
    "progress-percentage" : 100,
    "suppressed" : false,
    "task-details" : [ {
      "publishResponse" : {
        "numberOfPublishedChanges" : 1,
        "mode" : "async"
      },
      "revision" : "1d0ee167-f660-4f35-b810-2347e04970d7"
    } ]
  } ]
}

[Expert@TestSC:0]# mgmt_cli -f json -s session.txt show task task-id "${taskId^^}"
{
  "code" : "generic_err_object_not_found",
  "message" : "Requested object [01234567-89AB-CDEF-A755-0BA545D712B8] not found"
}&lt;/LI-CODE&gt;
&lt;P&gt;The ^^ in the second command just converts letters in the string to uppercase. UUIDs are 128-bit numbers, not really strings, so this seems likely to be unexpected behavior.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jul 2024 17:59:47 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2024-07-27T17:59:47Z</dc:date>
    <item>
      <title>UUIDs are Case-Sensitive?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222054#M8619</link>
      <description>&lt;P&gt;It looks like in some calls (at least /show-task), the UUID is case-sensitive:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@TestSC:0]# taskId="01234567-89ab-cdef-a755-0ba545d712b8"

[Expert@TestSC:0]# mgmt_cli -f json -s session.txt show task task-id "${taskId}"
{
  "tasks" : [ {
    "task-id" : "01234567-89ab-cdef-a755-0ba545d712b8",
    "task-name" : "Publish operation",
    "status" : "succeeded",
    "progress-percentage" : 100,
    "suppressed" : false,
    "task-details" : [ {
      "publishResponse" : {
        "numberOfPublishedChanges" : 1,
        "mode" : "async"
      },
      "revision" : "1d0ee167-f660-4f35-b810-2347e04970d7"
    } ]
  } ]
}

[Expert@TestSC:0]# mgmt_cli -f json -s session.txt show task task-id "${taskId^^}"
{
  "code" : "generic_err_object_not_found",
  "message" : "Requested object [01234567-89AB-CDEF-A755-0BA545D712B8] not found"
}&lt;/LI-CODE&gt;
&lt;P&gt;The ^^ in the second command just converts letters in the string to uppercase. UUIDs are 128-bit numbers, not really strings, so this seems likely to be unexpected behavior.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 17:59:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222054#M8619</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-07-27T17:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: UUIDs are Case-Sensitive?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222061#M8622</link>
      <description>&lt;P&gt;Can't seem to edit posts, and I realized I forgot to include the version I'm running. That system was R81.20 jumbo 65. I just rebuilt it at R81.20 jumbo 76 and I have the same issue:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@TestSC:0]# taskId="01234567-89ab-cdef-81cd-95e826bd7d4e"

[Expert@TestSC:0]# mgmt_cli -f json -r true show task task-id "${taskId}"      
{
  "tasks" : [ {
    "task-id" : "01234567-89ab-cdef-81cd-95e826bd7d4e",
    "task-name" : "Publish operation",
    "status" : "succeeded",
    "progress-percentage" : 100,
    "suppressed" : false,
    "task-details" : [ {
      "publishResponse" : {
        "numberOfPublishedChanges" : 1,
        "mode" : "async"
      },
      "revision" : "9485f8cb-4e2f-400f-88a7-9bf60c33e4a9"
    } ]
  } ]
}

[Expert@TestSC:0]# mgmt_cli -f json -r true show task task-id "${taskId^^}"
{
  "code" : "generic_err_object_not_found",
  "message" : "Requested object [01234567-89AB-CDEF-81CD-95E826BD7D4E] not found"
}&lt;/LI-CODE&gt;
&lt;P&gt;But this gets weirder. I also have an opposite issue:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@TestSC:0]# taskId=$(mgmt_cli -f json -s session.txt show tasks limit 1 | jq '.tasks[0]."task-id"' | tr -d '"')

[Expert@TestSC:0]# echo "${taskId}"
01234567-89ab-cdef-9c69-3d76e924acd1

[Expert@TestSC:0]# mgmt_cli -f json -s session.txt show task task-id "${taskId}"
{
  "tasks" : [ ]
}

[Expert@TestSC:0]# mgmt_cli -f json -s session.txt show task task-id "${taskId^^}"
{
  "tasks" : [ {
    "task-id" : "01234567-89ab-cdef-9c69-3d76e924acd1",
    "task-name" : "add simple-cluster",
    "status" : "succeeded",
    "progress-percentage" : 100,
    "suppressed" : true
  } ]
}&lt;/LI-CODE&gt;
&lt;P&gt;With that task, the lowercase string representation of the UUID doesn't throw an error, but it doesn't find the task. The uppercase string representation finds the task. So for some types of task, you need to specify the task ID in uppercase. For some, you need to specify it in lowercase.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 21:13:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222061#M8622</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-07-27T21:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: UUIDs are Case-Sensitive?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222074#M8623</link>
      <description>&lt;P&gt;Customer asked this exact question on totally unrelated TAC call once and Tier 3 confirmed they are indeed case sensitive. This was back in R81 base, but Im sure its still the same.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 17:23:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222074#M8623</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-28T17:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: UUIDs are Case-Sensitive?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222080#M8625</link>
      <description>&lt;P&gt;I really need to look at the database directly some time, because that's beyond weird. How are we supposed to use /show-task if it doesn't do any kind of data normalization and it returns different results like this?&lt;/P&gt;
&lt;P&gt;In my last example, it doesn't even accept the task ID in the exact form which it just gave me a second or two earlier.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 20:17:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222080#M8625</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-07-28T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: UUIDs are Case-Sensitive?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222127#M8627</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 12:14:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/UUIDs-are-Case-Sensitive/m-p/222127#M8627</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-07-29T12:14:57Z</dc:date>
    </item>
  </channel>
</rss>

