[MGNLGS-136] URI2RepositoryMapping to sitemap.xml is not working anymore Created: 22/Sep/17  Updated: 24/Nov/17  Resolved: 24/Nov/17

Status: Closed
Project: Google Sitemap (closed)
Component/s: None
Affects Version/s: 2.4.4
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Jean-Charles Robert Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 5.5.6


Attachments: Java Source File GoogleSiteMapUriRepositoryMapping.java    
Issue Links:
duplicate
duplicates MAGNOLIA-7203 Problem when generating sitemap from ... Closed
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Testcase included:
Yes

 Description   

The sitemap.xml files are not working and can not be rendered anymore.

To reproduce the issue, simply follow the documentation:
https://documentation.magnolia-cms.com/display/DOCS/Google+Sitemap+app#GoogleSitemapapp-Creatingasitemap
1. Create a new sitemap "standard-google-sitemap"
2. Site selection: "/travel"
3. Save changes and publish the node.
4. Try to access the sitemap:
https://demoauthor.magnolia-cms.com/sitemaps/standard-google-sitemap.xml

The result is a 404 page. It can be fixed by changing the URI2RepositoryMapping "uriPrefix"

/config/server/URI2RepositoryMapping/mappings/sitemaps
URIPrefix IS: /sitemaps/
URIPrefix SHOULD BE: /sitemaps


 Comments   
Comment by Jean-Charles Robert [ 22/Sep/17 ]

A Unit-Test file is attached, it shoes that in Magnolia 5.5.6 (since Magnolia 5.5.x?) the

 URI2RepositoryMapping#getHandle()

method is not correctly removing the file extension anymore.

Generated at Mon Feb 12 02:06:46 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.