Remove contact store functionality
Class loading of PGP functionality has never worked out of the box, from which we can conclude that this feature is unused in the wild. PGP functionality has never been located in bcprov-*.jar, at least as long as the original library download configuration has existed.3bccd773points to bcprov-jdk16-144.jar, which does not contain PGP classes: $ curl -sOL http://www.bouncycastle.org/download/bcprov-jdk16-144.jar && jar tf bcprov-jdk16-144.jar | grep -i pgp org/bouncycastle/crypto/modes/OpenPGPCFBBlockCipher.class org/bouncycastle/crypto/modes/PGPCFBBlockCipher.class Even before that commit, in44671f5c, we were checking for the presence of PGPPublicKey.class in the havePGP() helper method. This functionality at one point was used by Google to implement CLA checking, but that used a different build system and so did not see the breakage caused by incorrect library download configuration. These days, Google does not even use the same contact store mechanism for googlesource.com; CLAs are managed using a different system. Also delete UI associated with storing contact information. Although it was possible to configure a CLA to prompt the user for contact information, looking at the logic in AccountSecurityImpl, this info was dropped on the floor unless a ContactStore was configured. As we know, this was never the case, so claiming to store encrypted contact information in the UI was basically a lie. Similarly, the contactFiledOn field in Account was only set in the same ContactStore-enabled codepath, so we can kill that as well. Change-Id: I497cd374566c7d56262dafeeb96e4612fee54e8f
This commit is contained in:
@@ -44,22 +44,6 @@ public class AccountInfo extends JavaScriptObject {
|
||||
private final native Timestamp _getRegisteredOn() /*-{ return this._cts; }-*/;
|
||||
private final native void _setRegisteredOn(Timestamp ts) /*-{ this._cts = ts; }-*/;
|
||||
|
||||
public final Timestamp contactFiledOn() {
|
||||
if (contactFiledOnRaw() != null) {
|
||||
Timestamp ts = _getContactFiledOn();
|
||||
if (ts == null) {
|
||||
ts = JavaSqlTimestamp_JsonSerializer.parseTimestamp(contactFiledOnRaw());
|
||||
_setContactFiledOn(ts);
|
||||
}
|
||||
return ts;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final native String contactFiledOnRaw() /*-{ return this.contact_filed_on; }-*/;
|
||||
private final native Timestamp _getContactFiledOn() /*-{ return this._cts; }-*/;
|
||||
private final native void _setContactFiledOn(Timestamp ts) /*-{ this._cts = ts; }-*/;
|
||||
|
||||
/**
|
||||
* @return true if the server supplied avatar information about this account.
|
||||
* The information may be an empty list, indicating no avatars are
|
||||
|
||||
@@ -25,7 +25,6 @@ import java.util.Map;
|
||||
public class ServerInfo extends JavaScriptObject {
|
||||
public final native AuthInfo auth() /*-{ return this.auth; }-*/;
|
||||
public final native ChangeConfigInfo change() /*-{ return this.change; }-*/;
|
||||
public final native ContactStoreInfo contactStore() /*-{ return this.contact_store; }-*/;
|
||||
public final native DownloadInfo download() /*-{ return this.download; }-*/;
|
||||
public final native GerritInfo gerrit() /*-{ return this.gerrit; }-*/;
|
||||
public final native GitwebInfo gitweb() /*-{ return this.gitweb; }-*/;
|
||||
@@ -47,10 +46,6 @@ public class ServerInfo extends JavaScriptObject {
|
||||
private final native NativeMap<NativeString> _urlAliases() /*-{ return this.url_aliases; }-*/;
|
||||
|
||||
|
||||
public final boolean hasContactStore() {
|
||||
return contactStore() != null;
|
||||
}
|
||||
|
||||
public final boolean hasSshd() {
|
||||
return sshd() != null;
|
||||
}
|
||||
@@ -71,13 +66,6 @@ public class ServerInfo extends JavaScriptObject {
|
||||
}
|
||||
}
|
||||
|
||||
public static class ContactStoreInfo extends JavaScriptObject {
|
||||
public final native String url() /*-{ return this.url; }-*/;
|
||||
|
||||
protected ContactStoreInfo() {
|
||||
}
|
||||
}
|
||||
|
||||
public static class PluginConfigInfo extends JavaScriptObject {
|
||||
public final native boolean hasAvatars() /*-{ return this.has_avatars || false; }-*/;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user