https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28104

            Bug ID: 28104
           Summary: last line of sitemapindex.xml lacks EOL
 Change sponsored?: ---
           Product: Koha
           Version: 20.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected],
                    [email protected]
                CC: [email protected]

$ /usr/sbin/koha-sitemap --generate instance
generates file 
/var/lib/koha/instance/sitemap/sitemapindex.xml
without the EOL of the last line. 

XML parsers can complain, e.g.:
$ xmllint --format /var/lib/koha/instance/sitemap/sitemapindex.xml 
/var/lib/koha/instance/sitemap/sitemapindex.xml:22: parser error : expected '>'
</sitemapindex>
         ^
/var/lib/koha/instance/sitemap/sitemapindex.xml:22: parser error : Premature
end of data in tag sitemapindex line 3
</sitemapindex>
               ^

--- Comment #1 from Jonathan Druart <[email protected]> 
---
I don't recreate the problem. Can you provide more detail please?

$ perl debian/scripts/koha-sitemap --enable kohadev
Sitemap enabled for kohadev
$ perl debian/scripts/koha-sitemap --generate  kohadev                          
Sitemap directory for kohadev doesn't exist. Creating.

$ xmllint --format /var/lib/koha/kohadev/sitemap/sitemapindex.xml               
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9";>
  <sitemap>
    <loc>http://kohadev.myDNSname.org:8080/sitemap0001.xml</loc>
    <lastmod>2021-04-09</lastmod>
  </sitemap>
</sitemapindex>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to