rpbouman / mysqldump-x-restore Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/mysqldump-x-restore
Automatically exported from code.google.com/p/mysqldump-x-restore
What steps will reproduce the problem?
1. Run the mysqldump-x-restore stylesheet against a mysql dump file with
apostrophes in the data between tags.
2.
3.
What is the expected output? What do you see instead?
I get a warning from xsltproc that there is a possible infinite recursion, even
if I only have 1 row of data with a few hundred characters of text.
This is the error I get:
runtime error: file test.xslt line 385 element param
xsltApplyXSLTTemplate: A potential infinite template recursion was detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number
of nested template calls and variables/params (curre
ntly set to 3000).
Templates:
#0 name escape-quotes
#1 name escape-quotes
#2 name escape-quotes
#3 name escape-quotes
#4 name escape-quotes
#5 name escape-quotes
#6 name escape-quotes
#7 name escape-quotes
#8 name escape-quotes
#9 name escape-quotes
#10 name escape-quotes
#11 name escape-quotes
#12 name escape-quotes
#13 name escape-quotes
#14 name escape-quotes
Variables:
#0
value
#1
value
#2
value
#3
value
#4
value
#5
value
#6
value
#7
value
#8
value
#9
value
#10
value
#11
value
#12
value
#13
value
#14
value
no result for gives_infinite_recursion.xml
Original issue reported on code.google.com by [email protected]
on 8 Mar 2012 at 4:04
Attachments:
The error message arise on using current mysqldump-xml-to-sql.xslt on a 5
gigabyte xml dump.
Inside the dump are a lot of loglines (rsyslog) and binary data.
The xz compressed dump has 63Mb and can be provided on a confidential channel.
It would be great do get some assistance to recover as much of the data as
possible (especially the gallery3 database).
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 4:18
C:\Users\dschiller\Downloads\libxslt-1.1.26.win32\bin>xsltproc.exe mysqldump-xml-to-sql.xslt db_backup.xml
db_backup.xml:24: parser error : Char 0x0 out of allowed range
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="
^
db_backup.xml:24: parser error : AttValue: ' expected
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="
^
db_backup.xml:24: parser error : attributes construct error
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="
^
db_backup.xml:24: parser error : Couldn't find end of Start Tag field line 24
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="
^
db_backup.xml:24: parser error : Premature end of data in tag table_structure line 15
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="
^
db_backup.xml:24: parser error : Premature end of data in tag database line 3
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="
^
db_backup.xml:24: parser error : Premature end of data in tag mysqldump line 2
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="
^
unable to parse db_backup.xml
Alo running in thousands of lines like this:
db_backup.xml:195342: parser error : PCDATA invalid Char value 5
???*2???↨?9j?Z?{,w?+?‼¦┐↨M??6hH'??&??%M▄àt????▬<??|???i?5?W{s?w▲=Y???p???
^
And those:
db_backup.xml:195347: parser error : PCDATA invalid Char value 6
<field name="value">+?2?R241U?♠</field>
^
db_backup.xml:195352: parser error : PCDATA invalid Char value 6
<field name="value">+?2?R2461U?♠</field>
^
db_backup.xml:195357: parser error : PCDATA invalid Char value 6
<field name="value">+?2?R?P?♠</field>
^
db_backup.xml:195362: parser error : PCDATA invalid Char value 6
<field name="value">+?2?R242T?♠</field>
^
db_backup.xml:195365: parser error : Opening and ending tag mismatch: row line 194332 and table_data
</table_data>
^
db_backup.xml:1594525: error: xmlSAX2Characters: huge text node: out of memory
# Uncheck "Use SSL" and "Use TLS"
^
db_backup.xml:1594526: parser error : Extra content at the end of the document
# Publish <nowiki>email.ou</nowiki>tboundmessenger
^
unable to parse db_backup.xml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.