Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008521opensim[REGION] OpenSim Corepublic2019-04-23 08:552019-06-17 14:20
Assigned To 
PlatformLinux/MonoOSCentOSOS Version6
Product Version0.9.0.1 
Target VersionFixed in Version 
Summary0008521: OAR and IAR archivers create invalid XML-Files in archive
DescriptionEncoding of 'archive.xml' and the .xml files in 'landdata' and 'terrains' (in .oar) are inconsistent with the declaration at the beginning of the XML document.

Files are declared as UTF-16 encoded, but are actually UTF-8 encoded. Some XML-parsers are unable to parse it.
Steps To ReproduceGenerate an .oar or .iar archive and 'tar xf' it.

Verify with xmllint, Emacs or notepad++ on Windows.
Additional Information$ tar xf backup_gateway.oar

$ head -3 archive.xml
<?xml version="1.0" encoding="utf-16"?>
<archive major_version="0" minor_version="8">

$ xmllint archive.xml
archive.xml:1: parser error : Document labelled UTF-16 but has UTF-8 content
<?xml version="1.0" encoding="utf-16"?>

I stumbled across this just recently when i needed to write an external tool to manipulate oar/iar archives, but found invalid XML-documents in OAR's back from 2008.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script Engine
EnvironmentMono / Linux64
Mono Version5.x
Attached Files

- Relationships

-  Notes
Ferd Frederix (reporter)
2019-06-17 14:20

Confirmed that this also happens if OARs are made on Windows.

- Issue History
Date Modified Username Field Change
2019-04-23 08:55 chrisb New Issue
2019-06-17 14:20 Ferd Frederix Note Added: 0035401

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker