Closed (fixed)
Project:
XML sitemap
Version:
8.x-1.x-dev
Component:
xmlsitemap.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2020 at 18:20 UTC
Updated:
25 Jun 2020 at 19:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
volegerHere the patch
Comment #3
alex_optimLooks good.
Comment #4
voleger#3134571: Drupal 9 compatibility filled to address branch Drupal 9 compatibility issues
Comment #5
pifagor commentedComment #7
pifagor commentedComment #9
dave reidAny idea why this was added? The issue here is scant on details.
Comment #10
dave reidIf the directory doesn't exist, doesn't it mean that the sitemap file writing process also failed? Why wouldn't we want to expose a failure here instead of letting it silently fail?
Comment #11
dave reidI think this would be better, we should throw an exception when xmlsitemap_check_directory() fails, instead of silently letting it pass through, which I think is the issue here. Because then nothing in the generation process would actually work if the directory didn't exist.
Comment #13
dave reidI've updated xmlsitemap_sitemap_get_directory() to always return a valid value, so the test that sets the directory to empty is no longer valid and is removed. It shouldn't be a possible condition since the config is required.
Comment #15
dave reidTested and committed #13 to 8.x-1.x.