I'm having some problems using the proxy servlet.
I added the config_template.xml to my test zimlet, re-deployed it, and but got a 403 forbidden error. I also tried using zmzimletctl configure config_template.xml, thinking the deploy may not have refreshed the allowed domains from the zip file, but no luck either.
Is there someplace I can view the allowed domains? per zimlet?
Thanks,
Edwardo
Zimlets
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
Zimlets
You can see them in ldap(zmprov to get the COS info). You need to also restart tomcat when you change XML properties as we cache the LDAP info.
Zimlets
Thanks. I do see the target domain I added when using "zmprov gc ".
Oddly though, this morning the proxy does work for me. I didn't do a restart, at least not this time (I had restarted Zimbra previously but still had problems). The only thing that was different was I had to log back in (no authentication token error returned by the Proxy).
If I can reproduce it, I'll let you know.
Oddly though, this morning the proxy does work for me. I didn't do a restart, at least not this time (I had restarted Zimbra previously but still had problems). The only thing that was different was I had to log back in (no authentication token error returned by the Proxy).
If I can reproduce it, I'll let you know.
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
Zimlets
*this morning*.... The cache is short lived like on the order of 20min. So overnight it refreshed itself. The restart forces this so it's instant.
Zimlets
Still having a few issues.
After deploying my updated zimlet with the allowedDomain, it eventually showed up in zmprov.
$ zmzimletctl deploy com_zimbra_url2.zip
$ tomcat restart
$ zmprov gc default
...
zimbraProxyAllowedDomains: *.news.com
...
But I'm still getting a 403 error for the new domain.
firefox: /service/proxy?target=http://www.news.com
After">http:///service/proxy?target=http://www.news.com
After more testing, here's an exception that may be related. I tried disabling a bundled zimlet and got:
$ zmzimletctl disable com_zimbra_url.zip
[] INFO: Disabling Zimlet com_zimbra_url.zip
Error: Cannot enable Zimlet com_zimbra_url.zip: [LDAP: error code 32 - No Such Object]
The same happens for enabling.
Does this indicate a problem with the LDAP component?
After deploying my updated zimlet with the allowedDomain, it eventually showed up in zmprov.
$ zmzimletctl deploy com_zimbra_url2.zip
$ tomcat restart
$ zmprov gc default
...
zimbraProxyAllowedDomains: *.news.com
...
But I'm still getting a 403 error for the new domain.
firefox: /service/proxy?target=http://www.news.com
After">http:///service/proxy?target=http://www.news.com
After more testing, here's an exception that may be related. I tried disabling a bundled zimlet and got:
$ zmzimletctl disable com_zimbra_url.zip
[] INFO: Disabling Zimlet com_zimbra_url.zip
Error: Cannot enable Zimlet com_zimbra_url.zip: [LDAP: error code 32 - No Such Object]
The same happens for enabling.
Does this indicate a problem with the LDAP component?