Closed Bug 287015 Opened 20 years ago Closed 20 years ago

calendar directory creation code doesn't verify it worked ...

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: timeless, Assigned: mostafah)

Details

preface: user = test os = wxp fs = ntfs5 quotas = enabled for user test on volume c:, limit: 1mb if you need access to a quotable account running on w2k, it can be arranged (rdc/mstsc/rdesktop to raistlin) -----======[ ERROR ]=====----- ERROR: in dir.js:create (unable to create) Name: NS_ERROR_FAILURE Result: 2147500037 Message: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsILocalFile.create] FileName: chrome://calendar/content/jslib/io/dir.js LineNumber: 119 NS_ERROR_NUMBER: NS_ERROR_FAILURE ------------------------------ vnk: execution hook: function calendarManager(CalendarWindow=Object:{2}) in <chr ome://calendar/content/calendarManager.js> line 69 Exception ``[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsILocalFile.create]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://calendar/content/jslib/io/dir.js :: anonymous :: line 119" data: no]'' thrown from function anonymous(aPermissions=void:void) in <chrome://calendar/content/jslib/io/dir.js> line 119. Stopped for thrown exception. #0: function anonymous(aPermissions=void:void) in <chrome://calendar/content/jslib/io/dir.js> line 119 117: 118: try { 119: rv=this.mFileInst.create(JS_DIR_DIRECTORY, checkPerms); 120: } catch (e) { 121: jslibError(e, "(unable to create)", "NS_ERROR_FAILURE", JS_DIR_FILE+":create"); Continuing from thrown exception. #0: function calendarManager(CalendarWindow=Object:{2}) in <chrome://calendar/content/calendarManager.js> line 69 069: thisDir.create(); #0: function calendarManager(CalendarWindow=Object:{2}) in <chrome://calendar/content/calendarManager.js> line 72 072: var profileFile = this.getProfileDirectory(); #0: function calendarManager(CalendarWindow=Object:{2}) in <chrome://calendar/content/calendarManager.js> line 74 074: profileFile.append("Calendar"); #0: function calendarManager(CalendarWindow=Object:{2}) in <chrome://calendar/content/calendarManager.js> line 75 075: profileFile.append("CalendarManager.rdf"); #0: function calendarManager(CalendarWindow=Object:{2}) in <chrome://calendar/content/calendarManager.js> line 77 077: this.rdf = new RDFFile( profileFile.path, null); Exception ``[Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFile.isDirectory]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://calendar/content/jslib/io/file.js :: anonymous :: line 736" data: no]'' thrown from function anonymous() in <chrome://calendar/content/jslib/io/file.js> line 736. Stopped for thrown exception. #0: function anonymous() in <chrome://calendar/content/jslib/io/file.js> line 736 734: } 735: 736: if (!this.mFileInst.parent.exists() && this.mFileInst.parent.isDirectory()) { 737: jslibError(null, "(no such file or dir: '"+this.path+"' )", 738: "NS_ERROR_INVALID_ARG", #1: function anonymous(aMode=string:"w", aPerms=void:void) in <chrome://calendar/content/jslib/io/file.js> line 275 #2: function anonymous(aPath=string:"C:\\Documents and Settings\\test\\Application Data\\Mozilla\\Profiles\\Default\\huk3srm9.slt\\Calendar\\CalendarManager.rdf", aFlags=integer:1, aNameSpace=string:"http://jslib.mozdev.org/rdf#", aID=string:"JSLIB") in <chrome://calendar/content/jslib/rdf/rdfFile.js> line 64 #3: function RDFFile(aPath=string:"C:\\Documents and Settings\\test\\Application Data\\Mozilla\\Profiles\\Default\\huk3srm9.slt\\Calendar\\CalendarManager.rdf", aFlags=null:null, aNameSpace=void:void, aID=void:void) in <chrome://calendar/content/jslib/rdf/rdfFile.js> line 46 #4: function calendarManager(CalendarWindow=Object:{2}) in <chrome://calendar/content/calendarManager.js> line 77 #5: function CalendarWindow() in <chrome://calendar/content/calendarWindow.js> line 87 #6: function calendarInit() in <chrome://calendar/content/calendar.js> line 182 #7: function onload(event=Event:{0}) in <chrome://calendar/content/calendar.xul> line 0 /* make sure the calendar directory exists, create it if it doesn't */ - 66 if( !CalendarDirectory.exists() ) 67 { - 68 var thisDir = new Dir( CalendarDirectory.path ); - 69 thisDir.create(); 70 } 71 - 72 var profileFile = this.getProfileDirectory(); 73 - 74 profileFile.append("Calendar"); - 75 profileFile.append("CalendarManager.rdf"); 76 - 77 this.rdf = new RDFFile( profileFile.path, null); calendar limps along well enough, but the code should be changed. personally i'd like the option of specifying a different volume, perhaps one of my volumes does allow me a bit more space (as it happens, one does), alternatively, perhaps there's a webdav/ftp host which is willing to provide space for my calendaring needs. whatever the fix is, it should not result in me not being able to use the calendar app (currently i can mostly use it).
this code isn't used anymore (and besides, the bugreport is totally unreadable. I have no idea what the actual problem is. describing it instead of pasting debugger output would help)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.