[GH-ISSUE #3273] Rule REST API Issues #32421

Open
opened 2026-06-15 09:55:16 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @the-kwak on GitHub (Jun 14, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/3273

Originally assigned to: @oschwartz10612 on GitHub.

Describe the Bug

When attempting to modify Rules using the POST request resource ID is not found.

When resource ID it changes when any other rule is created under that resource.

Thought it was a bug after upgrading. deleted everything and started from the install script and after up and running issue persisted.

Environment

  • OS Type & Version: ubuntu 24.04.4 LTS
  • Pangolin Version: v1.19.2
  • Edition (Community or Enterprise): Community
  • Gerbil Version: 1.4.2
  • Traefik Version: v3.6
  • Newt Version: v1.13.0
  • Client Version:N/A

To Reproduce

Use GET on resourceId to retrieve ruleId succecceful
eg.

    {
        "ruleId": 24,
        "resourceId": null,
        "action": "ACCEPT",
        "match": "IP",
        "value": "0.0.0.0",
        "priority": 1,
        "enabled": true
      },

Use POST on resourceId and ruleId returns:

{
  "data": null,
  "success": false,
  "error": true,
  "message": "Resource rule with ID 24 not found",
  "status": 404,
  "stack": null
}

After adding a new rule to the resource all ruleIds change:
rule added:

{
     "ruleId": 38,
     "resourceId": null,
     "action": "DROP",
     "match": "ASN",
     "value": "AS16509",
     "priority": 622,
     "enabled": true
   }

original ruleId 24 is now changed and still cannot be used in POST request:

      {
        "ruleId": 31,
        "resourceId": null,
        "action": "ACCEPT",
        "match": "IP",
        "value": "0.0.0.0",
        "priority": 1,
        "enabled": true
      }

Post request after ruleId changed

{
  "data": null,
  "success": false,
  "error": true,
  "message": "Resource rule with ID 31 not found",
  "status": 404,
  "stack": null
}

Expected Behavior

Expected behavior is for ruleId to not change when another rule is added.
as well as being able to update the rule after it is created by resourceId and ruleId.

Originally created by @the-kwak on GitHub (Jun 14, 2026). Original GitHub issue: https://github.com/fosrl/pangolin/issues/3273 Originally assigned to: @oschwartz10612 on GitHub. ### Describe the Bug When attempting to modify Rules using the POST request resource ID is not found. When resource ID it changes when any other rule is created under that resource. Thought it was a bug after upgrading. deleted everything and started from the install script and after up and running issue persisted. ### Environment - OS Type & Version: ubuntu 24.04.4 LTS - Pangolin Version: v1.19.2 - Edition (Community or Enterprise): Community - Gerbil Version: 1.4.2 - Traefik Version: v3.6 - Newt Version: v1.13.0 - Client Version:N/A ### To Reproduce Use GET on resourceId to retrieve ruleId succecceful eg. ``` { "ruleId": 24, "resourceId": null, "action": "ACCEPT", "match": "IP", "value": "0.0.0.0", "priority": 1, "enabled": true }, ``` Use POST on resourceId and ruleId returns: ``` { "data": null, "success": false, "error": true, "message": "Resource rule with ID 24 not found", "status": 404, "stack": null } ``` After adding a new rule to the resource all ruleIds change: rule added: ``` { "ruleId": 38, "resourceId": null, "action": "DROP", "match": "ASN", "value": "AS16509", "priority": 622, "enabled": true } ``` original ruleId 24 is now changed and still cannot be used in POST request: ``` { "ruleId": 31, "resourceId": null, "action": "ACCEPT", "match": "IP", "value": "0.0.0.0", "priority": 1, "enabled": true } ``` Post request after ruleId changed ``` { "data": null, "success": false, "error": true, "message": "Resource rule with ID 31 not found", "status": 404, "stack": null } ``` ### Expected Behavior Expected behavior is for ruleId to not change when another rule is added. as well as being able to update the rule after it is created by resourceId and ruleId.
GiteaMirror added the potential bug label 2026-06-15 09:55:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#32421