[ 
https://issues.apache.org/jira/browse/XMLBEANS-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651227#action_12651227
 ] 

Radu Preotiuc-Pietro commented on XMLBEANS-372:
-----------------------------------------------

Unfortunately, there is some serious confusion going on.

Paul, your problem has *nothing* to do with XMLBEANS-154 as an examination of 
the stack trace quickly shows. I don't know what your problem is because you 
don't give us enough information other than the fact that SAML is somehow 
involved.

Raez, from what you are saying, it sounds like your problem has nothing to do 
with Paul's also.

The other unfortunate thing is that the exception message from Piccolo doesn't 
make it clear that what is happening is that a '&' character is found in the 
XML without being part of an entity or reference, which is not well-formed XML. 
There are numerous reasons why such an invalid document could be given to 
XMLBeans to parse, but in Raez's case it looks like the code that is taking the 
user input and turning it into XML is not handling the case where the user is 
entering a '&' character verbatim. In that case, the code needs to escape it 
with &amp; before feeding the XML to XMLBeans: XML rule. (same thing with '<' 
which needs to be escaped with &lt; these things should be part of your testing)



> XMLBean locale exception is thrown when element containing '&' is used
> ----------------------------------------------------------------------
>
>                 Key: XMLBEANS-372
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-372
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>    Affects Versions: Version 2.1
>         Environment: Solaris
>            Reporter: Paul Gray
>
> I have an issue where if a special character is entered (example '&') the 
> SAML authentication breaks. 
> An identical case was raised by another user, See url below) the issue was 
> apparently resolved and a new version was released, unfortunately this does 
> not appear to have resolved the issue!
> http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200512.mbox/[EMAIL 
> PROTECTED]
> The error appears to be in: org.apache.xmlbeans.impl.store.Locale.java
>  
> 13:38:47,913 INFO  [STDOUT] org.apache.xmlbeans.XmlException: error: 
> Unexpected character encountered (lex state 3): ' '
> 13:38:47,945 INFO  [STDOUT]     at 
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467)
> 13:38:47,960 INFO  [STDOUT]     at 
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> Kind Regards
> Paul

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to