Autocomplete behaviour change between 9.0 and 10.1

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
ghen
Outstanding Member
Outstanding Member
Posts: 413
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium

Re: Autocomplete behaviour change between 9.0 and 10.1

Post by ghen »

Thanks. I'm building only the affected class files (with -classpath referencing an existing Zimbra installation), which is probably much quicker. As we're on NE, we can't rebuild everything from (unavailable) source anyway.

Roughly like this:

Code: Select all

Rebuild specific class files from a zm-mailbox checkout:

git clone https://github.com/Zimbra/zm-mailbox.git
cd zm-mailbox
git checkout 10.1.14
# patch the java sources per your needs

# compile updated java file(s) only, referencing Zimbra classpath:
mkdir -p /tmp/build
/opt/zimbra/common/bin/javac --release 8 -g -classpath $(find /opt/zimbra/lib/jars/ -name \*.jar | paste -sd:) -d /tmp/build store/src/java/com/zimbra/cs/mailbox/{Mailbox,MailItem}.java

# update (a copy of) zimbrastore.jar with the resulting class files:
cp /opt/zimbra/lib/jars/zimbrastore.jar /tmp/build/
cd /tmp/build
jar -uvf zimbrastore.jar com/zimbra/cs/mailbox/*.class
7224jobe
Outstanding Member
Outstanding Member
Posts: 302
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 10.1.*.UBUNTU20_64 NETWORK

Re: Autocomplete behaviour change between 9.0 and 10.1

Post by 7224jobe »

andrey.ivanov wrote: Mon Jan 19, 2026 1:41 pm
7224jobe wrote: Fri Jan 16, 2026 1:45 pm Hi, since Zimbra is not fixing this issue at the moment, can anyone re-share the patched .jar made by andrey.ivanov? All download links in this thread are expired.
Thanks!
Hi,

sure, i can re-upload it (it's ths same file for 10.1.13, 10.1.14 and 10.1.15). Here you go : https://filesender.renater.fr/?s=downlo ... fc49366cd9
sha256sum of this file is b4a0ebe22479abe95d89a9cbd5c4ead0611d7f609cdb46402df2788290c5840e

You can compare my .jar with the stock /opt/zimbra/lib/jars/zimbrastore.jar by "unzipping" the archive (with "jar xf filename.jar"). The only difference should be the file ContactAutoComplete.class contained in this archive.

Regards,
AI
Thanks andrey for the file and, more generally, thanks for the solution you worked out.

I also just opened a support ticket to Zimbra...let's wait :(
7224jobe
Outstanding Member
Outstanding Member
Posts: 302
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 10.1.*.UBUNTU20_64 NETWORK

Re: Autocomplete behaviour change between 9.0 and 10.1

Post by 7224jobe »

Our ticket was assigned to ZBUG-4975, too. So no good news.

As a workaround, we changed our GAL type from Internal+External to External only, and created on AD all Zimbra distribution lists and aliases as contacts. Now autocomplete reads only from AD and no unwanted email addresses are shown. :|
Post Reply