Last modified: 2014-09-22 20:35:29 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 T57576, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55576 - Commons app crashes on malformed server API response
Commons app crashes on malformed server API response
Status: RESOLVED WONTFIX
Product: Commons App
Classification: Unclassified
Android (Other open bugs)
unspecified
All All
: Normal critical
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-10 17:28 UTC by Tomasz Finc
Modified: 2014-09-22 20:35 UTC (History)
3 users (show)

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


Attachments

Description Tomasz Finc 2013-10-10 17:28:42 UTC
USER_COMMENT=startup
ANDROID_VERSION=4.3
APP_VERSION_NAME=1.0beta10
BRAND=google
PHONE_MODEL=Nexus 4
CUSTOM_DATA=
STACK_TRACE=java.io.IOError: org.xml.sax.SAXParseException: Unexpected token (position:TEXT This version of ...@3:1 in java.io.InputStreamReader@41e708d8) 
at org.mediawiki.api.ApiResult.fromRequestBuilder(ApiResult.java:58)
at org.mediawiki.api.MWApi.makeRequest(MWApi.java:186)
at org.mediawiki.api.MWApi.access$000(MWApi.java:30)
at org.mediawiki.api.MWApi$RequestBuilder.get(MWApi.java:46)
at org.wikimedia.commons.contributions.ContributionsSyncAdapter.onPerformSync(ContributionsSyncAdapter.java:72)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
Caused by: org.xml.sax.SAXParseException: Unexpected token (position:TEXT This version of ...@3:1 in java.io.InputStreamReader@41e708d8) 
at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
at org.mediawiki.api.ApiResult.fromRequestBuilder(ApiResult.java:44)
... 5 more
org.xml.sax.SAXParseException: Unexpected token (position:TEXT This version of ...@3:1 in java.io.InputStreamReader@41e708d8) 
at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
at org.mediawiki.api.ApiResult.fromRequestBuilder(ApiResult.java:44)
at org.mediawiki.api.MWApi.makeRequest(MWApi.java:186)
at org.mediawiki.api.MWApi.access$000(MWApi.java:30)
at org.mediawiki.api.MWApi$RequestBuilder.get(MWApi.java:46)
at org.wikimedia.commons.contributions.ContributionsSyncAdapter.onPerformSync(ContributionsSyncAdapter.java:72)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
Comment 1 Yuvi Panda 2013-10-10 17:47:49 UTC
Looks like a debug build since it is at beta10. Install from market?
Comment 2 Brion Vibber 2013-10-10 18:38:22 UTC
So this turns out to be due to a bug in MobileFrontend throwing errors from the API, and would affect the previous as well as the current version of the app.

I'm updating the bug summary to "Commons app crashes on malformed server API response".

Some more user-friendly error message should probably show up here, or it should do a graceful retry or something.
Comment 3 Dan Garry 2014-09-22 20:35:29 UTC
As the Mobile Apps Team is focussing on the new, native Wikipedia app, the Commons app is no longer being maintained by the Wikimedia Foundation. I am WONTFIXing all open Commons app bugs to reflect that we will not be spending time fixing them.

For the full story, see this thread on mobile-l: https://lists.wikimedia.org/pipermail/mobile-l/2014-September/thread.html#7974

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


Navigation
Links