- Issue created by @leonardopost
During Sitemap generation, when creating the URL based on the URI saved in the loc
field, the BadRequestException thrown by Symfony HttpFoundation component isn't handled, which causes XML generation to halt and results in a blank Sitemap XML file.
1. Create an entity of any type set to be mapped in xmlsitemap
2. Add control characters like CR (\r
), LF (\n
), and TAB (\t
) to the URL alias or file name (if File entity)
3. Regenerate xmlsitemap
4. Check xmlsitemap watchdog errors and find the exception (see log.txt)
Gracefully handle the exception, logging the failed URLs to watchdog.
Review patch/MR.
None
None
None
Active
1.5
Other