Skip to content

MCR-3458 improve Google Sitemap Handling #2562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rsteph-de
Copy link
Member

@rsteph-de rsteph-de requested a review from yagee-de June 24, 2025 13:30
@rsteph-de rsteph-de requested a review from toKrause July 29, 2025 13:24
@@ -91,7 +96,8 @@ public final class MCRGoogleSitemapCommon {
"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";

/** The directory path to store sitemaps relative to MCR.WebApplication.basedir */
private static final String CDIR = MCRConfiguration2.getString("MCR.GoogleSitemap.Directory").orElse("");
private static final Path CDIR =
Paths.get(MCRConfiguration2.getString("MCR.GoogleSitemap.Directory").orElseThrow());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, using this in a fresh MIR, an exception is thrown, when loading the sitemap. Please provide a sensible default value in the mycore.properties of this module, i.e.

MCR.GoogleSitemap.Directory=%MCR.datadir%/sitemap

@@ -91,7 +96,8 @@ public final class MCRGoogleSitemapCommon {
"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";

/** The directory path to store sitemaps relative to MCR.WebApplication.basedir */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove misleading info relative to MCR.WebApplication.basedir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants