Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-2006, 12:10 PM
Intermediate Member
 
Posts: 21
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, 12:20 PM
Zimbra Employee
 
Posts: 2,103
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, 01:24 PM
Intermediate Member
 
Posts: 21
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, 02:21 PM
Intermediate Member
 
Posts: 21
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, 02:45 PM
Zimbra Employee
 
Posts: 4,792
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.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #6 (permalink)  
Old 03-22-2006, 03:23 PM
Intermediate Member
 
Posts: 21
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, 04:10 PM
Intermediate Member
 
Posts: 21
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, 04:18 PM
Zimbra Employee
 
Posts: 4,792
Default

Great. Glad to know it's working.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.