Closed Bug 1001212 Opened 12 years ago Closed 12 years ago

Cannot preinstall a packaged app that has a mini-manifest using a package_path that is a relative path

Categories

(Firefox OS Graveyard :: Gaia::Build, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jsmith, Assigned: macajc)

Details

Attachments

(1 file, 1 obsolete file)

Build - 4/24/2014 2.0 Open C Build STR 1. Setup a variant customization that points to a mini-manifest that uses a relative package path 2. Flash the customization Expected The customization should successfully flash. Actual The build fails. Console Output MOZILLA_OFFICIAL=1 GAIA_DISTRIBUTION_DIR=customization make production adb shell stop b2g adb shell rm -r /cache/* adb shell rm -r /data/b2g/* adb shell rm -r /data/local/webapps rm failed for /data/local/webapps, No such file or directory adb remount remount succeeded adb shell rm -r /system/b2g/webapps adb shell 'if test -d /persist/svoperapps; then rm -r /persist/svoperapps; fi' run-js-command gaia/preferences run-js-command gaia/webapp-manifests run-js-command gaia/keyboard-layouts run-js-command gaia/svoperapps [svoperapps.js] fetch apps [svoperapps.js] downloading manifest: http://mozilla.github.io/qa-testcase-data/webapi/apps/singleasm.manifest Exception: TypeError: matched is null SvoperappsBuilder.prototype.getOrigin@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/jsmith/Downloads/gaia/build/svoperapps.js:34:5 mandifestHandler@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/jsmith/Downloads/gaia/build/svoperapps.js:181:1 downloadJSON/xhr.onreadystatechange@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/jsmith/Downloads/gaia/build/utils-xpc.js:481:9 processEvents@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/jsmith/Downloads/gaia/build/utils-xpc.js:531:5 SvoperappsBuilder.prototype.execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/jsmith/Downloads/gaia/build/svoperapps.js:316:1 exports.execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/jsmith/Downloads/gaia/build/svoperapps.js:320:4 CommonjsRunner.prototype.run@/home/jsmith/Downloads/gaia/build/xpcshell-commonjs.js:69:5 run@/home/jsmith/Downloads/gaia/build/xpcshell-commonjs.js:84:3 @-e:1:1 make: *** [svoperapps] Error 3
Jason, I've tried the STR in comment#0 but I can't reproduce the problem. Did you change the minimanifest? Can you provide a minimanifest that fails?
(In reply to Carmen Jimenez Cabezas from comment #1) > Jason, I've tried the STR in comment#0 but I can't reproduce the problem. > Did you change the minimanifest? Can you provide a minimanifest that fails? Sure. It's a modified version of the mini-manifest seen at https://github.com/mozilla/qa-testcase-data/blob/gh-pages/webapi/apps/singleasm.manifest that switches the package_path from absolute to relative: { "version": "1.0", "name": "Precompile Single JS Test App", "size" : 10000, "release_notes": "First v1.0 release", "icons": { "126": "/qalogo.png" }, "developer": { "name": "Mozilla QA", "url": "http://jasondanielsmith.wordpress.com/" }, "package_path": "/qa-testcase-data/webapi/apps/singleasm.zip" }
QA Contact: cjc
Assignee: nobody → cjc
QA Contact: cjc
Attached file Proposed patch v1 (obsolete) —
Attachment #8413781 - Flags: review?(yurenju.mozilla)
Attachment #8413781 - Flags: review?(yurenju.mozilla) → review?(gduan)
Comment on attachment 8413781 [details] Proposed patch v1 Hi Carmen, I've put two comments on it, please check and set r? again, thanks!
Attachment #8413781 - Flags: review?(gduan)
Attachment #8413781 - Flags: review?(gduan)
Comment on attachment 8413781 [details] Proposed patch v1 Hi Carmen, would you update your patch based on my comments on github and set r? to me again?
Attachment #8413781 - Flags: review?(gduan)
Attachment #8413781 - Attachment is obsolete: true
Attached file Proposed patch
Attachment #8415085 - Flags: review?(gduan)
George, I attached the wrong link, sorry!. I've done the changes you requested, could you take a look again? thanks
Comment on attachment 8415085 [details] [review] Proposed patch it looks good to me. r=gduan
Attachment #8415085 - Flags: review?(gduan) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: