Tenant error page configuration is skipped during import
See original GitHub issuePlease do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Description
Tenants allow the setting of a customer error page URL, which gets exported as pages/error_page.json. However when importing tenant configuration, this configuration is skipped because there is no corresponding HTML file. This means the setting/updating of this URL is not able to be propagated between tenants.
Reproduction
- Create a new tenant
- Set the tenant Error Page to “Custom” with a “Custom error page URL”
- Export the tenant config using
a0deploy - In the tenant UI change the value of the error page URL.
- Import the tenant config with
a0deploy - The error page JSON will be skipped (see https://github.com/auth0/auth0-deploy-cli/blob/master/src/context/directory/handlers/pages.js#L29) and the value in the tenant settings will be unchanged.
Environment
- Version of this library used: 5.3.1
- Version of the platform or framework used, if applicable: n/a
- Other relevant versions (language, server software, OS, browser): n/a
- Other modules/plugins/libraries that might be involved: n/a
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)

Top Related StackOverflow Question
@willvedd yes that is correct. I was trying to set a custom URL, and was getting this error when trying to export to auth0:
2022-02-07T17:57:06.371Z - warn: Skipping pages file src/av-dashboard/pages/error_page.json as missing corresponding '.html' fileI ended up adding a blank HTML file (./error_page.html) to get around this.
error_page.json :
@justinelileikis Ah ok, so the configuration is a simple URL, but the Deploy CLI rejects it because it doesn’t have an HTML template. That’s certainly a bug that we’d want to investigate but glad you’ve found a workaround.