BUG: Newly created requests in Ombi are not shown in requests tab #42
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem:
When creating a request in Ombi, the request does not appear in the requests tab as expected
To replicate:
Create a request in Ombi for the current user. Sort requests tab by newest to oldest. Request does not appear.
Resolved in v1.7.6. Implemented a force cache-bypass upon receiving webhooks or manual requests reload.
Investigating: Identified that the webhook payload is being rejected with 400 Bad Request because 'NewRequest' is not in the valid/ombi allowed event type sets. Starting the fix now.
Resolution: Added 'NewRequest' to the backend allowed event type sets (VALID_EVENT_TYPES and OMBI_EVENTS) in server/routes/webhook.js. This allows the backend to successfully accept and process the NewRequest webhook payload, fetching the latest request list from Ombi and refreshing the cache accordingly. Additionally, added a complete integration test suite in tests/integration/webhook.test.js that verifies secret validation, input checks, duplicate/replay protection, and cache refresh logic. All tests are passing successfully.
Issue reopened. Investigated Ombi payload casing and applied a fix to handle PascalCase properties like
NotificationType, which C#/.NET applications often send instead of camelCase.Fix released in v1.7.8. Commit:
9548eb41f5Fix correctly released in v1.7.9. Resolving commit:
d4ee3b8ef7Resolved in commit
9491948ec9.