Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-22-2006, 11:10 AM
Member
 
Join Date: Mar 2006
Posts: 21
mghaught is on a distinguished road
Default AjxRpc and Ports?

I have been using the AjxRpc calls to get back text results from my web server for my Zimlet's use. My initial test worked fine which was not surprising since I lifted the code pretty much wholesale from the amazon zimlet. It however stopped working when I changed the url to point to a webserver with a specific port. Here's the broken url (domain has been changed to keep private):

http://vanilla-ruby.XXXX.com:3000/zimlet/view

I do urlEncode it with this line:

var url = ZmZimletBase.PROXY + AjxStringUtil.urlEncode(Com_Rs_Compose.URL);

Am I correct in guessing that ports are not supported in the AjxRpc calls? Is there some other issue? Thanks!

Cheers,
Marty
Reply With Quote
  #2 (permalink)  
Old 03-22-2006, 11:20 AM
Zimbra Employee
 
Join Date: Sep 2005
Posts: 2,068
marcmac is on a distinguished road
Default

Did you modify the zimlet config to add the domain to proxyAllowed domains?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 03-22-2006, 12:24 PM
Member
 
Join Date: Mar 2006
Posts: 21
mghaught is on a distinguished road
Default

Hmm, is this a separate property from allowedDomans in the config_template.xml? The domain is listed in the allowedDomains list.

Cheers,
Marty
Reply With Quote
  #4 (permalink)  
Old 03-22-2006, 01:21 PM
Member
 
Join Date: Mar 2006
Posts: 21
mghaught is on a distinguished road
Default

Okay, I've played a bit more with this. I've been able to get a rpc call to work against the domain. It has the www prefix. Just trying the same domain with no port but a hyphenated prefix it didn't work. The callback never returned. I did add an alert that tells me when the call is being made and to what domain. I also added one to the callback so that I know when it does get called.

That would suggest the issue is with hyphenated prefixes for domains. Is that true? Can anyone else reproduce this issue? I'll keep playing with it if I can confirm any further what will work.

Cheers,
Marty
Reply With Quote
  #5 (permalink)  
Old 03-22-2006, 01:45 PM
Zimbra Employee
 
Join Date: Aug 2005
Location: San Mateo, CA
ZCS Version: Zimbra.latest ;)
Posts: 4,782
KevinH is on a distinguished road
Default

The hyphen might get you. What is you use XXX.com so just the parent domain and skip the prefix? We should then allow any prefix.
__________________
Subscribe to our Blog - Bugzilla - Wiki - Downloads
Reply With Quote
  #6 (permalink)  
Old 03-22-2006, 02:23 PM
Member
 
Join Date: Mar 2006
Posts: 21
mghaught is on a distinguished road
Default

Well, I did get a hyphenated domain prefix to work. But as it turns out the server where our demo version is installed has a screwed up internal dns. So the IP was resolving to some weird IP address. Since I work in a different location, I don't see the same issues on my local workstation. Now I feel silly.

I still don't know if the port will be respected in the url yet but until I get the dns fixed, I guess I can't really test it.

Cheers,
Marty
Reply With Quote
  #7 (permalink)  
Old 03-22-2006, 03:10 PM
Member
 
Join Date: Mar 2006
Posts: 21
mghaught is on a distinguished road
Default

OKay, all is well. With the DNS fixed and a Zimbra bounced it's working. Thanks for confirming that I'm not insane.

Cheers,
Marty
Reply With Quote
  #8 (permalink)  
Old 03-22-2006, 03:18 PM
Zimbra Employee
 
Join Date: Aug 2005
Location: San Mateo, CA
ZCS Version: Zimbra.latest ;)
Posts: 4,782
KevinH is on a distinguished road
Default

Great. Glad to know it's working.
__________________
Subscribe to our Blog - Bugzilla - Wiki - Downloads
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.zimbra.com/forums/zimlets/2234-ajxrpc-ports.html
Posted By For Type Date
Zimlets [Archive] - Zimbra - Forums This thread Refback 06-28-2007 10:22 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.1.0