aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* give up on a property that old monos do compile, but then smore ok execUbitUmarov2018-01-091-1/+1
|
* fall back to a obsolete property since several monos in use (include our ↵UbitUmarov2018-01-081-1/+1
| | | | own) do not suporte the proper .net4.0 one
* a few more xml thingsUbitUmarov2018-01-051-1/+1
|
* disable some XmlResolverUbitUmarov2018-01-041-0/+1
|
* Massive tab and trailing space cleanupMelanie Thielker2017-01-051-3/+3
|
* Better handling of invalid XML: a) prevent infinite loop on EOF; b) better ↵Oren Hurvitz2015-08-111-8/+32
| | | | | | | | logging If the XML was truncated for some reason then ExecuteReadProcessors() would get into an infinite loop, using high CPU. Now it detects EOF (and several other error cases) and aborts. The rest of the changes just improve logging of XML in case of errors, so that we can see what the bad XML is.
* Mantis #7657 and #7514. This should alleviate the problem of bad object ↵Diva Canto2015-08-011-0/+19
| | | | | | | | | | | assets being passed around via HG and archives. No guarantees that all the leaks have been found, but at least it detects and fixes these bad assets upon: (1) storing and getting assets over HG -- assuming the core HG asset service is being used (not the case with OSGrid!) (2) importing assets via OAR and IAR Instantiation of bad assets now should also work, instead of producing an exception, but the bad assets themselves aren't being fixed in the DB. That should be done with a cleaning tool -- see Perl script in Mantis #7657. Virus!
* Refactored some code that is used in two different dlls related to SOP ↵Diva Canto2015-05-051-1/+183
| | | | rewriting. Also added some unit tests that relate to mantis #7514
* It wasn't that. Revert "Mantis #7514"Diva Canto2015-05-021-3/+0
| | | | This reverts commit 365f46bfa91245e6e277a180dc6bbf757ea2540f.
* Mantis #7514Diva Canto2015-05-021-0/+3
| | | | | Mono bug introduces double xmlns attribute names when rewriting the asset in HGAssetService, e.g. <SceneObjectPart xmlns:xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xmlns:xsd="http://www.w3.org/2001/XMLSchema">. Solution: remove all attributes before saving.
* Ignore whitespace when reading serialized XML objects.Justin Clark-Casey (justincc)2014-08-291-4/+4
| | | | | | This was previously effectively being done by XmlDocument in the multiple passes through the XML. This change tells XmlReader to ignore whitespace. This also means changing arguments to use XmlReader instead of XmlTextReader (a descendent of XmlReader) directly. XmlReader.Create() has been the recommend way to create XML readers since .NET 2.0 as per MS SDK and is the only way to specific ignore whitespace settings.
* Refactored: ExternalRepresentationUtils should be the only place where the ↵Oren Hurvitz2014-03-241-3/+13
| | | | | | "CreatorData" field is calculated, to ensure uniformity Resolves http://opensimulator.org/mantis/view.php?id=6933
* On object deserialization, go back to logging errors at DEBUG level rather ↵Justin Clark-Casey (justincc)2012-02-131-6/+13
| | | | | | | | than ERROR. Restore extra log message if shape processing fails. Logging level was DEBUG before 312e145 (Fri Feb 3 2012). 312e145 also accidentally removed the 'general error' log message if any shape deserialization failed. This commit restores it, though this has no functional impact.
* Change SceneObjectSerializer to use common ↵Justin Clark-Casey (justincc)2012-02-031-9/+28
| | | | | | ExternalRepresentationUtils.ExecuteReadProcessors() methods. Adds ability to submit a customized exception message to match logging.
* Refactor common deserialization processor code to generic method ↵Justin Clark-Casey (justincc)2012-02-031-1/+52
| | | | ExternalRepresentationUtils.ExecuteReadProcessors()
* HG: normalize all externalized user ULRs to be the Home URL, i.e. the ↵Diva Canto2012-01-121-4/+4
| | | | location of the user's UAS. This corrects an earlier design which had some cases pointing to the profile server. WARNING: CONFIGURATION CHANGES in both the sims (*Common.ini) and the Robust configs (Robust.HG.ini). Please check diff of the example files, but basically all vars that were pointing to profile should point to the UAS instead and should be called HomeURI.
* Added some comments. Better than listening to the boring speaker...Diva Canto2010-12-011-0/+12
|
* Preservation of creator information now also working in IARs. Cleaned up ↵Diva Canto2010-11-291-0/+87
usage help. Moved Osp around, deleted unnecessary OspInventoryWrapperPlugin, added manipulation of SOP's xml representation in a generic ExternalRepresentationUtils function.