Site Archive creates unparseable XML for some tools

Description

The Admin Site Archive tool produces unparseable XML for these tools / archive types:

attachment.xml
content.xml
site.xml
syllabus.xml
user.xml
wiki.xml

This can be seen by viewing the resulting files in Firefox, which produces the error:

XML Parsing Error: prefix not bound to a namespace
Location: file:///c:/tmp/1a16b939-aced-4137-0027-6c5276812f93-archive/attachment.xml
Line Number 4, Column 5: <sakai:content>
----^

Tools which produce valid (parseable) XML are structured like this (e.g. Announcements):

<archive date="20061030122049102" server="mocha" source="1a16b939-aced-4137-0027-6c5276812f93" system="Sakai 1.0">
<org.sakaiproject.announcement.api.AnnouncementService>
...
</org.sakaiproject.announcement.api.AnnouncementService>
</archive>

whereas the invalid ones are structured like:

<archive date="20061030122049102" server="mocha" source="1a16b939-aced-4137-0027-6c5276812f93" system="Sakai 1.0">
<sakai:rwiki>
...
</sakai:rwiki>
</archive>

"sakai" is interpreted as the prefix for a namespace which is not defined.

These XML files therefore either need xmlns declarations to define the namespace correctly, or need to avoid the use of namespace prefixes.

Activity

Matthew Jones April 24, 2018 at 10:36 AM

Bulk closing issues that have not been updated since 2015 and earlier. Please reopen if this is still an issue and you have new information or if this is a feature you'd like to still have consideration for.

amberg1 August 26, 2013 at 8:46 AM

Issue appears to still exist (based on Sam's comments). Is a relevant issue. Can the CLE team consider as an actionable.

Sam Ottenhoff May 26, 2011 at 12:54 PM

Bug still exists. I recommend breaking out sub-tasks for remaining tools that continue to use undefined namespaces.

amberg1 March 24, 2011 at 7:13 AM

What is the status of this Jira?

Michelle Wagner November 21, 2006 at 9:01 AM

Syllabus fixed r18339

Won't Fix

Details

Priority

Affects versions

Assignee

Reporter

Created October 30, 2006 at 7:24 AM
Updated April 24, 2018 at 10:36 AM
Resolved April 24, 2018 at 10:36 AM