utmstack / UTMStack

Customizable SIEM and XDR powered by Real-Time correlation and Threat Intelligence
https://utmstack.com
GNU Affero General Public License v3.0
207 stars 21 forks source link

[BUG] System malfunction if creating sub-menu with empty URL #591

Closed c3s4rfred closed 4 months ago

c3s4rfred commented 5 months ago

Describe the bug The system allow you to create a submenu with empty URL, causing a system malfunction.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings' from lateral menu
  2. Click on 'Menu'
  3. Add a new menu and unselect 'Is this menu a container?' option
  4. Select a parent menu and authority
  5. See that the save button is active, then the app will not functioning well after saving.

Expected behavior The button can't activate until the URL is set for "sub-menu".

Screenshots image

Environment

Possible solution Add front and back validation for URL when creating a "sub-menu".