[GH-ISSUE #4074] Strange errors in UI on 2.12..0 #2652

Closed
opened 2026-02-26 07:36:20 +03:00 by kerem · 4 comments
Owner

Originally created by @itsbhanusharma on GitHub (Oct 16, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4074

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
I'm receiving strange message "data/value must match exactly one schema in oneOf" across the UI on many pages.

Nginx Proxy Manager Version
v2.12.0

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Hosts > Redirection Hosts'
  2. Click on 'Add redirection Host' and leave the scheme to 'Auto'
  3. Fill in the values for 'domain names' and 'forward domain'
  4. Click Save
  5. See error
    image

Another area where this error Persists is 'settings > default site'

  1. Edit 'default site'
  2. Try selecting '404 Page' or 'No Response (444)'
  3. Click Save
  4. See error
    image

Expected behavior
Options should behave as expected.

Screenshots
Screenshots attached below repro steps.

Operating System

Additional context
N/A

Originally created by @itsbhanusharma on GitHub (Oct 16, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4074 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** I'm receiving strange message "data/value must match exactly one schema in oneOf" across the UI on many pages. **Nginx Proxy Manager Version** v2.12.0 **To Reproduce** Steps to reproduce the behavior: 1. Go to 'Hosts > Redirection Hosts' 2. Click on 'Add redirection Host' and leave the scheme to 'Auto' 3. Fill in the values for 'domain names' and 'forward domain' 4. Click Save 5. See error ![image](https://github.com/user-attachments/assets/db8ac06f-39d9-4803-a093-5bca6491e7b3) Another area where this error Persists is 'settings > default site' 1. Edit 'default site' 2. Try selecting '404 Page' or 'No Response (444)' 3. Click Save 4. See error ![image](https://github.com/user-attachments/assets/7620d068-8466-46a3-8293-06fae8148c61) **Expected behavior** Options should behave as expected. **Screenshots** Screenshots attached below repro steps. **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> **Additional context** N/A
kerem 2026-02-26 07:36:20 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@spearox commented on GitHub (Oct 16, 2024):

Same for me with default site.
image

<!-- gh-comment-id:2416077162 --> @spearox commented on GitHub (Oct 16, 2024): Same for me with default site. ![image](https://github.com/user-attachments/assets/c1aa67bf-f121-4924-bee8-9a0fe4b8c617)
Author
Owner

@CRASH-Tech commented on GitHub (Oct 16, 2024):

+1

<!-- gh-comment-id:2417424595 --> @CRASH-Tech commented on GitHub (Oct 16, 2024): +1
Author
Owner

@Nephiel commented on GitHub (Oct 16, 2024):

Same here on a new deployment, just using a custom Docker network, IPv6 disabled, and healthcheck enabled.
screenshot_2024-10-16_19-28-22

<!-- gh-comment-id:2417462821 --> @Nephiel commented on GitHub (Oct 16, 2024): Same here on a new deployment, just using a custom Docker network, IPv6 disabled, and healthcheck enabled. ![screenshot_2024-10-16_19-28-22](https://github.com/user-attachments/assets/1d7ef842-dc24-47c7-aec3-38abc65629e5)
Author
Owner

@Nephiel commented on GitHub (Oct 16, 2024):

  • For the "Default Site" issue, it's failing schema validation in backend/schema/components/setting-object.json:
                "value": {
                        "description": "Value in almost any form",
                        "example": "congratulations",
                        "oneOf": [
                                {
                                        "type": "string",
                                        "minLength": 1
                                },
                                {
                                        "type": "integer"
                                },
                                {
                                        "type": "object"
                                },
                                {
                                        "type": "number"
                                },
                                {
                                        "type": "array"
                                }
                        ]
                },

From frontend/js/app/settings/default-site/main.ejs the values can be "congratulations", "404", "444", "redirect", "html".
The issue happens with values "404" and "444", probably because they match several types.

Shouldn't it be anyOf rather than oneOf? See https://github.com/NginxProxyManager/nginx-proxy-manager/pull/1366

  • For the Redirection Host issue, looking at backend/schema/components/redirection-host-object.json
		"forward_scheme": {
			"type": "string",
			"enum": ["http", "https"]
		},

it appears to be missing auto in the enum.

<!-- gh-comment-id:2417649081 --> @Nephiel commented on GitHub (Oct 16, 2024): - For the "Default Site" issue, it's failing schema validation in `backend/schema/components/setting-object.json`: ``` "value": { "description": "Value in almost any form", "example": "congratulations", "oneOf": [ { "type": "string", "minLength": 1 }, { "type": "integer" }, { "type": "object" }, { "type": "number" }, { "type": "array" } ] }, ``` From `frontend/js/app/settings/default-site/main.ejs` the values can be "congratulations", "404", "444", "redirect", "html". The issue happens with values "404" and "444", probably because they match several types. **Shouldn't it be `anyOf` rather than `oneOf`?** See https://github.com/NginxProxyManager/nginx-proxy-manager/pull/1366 - For the Redirection Host issue, looking at `backend/schema/components/redirection-host-object.json` ``` "forward_scheme": { "type": "string", "enum": ["http", "https"] }, ``` **it appears to be missing `auto` in the enum.**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2652
No description provided.