Skip to content

[BUG]: Uploading custom CA when creating MCP server causes browser error #5038

@lewis-relph

Description

@lewis-relph

🐞 Bug Summary

When creating a new downstream MCP gateway with a custom CA the browser receives a few error upon attempting to add the file, and MCP server creation is blocked.


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. Head to the UI route admin/#gateways
  2. Create a gateway
  3. Select a file in the Upload CA certificate section
  4. receive error above

🤔 Expected Behavior

What should have happened instead?

The UI should accept the certificate file and allow MCP server creation.


📓 Logs / Error Output

Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.

bundle-XuLqEPyt.js:1 Unhandled promise rejection: TypeError: Cannot read properties of undefined (reading 'files')
    at validateCACertFiles (bundle-XuLqEPyt.js:1:557848)
    at executeAction (bundle-XuLqEPyt.js:1:603371)
    at HTMLDocument.handleDelegatedChange (bundle-XuLqEPyt.js:1:604173)
(anonymous) @ bundle-XuLqEPyt.js:1
bundle-XuLqEPyt.js:1 Error: An unexpected error occurred. Please refresh the page.
showErrorMessage @ bundle-XuLqEPyt.js:1
(anonymous) @ bundle-XuLqEPyt.js:1
bundle-XuLqEPyt.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'files')
    at validateCACertFiles (bundle-XuLqEPyt.js:1:557848)
    at executeAction (bundle-XuLqEPyt.js:1:603371)
    at HTMLDocument.handleDelegatedChange (bundle-XuLqEPyt.js:1:604173)
validateCACertFiles @ bundle-XuLqEPyt.js:1
executeAction @ bundle-XuLqEPyt.js:1
handleDelegatedChange @ bundle-XuLqEPyt.js:1

🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
Version or commit 1.0.2
Runtime Python 3.12.13
Platform / OS Docker (macOS/arm64)
Container Podman

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Labels

bugSomething isn't workingjavascriptJavascript or typescriptuiUser Interface

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions