Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error exporting page that contains xml with CDATA parts #128

Open
moxter opened this issue Feb 7, 2014 · 2 comments
Open

Error exporting page that contains xml with CDATA parts #128

moxter opened this issue Feb 7, 2014 · 2 comments

Comments

@moxter
Copy link
Contributor

moxter commented Feb 7, 2014

From [email protected] on June 02, 2010 06:11:33

What steps will reproduce the problem? 1. in busines-modeller, create a page admin object as follows:
Name: MyTest
Description: My Test
Mime Type: text/xml
Content:

]]]> 1. in the MQL (RMI)-Console execute: exec prog MxUpdate -e --path "" --page "MyTest"; (Replace the with a path convenient on your system) What is the expected output? What do you see instead? Expected: The PAGE file will be created and contains the page configuration

Instead:
export page 'MyTest'
[Fatal Error] :25:62: The element type "pageContent" must be terminated by
the matching end-tag "".
org.xml.sax.SAXParseException: The element type "pageContent" must be
terminated by the matching end-tag "".
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.mxupdate.update.AbstractAdminObject_mxJPOMQXqtQAAAAEAAAAo.parse(A
bstractAdminObject_mxJPOMQXqtQAAAAEAAAAo.java:278)
at org.mxupdate.update.AbstractObject_mxJPOlxNxfgAAAAEAAAAg.export
(AbstractObject_mxJPOlxNxfgAAAAEAAAAg.java:184)
at MxUpdate_mxJPOz701pgAAAAEAAAAl.export
(MxUpdate_mxJPOz701pgAAAAEAAAAl.java:613)
at MxUpdate_mxJPOz701pgAAAAEAAAAl.mxMain
(MxUpdate_mxJPOz701pgAAAAEAAAAl.java:469)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at matrix.db.JPOSupport.invokeObject(JPOSupport.java:125)
Error: #1900068: exec program failed
System Error: #5000001: org.xml.sax.SAXParseException: The element
type "pageContent" must be terminated by the matching end-
tag "". What version of the product are you using? On what operating system? MxUpdate v0.9.0 on Windows XP with Matrix v6r2009HF57 Please provide any additional information below. I think it is related to the CDATA parts as the mx build-in export, if
used with the xml option, itself contains the content of the page in and
CDATA part. The so resulting nested CDATA in CDATA might confuse the
parsing within MxUpdate if it uses the mx export command to get the page
data.

Original issue: http://code.google.com/p/mxupdate/issues/detail?id=128

@moxter
Copy link
Contributor Author

moxter commented Feb 7, 2014

From [email protected] on June 10, 2010 08:20:29

Meanwhile I did a quick hack by changing the Page JPO to use URLEncoder in an overwritten execXMLExport(ParameterCache):

  • get the content between ""
  • if it is xml
    -- URLEncode it
    -- replace it in the xml
    -- set flag to indicate encoding
    And change method writeEnd(ParameterCache_mxJPO, Appendable) to use URLDecoder if that flag is set.

@moxter
Copy link
Contributor Author

moxter commented Feb 7, 2014

From [email protected] on February 07, 2014 12:31:40

Labels: MigrationStatus-New

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant