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)
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)
|
782 bytes,
patch
|
robert.strong.bugs
:
review+
vlad
:
approval1.9.2+
|
Details | Diff | Splinter Review |
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)
| Reporter | ||
Comment 1•16 years ago
|
||
[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.]
| Assignee | ||
Comment 2•16 years ago
|
||
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
| Reporter | ||
Comment 3•16 years ago
|
||
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.
| Assignee | ||
Comment 5•16 years ago
|
||
Not sure if we want to try to respect the file attributes or just set them to FILE_ATTRIBUTE_NORMAL.
| Assignee | ||
Updated•16 years ago
|
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+
| Assignee | ||
Comment 7•16 years ago
|
||
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+
| Assignee | ||
Comment 8•16 years ago
|
||
Pushed to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/761988dd0d81
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 9•16 years ago
|
||
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-
| Assignee | ||
Comment 10•16 years ago
|
||
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+
Updated•16 years ago
|
Whiteboard: [nv]
| Assignee | ||
Comment 11•16 years ago
|
||
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
status1.9.2:
--- → final-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•