CMS Preview: Component Variant-selection does not Work
When in the Experience Manager, after selecting a component, a side-bar for component configuration opens up at the right side. When we select a "variant" from the variant-dropdown, the whole side-bar "breaks" and the message "failed to edit component" is displayed.
The CMS URL contains  characters, which are not accepted in the tomcat versions (since 8.5).
Nginx decodes the URL and sends the  in decoded form to the Tomcat instance. Nginx has encoded the URL incorrectly and forwarded the URL, triggering an error in the backend.
If there is proxy_pass expression like: proxy_pass http://host.docker.internal:8080/. The slash at the end of the URL would cause the URL to get decoded before it was passed to the backend, which causes the 500 Error. After removing the slash from the end and avoiding decoding the URL, the issue can be fixed. For more information, you can refer to this article.
- Apahe Tomcat 9 Configuration Reference
- How to allow ^ characters in URL in Tomcat 8.5
- Disabling URL decoding in n ginx proxy
Please provide your feedback below. We would like to know if our help center is effective in solving your queries.