[ 
https://issues.apache.org/jira/browse/DDLUTILS-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Lipp updated DDLUTILS-174:
----------------------------------

    Attachment: populate-liferay-db.xml
                liferay-db-schema.xml

Please find attached the output of databaseToDdl that shows the described 
error. It is from a HSQL database.

How to reproduce: as the data is not valid XML (this is what all this is about) 
you have to edit the file in order to be able to restore it. Remove the 
"<![CDATA[" after "<CONTENT>" and the "]]>" before "</CONTENT>" . Replace 
(between "<CONTENT>" and "</CONTENT>") all occurences of '<' with "&lt;" and 
'>' with "&gt;". Then use ddlToDatabase to restore the database.

Dump the restored database. You'll find that it produces the files attached, 
including the faulty nesting of CDATA-sections.


> Not all "special characters" in content detected
> ------------------------------------------------
>
>                 Key: DDLUTILS-174
>                 URL: https://issues.apache.org/jira/browse/DDLUTILS-174
>             Project: DdlUtils
>          Issue Type: Bug
>          Components: Core (No specific database)
>    Affects Versions: 1.0 RC1
>            Reporter: Michael Lipp
>            Assignee: Thomas Dudziak
>         Attachments: liferay-db-schema.xml, patch.txt, populate-liferay-db.xml
>
>
> Besides the characters already detected in 
> DataWriter.containsSpecialCharacters there is another "special character" 
> that requires using base64 encoding: "<![CDATA[". Because content is written 
> to XML within "<![CDATA[...]]>" it may not contain "<![CDATA[".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to