-
-
Notifications
You must be signed in to change notification settings - Fork 83
Add WstxInputProperties. P_ALLOW_XML11_ESCAPED_CHARS_IN_XML10
to allow XML 1.1 escaped characters in XML 1.0 content
#56
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
Conversation
@mguessan Excellent, looks good by quick glance. Now: right now my time to work on OSS is bit limited, so merging may take a while (I hope to have more time by mid-July, in 2 weeks). But I wanted to add a note that I have seen the PR. Thank you for the contribution! |
Great, the initial patch is in DavMail tree since 2012, see: It would be really great to get rid of it ! |
@mguessan Ok: only one request: could you please add |
Most methods added are for internal use, and other similar methods don't have since tags |
I like this patch, but doesn't it address the same issue as |
Not exactly, sounds like the - not implemented - P_VALIDATE_TEXT_CHARS would disable checks on raw unicode characters. P_XML10_ALLOW_ALL_ESCAPED_CHARS intends to allow perfectly valid XML 1.1 entities like � in XML 1.0 documents. Note that this patch was implemented to address the Microsoft generated XML issue. |
I know, that what we are all fighting with. If you check the sources for the So, it might be poorly formulated but I assume the concepts overlap, see “… only characters affected would be control characters (0x00 - 0x1F minus tab, cr, lf)”. |
…FasterXML/woodstox#56 git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2617 3d1905a2-6b24-0410-a738-b14d5a86fcbd
WstxInputProperties.P_XML10_ALLOW_ALL_ESCAPED_CHARS
to allow XML 1.1 escaped characters in XML content
WstxInputProperties.P_XML10_ALLOW_ALL_ESCAPED_CHARS
to allow XML 1.1 escaped characters in XML contentWstxInputProperties.P_XML10_ALLOW_ALL_ESCAPED_CHARS
to allow XML 1.1 escaped characters in XML 1.0 content
Thank you for contributing this @mguessan -- hoping to get 5.2.0 released relatively soon now. |
Sorry to nitpick again - shouldn't it be Also, line 2405 could read Thanks for the patch, much appreciated. |
@eikemeier Yes, name is not optimal. Perhaps
would be most descriptive? |
Seems good to me. |
WstxInputProperties.P_XML10_ALLOW_ALL_ESCAPED_CHARS
to allow XML 1.1 escaped characters in XML 1.0 contentWstxInputProperties. P_ALLOW_XML11_ESCAPED_CHARS_IN_XML10
to allow XML 1.1 escaped characters in XML 1.0 content
So it is now:
defined as
|
DavMail EWS implementation relies on the wonderful Woodstox Stax parser, with just a small issue: Exchange sends XML 1.0 content with XML 1.1 escaped characters.
Currently DavMail source code includes a patched version of StreamScanner to disable this check, I would really like to drop this patch.
This pull request includes a new custom property com.ctc.wstx.xml10AllowAllEscapedChars to allow XML 1.1 escaped characters in XML content.
Note that this is also related to bug #28