Closed Bug 230617 Opened 21 years ago Closed 21 years ago

Jan 9 Build will not create new Calendar, Event, or Task for *first time* installation

Categories

(Calendar :: General, defect)

x86
Linux
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rickstockton, Assigned: mostafah)

References

Details

Attachments

(1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040106 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040106 Calendar GUI comes up, showing a multi-week Calendar. Current day is highlighted. On the toobar, only "New Event" and "Multiweek" are highlighted. Pressing either of these icons has no effect. The corresponding MenuItems also fail to present any change to the user. "File - New Calendar" does nothing, I was expecting a GUI to enter a name and specify a file location. Upper left "Calendars" shows no Calendars, just an empty gray box. Right-Click and attempt to create a new calendar via context menu also does nothing. And, I can't create any Tasks Reproducible: Always Steps to Reproduce: 1. Special setup: New installation of the Suite, with no existing calendars. 2. Bring up Calendar Window. 3. Attempt to create a Calendar, Event, or Task Actual Results: nothing. Upon restart, there is still no calendar, and you still can't create one. Failure to create a calendar might be the root of the problem, with the other behaviors all being symptoms of having no Calendar (Maybe, once I can make a Calendar, I might be able to create/edit/delete events and tasks, or change views.) Expected Results: Created a Calendar, let me create events, tasks, etc. Please feel free to build me a Linux test XPI and have me try it out at any time. I can't build from source, but I can save/restore my profile and my Mozilla codebase as often as we desire. I'm calling it "Blocker" because Calendar appears to be totally unusable for a brand-new user, who doesn't have an existing calendar or file to import.
I had the same problem, also on Linux. The cause turned out to be that the Calendar directory in my profile had weird permissions - 001 (only execute for other). As soon as I changed the permissions to 775, everthing worked OK. Tested with Linux nightly build from Jan 10, Jan 9 calendar xpi, and a new profile.
I've just confirmed comment 1: Problem is resolved by correcting the permissions assigned to the profile 'Calendar' directory.
And of course, my Thanks to Stephen!
Bug 196693 is about the calendar installer not fixing permissions Bug 196694 is about mozilla hanging on wrong file permissions I guess this is a dupe of one of those.
Not dups. Bug 196693 and bug 196694 are talking about the calendar directory under chrome. This bug is about the Calendar directory in the user profile.
This bug is still in the released 1.6. I'm glad others have provided the solution, thanks. Note that the bad perms on the "Calendar" directory (d--------x) also blocks "Tools->Subscribe to remote calendar".
*** Bug 231544 has been marked as a duplicate of this bug. ***
*** Bug 231632 has been marked as a duplicate of this bug. ***
*** Bug 231743 has been marked as a duplicate of this bug. ***
*** Bug 230615 has been marked as a duplicate of this bug. ***
Seeing all the dupes I think we can confirm this bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 232510 has been marked as a duplicate of this bug. ***
*** Bug 234338 has been marked as a duplicate of this bug. ***
*** Bug 234556 has been marked as a duplicate of this bug. ***
*** Bug 234676 has been marked as a duplicate of this bug. ***
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 Calendar Installed from: Mozilla Calendar 2004021918-cal Users created prior to Mozilla 1.6 and Calendar being installed on Knoppix 3.2 could not create calendars. Workaround - Change Permissions as follows: $ su - root # chmod u+rwx ~username/.mozilla/username/xjhlwgcgh.slt/Calendar # ls -lA ~username/.mozilla/username/xjhlwgcgh.slt Output should now be similar to: drwx---S-x username username 4096 Feb 20 18:36 Calendar Notes: (1) The xjhlwgcgh.slt part will be different for each user. (2) username in both cases = the username of the user having the problem. (3) For Security sake don't give any group permissions - leave group a --- Once the permissions are changed the Calendar works normally.
Alternative solution: Copy the following shell script to .../dist/bin/init.d/S80calendar_fix_permissions_bug_230617.sh or ~/.mozilla/init.d/S80calendar_fix_permissions_bug_230617.sh (without the "-- snip --", please :) -- snip -- #!/bin/sh if [ -z "${MOZ_USER_DIR}" ] ; then echo "${0}: Internal error: MOZ_USER_DIR not set." exit 1 fi for cf in "${HOME}/${MOZ_USER_DIR}"/*/*.slt/Calendar ; do if [ ! -r "${cf}" -o ! -w "${cf}" -o ! -x "${cf}" ] ; then echo "${0}: Fixing permissions for ${cf}" chmod u+rwx "${cf}" fi done # EOF. -- snip -- Since bug 230468 ("RFE: mozilla should provide a simple way to run custom shell scripts at mozilla startup and shutdown") such scripts are being executed automatically when being placed in $dist/bin/init.d/ or ~/.mozilla/init.d/ You can check for [ -r "$dist/bin/init.d/README" ] whether your Mozilla build supports such pluggable shell scripts.
Mostafa Hosseini: Should I make a patch for Mozilla with the workaround listed in the previous comment (that's very easy and will fix all broken directory permissions automagically :) ?
*** Bug 236046 has been marked as a duplicate of this bug. ***
(In reply to comment #13) > Although fixed I'll leave bug open until new XPI is built. New XPIs were built on 2004-04-08
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 234730 has been marked as a duplicate of this bug. ***
OS linux, mozilla 1.7.2, calendar 1.7.1.8a2 permissions still not fixed for user install. worked for root.
Attached file spam (obsolete) —
Can anyone delete this SPAM attachment?
Attachment #176109 - Attachment description: zdfdsf → spam
Attachment #176109 - Attachment is obsolete: true
Attachment #176109 - Attachment mime type: text/html → text/plain
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: gurganbl → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: