Closed Bug 527845 Opened 16 years ago Closed 16 years ago

App update can't deal with read-only files

Categories

(Toolkit :: Application Update, defect)

x86
Windows CE
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta3-fixed

People

(Reporter: Dolske, Assigned: robert.strong.bugs)

References

Details

(Whiteboard: [nv])

Attachments

(1 file, 1 obsolete file)

Trying to update from 3.6a2 to 3.6b2 on my Tegra fails (with a complete .mar) because 2 files in the appdir were marked read-only (and hidden, in case that matters). The update log shows: EXECUTE ADD \Program Files\Firefox\browserconfig.properties remove failed: -1,0 (\Program Files\Firefox\browserconfig.properties) ### execution failed (browserconfig.properties is the readonly file)
[The reason this file is read-only appears to be due to a partner mistake, they had also modified the contents to change the homepage.]
Can you attach the full update log for reference? Thanks I believe there is a supported method for changing the home page using the distribution mechanism implemented by Thunder
The code does try to ensure writability, but... updater_wince.cpp 53 int _wchmod(const WCHAR* path, unsigned int mode) 54 { 55 return 0; 56 } Doh.
That was added in bug 458950.
Blocks: 458950
Not sure if we want to try to respect the file attributes or just set them to FILE_ATTRIBUTE_NORMAL.
Attachment #411603 - Flags: review?(vladimir)
Comment on attachment 411603 [details] [diff] [review] patch rev1 - use SetFileAttributes to emulate _wchmod Should be fine; I don't think there are any other interesting attributes that we care to preserve on CE.
Attachment #411603 - Flags: review?(vladimir) → review+
Changed SetFileAttributes to SetFileAttributesW. I'll land as soon as the tree is green as long as it isn't too late in the evening
Assignee: nobody → robert.bugzilla
Attachment #411603 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #411606 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Filed bug 527890 for WinCE / WinMo xpcshell tests for this bug. Minusing in-testsuite since bug 527890 will cover the tests for this bug.
Flags: in-testsuite-
Comment on attachment 411606 [details] [diff] [review] updated patch for checkin Requesting 1.9.2 a little preemptively since I'll verify this on the board tomorrow at work.
Attachment #411606 - Flags: approval1.9.2?
Attachment #411606 - Flags: approval1.9.2? → approval1.9.2+
Whiteboard: [nv]
dolske verified this did the trick with a partial trunk nightly as well. Pushed to mozilla-1.9.2 http://hg.mozilla.org/releases/mozilla-1.9.2/rev/2227ed93dfe6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: