Results 1 to 7 of 7

Thread: 404 error when trying to access a shared notebook

  1. #1
    Join Date
    Apr 2012
    Posts
    7
    Rep Power
    3

    Default 404 error when trying to access a shared notebook

    Hi all,

    I'm quite new with Zimbra, but I've got a strange behaviour when trying to share a notebook.

    Let's say I've got two users: user1 and user2. User1 creates a new notebook and decides to share it with user2. He names the notebook "Carnet de user1" (the translation of "User1's notebook" in French) and adds user2's email as admin.

    User2 receives the mail and accept the shared notebook. The dialog shows the shared notebook's name (ie "Carnet de user1"). When user2 clicks OK then he's able to see the shared notebook in the notebook explorer. So everythings seems fine !

    But when user2 tries to see the shared notebook, he receives a "404 Page not found" error instead of the shared notebook document list !

    I used Firebug to spy the requested URL and saw http://mail.zimbra.lab/home/user2@zi...k%20de%20user1 (which results in a 404 Page not found) instead of http://mail.zimbra.lab/home/user2@zi...t%20de%20user1 - Note that "Carnet" has been translated to "Notebook" . If user1 use the last URL in a browser, he's able to see the shared notebook.

    Is it a bug (Zimbra translates words in URL) or did I miss a configuration somewhere ?

    Zimbra 6.0.15_GA / French language configured for both users / Browser configured with French locale.

    Thanks

  2. #2
    Join Date
    Apr 2012
    Posts
    7
    Rep Power
    3

    Default

    I've just done some other tests.

    1- You don't need to really share a notebook: just have a look to shared URL (at the bottom of the share window)

    2- I changed the language preference, for user2, to Spanish, then I'm able do see user1's shared notebook

    3- With Spanish as user's language, if I create a new notebook named "Bloc de notas de user" ("Bloc de notas" is the translation of "Notebook") and try to share it, then the URL is "http://mail.zimbra.lab/home/user@zimbra.lab/Notebook de Eric"

  3. #3
    Join Date
    Apr 2012
    Posts
    7
    Rep Power
    3

    Default

    As nobody answered (perhaps I'm not in the right forum ?), I used Firebug and tried to understand what's wrong with Zimbra.

    Here is the faulty JS code :
    Code:
    ZmNotebook.prototype.getSearchPath = function() {
    	var serverName = "Notebook";
    	var clientName = ZmMsg.notebookPersonalName;
    	
    	var path = ZmOrganizer.prototype.getSearchPath.call(this);
    	if (path.match(new RegExp("^"+clientName+"(/)?"))) {
    		path = serverName + path.substring(clientName.length);
    	}
    	
    	return path;
    };
    In my case the value of the property "notebookPersonalName" is (in French) "Carnet" and the path is initialized to "Carnet de user1". So regarding to the previous code the regexp match and path is changed to "Notebook 2".

    I don't really understand why this RegExp is for (and I didn't try to understand), also I don't understand why there is a hard coded string (in bold)!!!

    A workaround of this issue is to modify the value of the key "notebookPersonalName" in the file "/opt/zimbra/jetty-6.1.22.z6/webapps/zimbra/WEB-INF/classes/messages/ZmMsg_fr.properties" (according to the user's language, you have to modify the file ZmMsg_<XXX>.properties where <XXX> is the abrevation of a language) Et voilà !

    Also I tried to find where ZmMsg.notebookPersonalName is used in the source code and I've only found one instance in the previous JS method. So it seems that there's no risk to apply the mentionned workaround.


    Can a Zimbra team member:
    1- may explain me what does this property for ?
    2- tell me how to report this issue (or report it himself) ?

    Eric

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Eric Taix View Post
    Can a Zimbra team member:
    Generally speaking, ther are no 'team member' in these forums as they're Community Supported forums not official Zimbra support.

    Quote Originally Posted by Eric Taix View Post
    2- tell me how to report this issue (or report it himself) ?
    Go to bugzilla and file a report (link at the top of this page).
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Apr 2012
    Posts
    7
    Rep Power
    3

    Default

    Thanks Phoenix

  6. #6
    Join Date
    Oct 2011
    Location
    jignesh_22_1990@yahoo.com
    Posts
    68
    Rep Power
    4

    Default

    Hey Eric ,
    Are you using OpenSource Edition or Network Edition?
    And also let me know that you are running with single mailbox server or multiple.
    Last edited by Jignesh; 05-05-2012 at 10:20 AM.

  7. #7
    Join Date
    Apr 2012
    Posts
    7
    Rep Power
    3

    Default

    Hi Jignesh,

    I'm running a single mailbox server (opensource edition).
    I also created an issue into Bugzilla: https://bugzilla.zimbra.com/show_bug.cgi?id=73557

Similar Threads

  1. Recover shared notebook
    By feiticeir0 in forum Administrators
    Replies: 0
    Last Post: 10-13-2011, 07:43 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  3. Possible Notebook Bug (404 on new window)
    By riogd in forum Administrators
    Replies: 7
    Last Post: 02-13-2008, 01:34 PM
  4. Urgent: Can't found docs in shared Notebook
    By wcbenyip in forum Administrators
    Replies: 1
    Last Post: 08-22-2007, 04:22 AM
  5. Adding shared access to calendar
    By dk_dunkirk in forum Users
    Replies: 2
    Last Post: 12-21-2005, 11:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •