Closed Bug 917650 Opened 13 years ago Closed 8 years ago

[B2G][Helix][OTA][ChenHoulai]When the update file is downloading, click the 'check now' button, the systemStatus displays 'There was an error'.

Categories

(Firefox OS Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lecky.wanglei, Unassigned)

Details

Attachments

(1 file, 1 external file)

33.26 KB, application/octet-stream
Details
User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; aff-kingsoft-ciba) Steps to reproduce: 【Detail Description*】:When the update file is downloading, click the 'check now' button, the systemStatus displays 'There was an error'. 【Repro Steps*】: 1、Enter into the settings, click 'check now' to get update info. 2、Download the update file. 3、When the update file is downloading, click the 'check now' button again. 【Expect Result*】: 3、The systemStatus displays 'A downloading in running' or something similar. 【Real Result*】: 3、The systemStatus displays 'There was an error when checking for updates'. 【Test Count*】:5 【Found Count*】:5 【Gaia commit ID*】:c0ea0a4943dc8d3751b07f5b5c5d3abe06364a14 【Gecko commit ID*】:170f9e477571127cd40997fa2abe262ed43f0e4d 【Log*】:ota.log 【Network environment】: 【Resume operation】: 【Carrier】:
Attached file ota.rar —
Severity: normal → critical
blocking-b2g: --- → hd?
Priority: -- → P1
Flags: needinfo?(wchang)
Kaizhen, Please check if there is any valid information in the attached logs.
Severity: critical → normal
blocking-b2g: hd? → ---
Flags: needinfo?(wchang) → needinfo?(kli)
Flags: needinfo?(kli)
This is working as design. In current design, if the checking status is not "check-complete", it will display "There was an error when checking for updates". To display other message, need to patch "gaia/apps/settings/js/about.js" add a condition check in function onUpdateStatus(), and check when value is 'active-update' display something such as "Updating in progress...".
Ok, thanks.
There is a better method can solve this issue, without patch to "gaia/apps/settings/js/about.js". Just need to define a display message in each language of setting with the name 'active-update'. For example for English : Add a the following line in "apps/settings/locales/settings.en-US.properties". active-update = Updating in progress…
Assignee: nobody → kli
Hi Juwei, Below are the messages displayed for different update status, but the messages for "active-update" status is missing. Can you suggest a message for this status? --- checking-for-update = Checking for updates… no-updates = No updates were found retry-when-online = Network is offline. Will check again when the network is online. already-latest-version = This is already the latest version of {{brandShortName}} check-error = There was an error when checking for updates. active-update = ??? ---
Flags: needinfo?(jhuang)
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Hi KaiZhen, Sorry for the late reply, I think for active-update status, "Updating..." is fine What do you think?
Flags: needinfo?(jhuang)
(In reply to Juwei Huang from comment #7) > Hi KaiZhen, > Sorry for the late reply, > I think for active-update status, "Updating..." is fine > What do you think? Hi Juwei, I think it is good. Thanks!
I found 4 properties files, I am not sure if all of them should be patched. Without this message, it will show error when there is updating.
Attachment #824498 - Flags: review?(ehung)
Comment on attachment 824498 [details] [review] add a message for active-update status. Thanks for the patch, but I don't think it's simply a string problem. In this case, we should prevent the user click the button again while it's updating. so r- and I will ask UX again. Regarding this patch, you don't have to update all *.properties files, only settings.en-US.properties is needed. The rest three files are for testing l10n result, not official localized files.
Attachment #824498 - Flags: review?(ehung) → review-
reopen this bug since we are trying to do something for UX issue here. @Neo, do you agree my comment 10? or you think simply string update is good enough?
Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(nhsieh)
Resolution: WORKSFORME → ---
(In reply to Evelyn Hung [:evelyn] from comment #10) > Comment on attachment 824498 [details] [review] > add a message for active-update status. > > Thanks for the patch, but I don't think it's simply a string problem. In > this case, we should prevent the user click the button again while it's > updating. so r- and I will ask UX again. > Yes, improve the UX will be better. Now, the status "active-update" is set but no message for it. So I think before UX got improve, add a message for this status is necessary.
Hi KaiZhen! In UX perspective I prefer to disable the button "check now" while the update activated. Since the user has tapped the check button, it shouldn't enable during the time checking for update... It is more reasonable to disable it rather than prompt another string.
Disable the "check now" button will also be a good solution, when the updating is in progress. I think it will be better to let the user know why the button is disabled in an appropriate way.
Assignee: kli → nobody
I think there is probable a problem if disable the 'checknow' button. In some case, for example, after the steps of the case 916033, when the handset restarts, the state will be 'active-update', but if the button is disabled, you will be not able to do the update. Because in this state, in the updatable.js, after the uncompress is complete, it will forgetKnownUpdate, and do not check automatically after the handset restart. The relative code in updatable.js is follows: SystemUpdatable.prototype.showApplyPrompt = function() { var _ = navigator.mozL10n.get; // Update will be completed after restart this.forgetKnownUpdate(); There are probable some other cases affect this too.
I agree with Evelyn. When the system is updating (Include downloading and installing), that button "Check now" should be gray out.
Flags: needinfo?(nhsieh)
I also agree with you all to improve the UX, but I think we can solve this by 2 steps. 1. simply add a message for the active-update status which can prevent to display "There was an error". 2. improve the overall UX when there is someone can be allocated to work on this.
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 13 years ago → 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: