You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/07/27 10:33:35 UTC
[jira] [Resolved] (WICKET-4679) XmlPullParser doesn't parse
correctly attributes with complex namespace
[ https://issues.apache.org/jira/browse/WICKET-4679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4679.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.8
6.0.0
Improved it to be able to parse namespaces with two colons inside.
I don't see a better way to make the parsing scaling to more complex attribute names without making the regex pattern more complex.
> XmlPullParser doesn't parse correctly attributes with complex namespace
> -----------------------------------------------------------------------
>
> Key: WICKET-4679
> URL: https://issues.apache.org/jira/browse/WICKET-4679
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.7, 6.0.0-beta3
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 6.0.0, 1.5.8
>
>
> Having a markup like:
> <a class="addthis_button_google_plusone_badge" g:plusone:size="smallbadge" g:plusone:href="https://plus.google.com/25252/"></a> causes XmlPullParser to throw the following exception:
> java.text.ParseException: Same attribute found twice: g:plusone (line 19, column 100)
> at org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:673)
> at org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:294)
> at org.apache.wicket.markup.parser.filter.RootMarkupFilter.nextElement(RootMarkupFilter.java:58)
> .....
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira