Last modified: 2014-03-02 02:01:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63451, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61451 - sax exception in vc-element in "Netfront 3.5" browser
sax exception in vc-element in "Netfront 3.5" browser
Status: RESOLVED WORKSFORME
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-16 22:46 UTC by John Mills
Modified: 2014-03-02 02:01 UTC (History)
2 users (show)

See Also:
Web browser: Other
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mills 2014-02-16 22:46:32 UTC
Visiting Wikipedia pages (most) on ZTE T96 mobile phone yields error "Syntax 
error: http://xml.org/sax/exception/xml/vc-element" and the page does not 
load.

Steps to reproduce:

On ZTE T96 mobile phone (mine was supplied by Telstra Australia) run the 
default Web browser (NetFront V3.5).
In the URL field enter test2.wikipedia.org

Actual results:
An error message is displayed on the phone, with only an "OK" legend above 
the phone's main button, and pressing the button returns to the URL entry 
screen.

Error message:
--------------------------------------------------------
Syntax error: http://xml.org/sax/exception/xml/vc-element
Address=http://test2.m.wikipedia.org/wiki/Main_Page
Line=15 Column=32
--------------------------------------------------------

Expected Results:
The page should load.


Other information that might be useful:

According to Firefox 27.0 Page Source viewer on my desktop computer, Line 15 
is as follows:
<link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom" />


Other information that might be useful:
On a previous test, (9/23/2013) line 15 was:
<meta name="ResourceLoaderDynamicStyles" content="" />

The error is displayed in an error alert, not in the NetFront browser.

www.wikipedia.org succeeds using the phone's URL method, but most 
wikipedia content pages fail with the same SAX error.

Although I used the test2 server for the "Steps to reproduce", I first 
noticed the error on the main server, for example:
http://en.wikipedia.org/wiki/Squaring_the_circle

I do not get this error on any Web sites other than Wikipedia content 
pages.

I found a page suggesting that a <br/> tag outside of <p> and </p> tags 
could cause this. There is one such tag in the page source of
http://en.wikipedia.org/wiki/Squaring_the_circle 
This is line 693: 
---------------------------- snip -------------------------- 
additional terms may apply.  By using this site, you agree to the <a href="//wikimediafoundation.org/wiki/Terms_of_Use">Terms of Use</a> and <a href="//wikimediafoundation.org/wiki/Privacy_policy">Privacy Policy.</a> <br/>
------------------------------ end snip ---------------------------

This line is outside of any <p> </p> tags, and it contains a <br/> tag.

Hope this helps
John Mills
Comment 2 John Mills 2014-02-16 23:15:39 UTC
NOTE: the line with the <br/> tag in 
http://en.wikipedia.org/wiki/Squaring_the_circle 
now occurs at line number 703
Comment 3 Max Semenik 2014-02-16 23:33:57 UTC
Looks like NetFront is trying to parse HTML with a XML parser which isn't going to work. NetFront 3.5 was born in 2008 but still this behaviour is strange.


At the Telstra site, I get:

"This site is for Australia and New Zealand customers only.

All other countries are blocked."
Comment 4 John Mills 2014-02-16 23:40:41 UTC
Hello Max
Thank you for your time.
I guess the hardware is not important - it's a "feature phone" running some kind of java engine.

So wikimedia does not use XML, and this might be an issue for the NetFront developers?

Thanks again
John Mills
Comment 5 John Mills 2014-02-17 00:40:25 UTC
Update
The phone will load "wikipedia.org" and says its Address is "http://www.wikipedia.org"

for m.wikipdeia.org the phone fails with the SAX error, saying the URL is http://en.m.wikipedia.org/wiki/Main_Page


Opera Mini 7.1 will load all the wikipedia pages fine, so that is my workaround.

If that satisfies your criteris I am happy for you to close the bug.
But I'm happy to run a few tests also.

John Mills
Comment 6 John Mills 2014-03-02 02:01:58 UTC
This seems no longer to be happening.
I don't know whether it was the changes I tried in my mobile settings (Netfront Settings and Google "format for mobile").

But I did notice this difference between two tests of the mobile and plain versions of wikipedia.org:

mobile:
"wgULSAcceptLanguageList":[]
plain:
"wgULSAcceptLanguageList":["en-us"]

Thanks for your help.
John Mills

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links