Closed Bug 861967 Opened 12 years ago Closed 12 years ago

updater sets PLATFORM_VERSION part of URL wrong

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 23

People

(Reporter: bhearsum, Assigned: bhearsum)

Details

Attachments

(1 file)

The update URL for Fennec is currently defined like this: UPDATE_URL = "https://aus2.mozilla.org/update/4/" + AppConstants.MOZ_APP_BASENAME + "/" + AppConstants.MOZ_APP_VERSION + "/%BUILDID%/Android_" + AppConstants.MOZ_APP_ABI + pkgSpecial + "/%LOCALE%/" + AppConstants.MOZ_UPDATE_CHANNEL + "/%OS_VERSION%/default/default/" + AppConstants.MOZ_APP_VERSION + "/update.xml"; } However, the last path segment of the URL should be the Gecko version, not the application version. For comparison, this is what the XUL based Fennec used: https://aus2.mozilla.org/update/4/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PLATFORM_VERSION%/update.xml (from https://mxr.mozilla.org/mobile-browser/source/app/mobile.js#517).
Assignee: nobody → snorp
I pushed a possible patch for this to try: https://tbpl.mozilla.org/?tree=Try&rev=b147041377c2
Assignee: snorp → nobody
This patch seems to have worked, I got this in my log from the test build: I/UpdateService( 5169): openning connection with url: https://aus2.mozilla.org/update/4/Fennec/23.0a1/20130415130941/Android_arm-eabi-gcc3/en-US/default/4.1.1/default/default/99.0a1/update.xml
Assignee: nobody → bhearsum
Status: NEW → ASSIGNED
Attachment #738096 - Flags: review?(snorp)
Comment on attachment 738096 [details] [diff] [review] use MOZILLA_VERSION Review of attachment 738096 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks
Attachment #738096 - Flags: review?(snorp) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: