Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3363662
D11631.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11631.diff
View Options
diff --git a/lib/reducers/keyserver-reducer.js b/lib/reducers/keyserver-reducer.js
--- a/lib/reducers/keyserver-reducer.js
+++ b/lib/reducers/keyserver-reducer.js
@@ -163,6 +163,15 @@
},
};
}
+ if (action.payload.error === 'client_version_unsupported') {
+ newKeyserverInfo = {
+ ...newKeyserverInfo,
+ connection: {
+ ...newKeyserverInfo.connection,
+ connectionIssue: 'client_version_unsupported',
+ },
+ };
+ }
const operations: ReplaceKeyserverOperation[] = [];
if (newKeyserverInfo !== state.keyserverInfos[keyserverID]) {
diff --git a/lib/socket/socket.react.js b/lib/socket/socket.react.js
--- a/lib/socket/socket.react.js
+++ b/lib/socket/socket.react.js
@@ -479,14 +479,30 @@
});
}
} else if (message.type === serverSocketMessageTypes.AUTH_ERROR) {
- this.props.dispatch({
- type: setActiveSessionRecoveryActionType,
- payload: {
- activeSessionRecovery:
- recoveryActionSources.socketAuthErrorResolutionAttempt,
- keyserverID: this.props.keyserverID,
- },
- });
+ if (message.message === 'client_version_unsupported') {
+ this.props.dispatch({
+ type: setNewSessionActionType,
+ payload: {
+ sessionChange: {
+ ...message.sessionChange,
+ cookieInvalidated: true,
+ },
+ preRequestUserState: this.initializedWithUserState,
+ error: message.message,
+ authActionSource: undefined,
+ keyserverID: this.props.keyserverID,
+ },
+ });
+ } else {
+ this.props.dispatch({
+ type: setActiveSessionRecoveryActionType,
+ payload: {
+ activeSessionRecovery:
+ recoveryActionSources.socketAuthErrorResolutionAttempt,
+ keyserverID: this.props.keyserverID,
+ },
+ });
+ }
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 2:54 AM (19 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2582191
Default Alt Text
D11631.diff (1 KB)
Attached To
Mode
D11631: [lib] Stop attempting recovery when client version unsupported
Attached
Detach File
Event Timeline
Log In to Comment