Error during startup [NS_ERROR_FILE_ACCESS_DENIED in mozIStorageService.openSpecialDatabase() in calmgr_checkAndMigrateDB()]

RESOLVED FIXED in 1.0b4

Status

defect
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: ssitter, Assigned: Fallen)

Tracking

Trunk
1.0b4
x86
Windows 7
Bug Flags:
blocking-calendar1.0 +

Details

(Whiteboard: [needed beta][no l10n impact])

Attachments

(1 attachment)

Lightning 1.1a1pre (BuildID: 20101003041818) with Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20101004 Thunderbird/3.3a1pre

Steps To Reproduce:
1. create new Thunderbird profile
2. install Lightning
3. restart Thunderbird
4. restart Thunderbird again

Actual Result:
[[[
Error: Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openSpecialDatabase]
Source file: file:///C:/.../calendar-js/calCalendarManager.js
Line: 438
]]]

[[[
Warning: WARN addons.manager: Exception calling callback: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openSpecialDatabase]"  nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: file:///C:/.../calendar-js/calCalendarManager.js :: calmgr_checkAndMigrateDB :: line 438"  data: no]
]]]

File storage.sdb doesn't exists in the profile folder and is not created by Lightning as expected.
Flags: blocking-calendar1.0+
Whiteboard: [needed beta][no l10n impact]
Posted patch Fix - v1Splinter Review
This should take care. I still have no idea why the core code is failing, but this will fix it without waiting for the core guys to fix it.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #492992 - Flags: review?(mschroeder)
Whiteboard: [needed beta][no l10n impact] → [needed beta][no l10n impact][needs review]
Comment on attachment 492992 [details] [diff] [review]
Fix - v1

r=mschroeder with following nits considered:

Please, replace tabs with spaces, and correct 'storageSDB' to camel-case 'storageSdb'. You can also use Services.storage for dbService.
Attachment #492992 - Flags: review?(mschroeder) → review+
Comment on attachment 492992 [details] [diff] [review]
Fix - v1

I haven't tested this myself. Also comment#0 says that there doesn't exist a storage.sdb at all.
Whiteboard: [needed beta][no l10n impact][needs review] → [needed beta][no l10n impact]
nits fixed. I've taken the liberty of also changing the code in calStorageProvider, so we don't run into problems there either.
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/6036661e9d7b>
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Trunk
You need to log in before you can comment on or make changes to this bug.