View Single Post
  #26 (permalink)  
Old 10-20-2008, 09:13 AM
yyovkov yyovkov is offline
Active Member
 
Posts: 29
Default

Hi Paolo,
as I wrote a lot of messages, the instructions are on the previos page, but I will post them again with some comments:

> 1) what you fixed to get the menu right-click working ? I didn't see the instruction.

All the changes are made in file "org_alfresco_zimbra.js":

1. Correct syntax error
on line 453, change from
--- begin ---
for each (var mimeType in AlfMimeTable.list ) {
--- end ---
to
--- begin ---
for (var mimeType in AlfMimeTable.list ) {
--- end ---

2. In order for the script to be able to deal with proxy, I am allowin the proxy for all installed domains. This is made by next command:
--- begin ---
$ zmprov mc default zimbraProxyAllowedDomains "*"
--- end ---

3. Solving the problem with attaching the files with unicode filenames and with white space in the filenames.
As I try to attach the file with "generated" url, when the url has white space in it or other characters that java can not parse natively, the attachmant is not able to proceed. Fortunately the developer present how to deal with shortLinks. So I am using shortLink to the file during the procedure of attaching file to email. I add another variable "document.ssrc" which is always in java native codepage:
On line 331 add next line"
--- begin ---
document.ssrc = "http://"+this.getAlfUrl()+nodes[i].data.shortlink+"?ticket="+this.getTicket();
--- end ---
and on line 399 add:
--- begin ---
var src = doc.ssrc;
--- end ---
then on line 406 change from:
--- begin ---
AjxStringUtil.urlComponentEncode (src) +
--- end ---
to
--- begin ---
AjxStringUtil.urlComponentEncode (ssrc) +
--- end ---

That is all.

> 2) I will add the fix for for each. Not sure why it works on my instance.
Probably this is an private case :-). Whatever, the Open Source is a good, as many people can help you to find what you can not see otherwise :-).

> 3) I will add the fix for the UTF/white space file name.
This would be great. I think there should be more elegant way to implement, but I am not a developer, so I can do only "dirty hacks". I hope you will clean the code of my wilederness.

> 4) I will look at the space browser when saving document to alfresco. it should not be too hard. So you think auto-complete is no good? or we just need two options.
I think this will be very helpfull for non-geek users. The plugin will be more usable.

Regards,
Yovko Yovkov
Reply With Quote