Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 07-10-2007, 03:57 PM
Junior Member
 
Join Date: Jul 2007
Location: Harrisburg, PA
ZCS Version: Release 5.0.4_GA_2101.UBUNTU6 UBUNTU6 NETWORK edition
Posts: 6
Mercer is on a distinguished road
Default Bugzilla Zimlet Configuration Not Working

I am configuring the Bugzilla Zimlet using this process. Am I forgetting something? The configuration changes are ignored. I have already installed the zimlet using zmzimletclt install.

Code:
zimbra@server:~/conf$ zmzimletctl getConfigTemplate /opt/zimbra/zimlets-extra/com_zimbra_bugz.zip > bugz_zimlet-config.xml
I modify the file as follows:

Code:
<zimletConfig name="com_zimbra_bugz" version="1.0">

        <global>

                <property name="url">http://mybugzilla.mydomain.com/bugzilla/show_bug.cgi</property>

        <property name="allowedDomains">*.mydomain.com</property>

    </global>

</zimletConfig>
Then, I tell zimbra to use it:

Code:
zimbra@server:~/conf$ zmzimletctl configure bugz_zimlet-config.xml 
[] INFO: Installing Zimlet config for com_zimbra_bugz
But no matter how many times I restart tomcat/zimbra/the server, it always hits bugzilla.zimbra.com instead of my local bugzilla server.
Reply With Quote
  #2 (permalink)  
Old 07-10-2007, 07:50 PM
mmorse's Avatar
Zimbra Employee
 
Join Date: May 2006
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 4,625
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

-sometimes it's better to just unzip>modify>re-zip
-clean out/delete the com_zimbra_bugz folder in /opt/zimbra/tomcat/webapps/service/zimlets/
Reply With Quote
  #3 (permalink)  
Old 07-12-2007, 03:51 PM
Junior Member
 
Join Date: Jul 2007
Location: Harrisburg, PA
ZCS Version: Release 5.0.4_GA_2101.UBUNTU6 UBUNTU6 NETWORK edition
Posts: 6
Mercer is on a distinguished road
Default

I unzipped it, edited the com_zimbra_bugz.xml, then re-zipped and re-deployed it. However after doing so, it would just hang on 'fetching...' forever. Digging through the tomcat logs, I found this zimlet using the proxy service (/service/proxy), so this needed ran as well:

Code:
zmprov mc default zimbraProxyAllowedDomains "*.mydomain.com"
Now it is working perfectly.

I noticed before I changed it, that field defaulted to *.zimbra.com. Is proxying for *.zimbra.com needed for the proper functioning of Zimbra? What is the proper delimiter for adding multiple domains there?
Reply With Quote
  #4 (permalink)  
Old 07-12-2007, 10:20 PM
mmorse's Avatar
Zimbra Employee
 
Join Date: May 2006
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 4,625
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

in the zip-in the file config_template.xml it looks like:
<zimletConfig name="com_zimbra_zimletname" version="1.0">
<global>
<property name="allowedDomains">*.domain.com,*.domain2.com</property>
</global>
</zimletConfig>

*.domain.com, *.domain2.com

you can also pretty much place wild card's anywhere-like:
*.*.org , *.edu, *.net
zimbra.*.com
or just * to allow any domains/addresses

Last edited by mmorse : 09-20-2007 at 09:13 AM.
Reply With Quote
  #5 (permalink)  
Old 09-20-2007, 09:11 AM
Junior Member
 
Join Date: Jan 2007
Posts: 7
ei99045 is on a distinguished road
Default

Comma delimiter doesn't work when used with zmprov.
The default COS has multiple zimbraProxyAllowedDomains properties, not a single one comma-delimited.

AFAIK it's not possible to do the same using zmprov. How can I add another zimbraProxyAllowedDomains to an existing COS?
Reply With Quote
  #6 (permalink)  
Old 09-20-2007, 09:32 AM
mmorse's Avatar
Zimbra Employee
 
Join Date: May 2006
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 4,625
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

hm I always just assumed it worked with "domain.com, *.domain2.com"
I gather your against using *, I don't have time to test right now, but try +zimbraProxyAllowedDomains?
If you modify the .xml then redeploy (and as discussed below only probably just to the default cos) does it copy over with zmzimletctl acl cos grant?
Or if you zmzimlet configure & apply the .xml after it's deployed/enabled in the specified cos, will it grab the correct zimbraProxyAllowedDomains?

someone came across:
Quote:
Originally Posted by riogd View Post
Now the rather large problem, and what makes this seem even more like a bug, is that although the config isn't applied to
non-default COS's, re-deploying the Zimlet wipes out the zimbraProxyAllowedDomains for all non-default COS's. So each time you redeploy the Zimlet you have to go and make that manual change. This is why I was constantly getting 403's, my manual settings kept getting wiped without my knowing it.
and in another thread (same person though)
Quote:
Originally Posted by riogd View Post
I suspect I may have found the problem but I have yet to test. I must also note that I am using the AdminUI for deployment and enabling in the COS's.
Non-default COS's do not get the config_template applied to it, which seems quite possibly like a bug, more info on that here (in summary even though the allowedDomains isn't automatically applied to non-default COS's, if you add them manually they are automatically wiped while re-deploying. I suspect similar oddity is happening with properties in the config_template for non-default COS's).
If it's really failing to apply the config_template to other cos's, maybe it's time that someone makes this into a bug (I can't find one open on it-though who knows what they labeled it...)

Also, Bug 11180 - Add a pane for adding zimbraProxyAllowedDomains

I'll point josh & riogd at this thread as well

other threads:
/forums/zimlets/5433-problem-reading-config_template-xml-js.htm
/forums/zimlets/11283-proxy-service-alloweddomains.html
/forums/zimlets/5780-zimlet-403-via-proxy-help.html

Last edited by mmorse : 09-20-2007 at 11:18 AM.
Reply With Quote
  #7 (permalink)  
Old 09-20-2007, 03:30 PM
Junior Member
 
Join Date: Jan 2007
Posts: 7
ei99045 is on a distinguished road
Default

I'm in an early deployment stage so I got myself off the hook by erasing the non-default COS, "zmzimletctl configure" with the appropriate domains and then duplicating the default COS to create the non-default COS (differences are small and easy to remember).

Thanks for the pointers to the other threads and to the enhancement request (i'm voting for that one).
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Admin interface fails after install of posix/samba zimlets Franck Zimlets 5 01-11-2008 04:34 AM
Problem with antivirus, antispam, postfix, and spell check jmu1 Installation 13 07-20-2007 03:21 AM
Domain Admin Error: Permission Denied shanson Administrators 3 05-29-2007 05:48 AM
Post instsallation problems Assaf Installation 14 01-29-2007 10:38 AM
Kickstart for automated installation and disaster recovery mubley Installation 19 01-10-2006 02:45 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.1.0