Merge branch 'soon' into degraded

pull/1/head
yflory 4 years ago
commit 0aff693e7e

@ -1,3 +1,15 @@
# 4.2.1
This minor release addresses a few bugs discovered after deploying 4.2.0:
* The 4.2.0 release included major improvements to the sheet application. This introduced breaking changes to the "lock" system in the application. Existing spreadsheets (before 4.2.0) that were closed by a user without "unlocking" all cells first became impossible to open after the 4.2.0 changes. This has been fixed.
* Team owners can now properly upload a team avatar.
* We've improved the file upload script to better recognize markdown files.
* We've fixed a few issues resulting in an error screen:
* New users were unable to create a drive without registering first.
* Snapshots in the sheet application couldn't be loaded.
* Loading an existing drive as an unregistered user could fail.
# 4.2.0 (C)
## Goals

@ -62,7 +62,7 @@ define([
var imprintUrl = AppConfig.imprint && (typeof(AppConfig.imprint) === "boolean" ?
'/imprint.html' : AppConfig.imprint);
Pages.versionString = "v4.2.0";
Pages.versionString = "v4.2.1";
// used for the about menu
Pages.imprintLink = AppConfig.imprint ? footLink(imprintUrl, 'imprint') : undefined;

@ -2636,7 +2636,7 @@ define([
loadUniversal(Messenger, 'messenger', waitFor);
store.messenger = store.modules['messenger'];
loadUniversal(Profile, 'profile', waitFor);
store.modules['team'].onReady(waitFor);
if (store.modules['team']) { store.modules['team'].onReady(waitFor); }
loadUniversal(History, 'history', waitFor);
}).nThen(function () {
var requestLogin = function () {

@ -1046,6 +1046,7 @@ define([
if (!team) { return void cb ({error: 'ENOENT'}); }
if (team.offline) { return void cb({error: 'OFFLINE'}); }
if (!team.roster) { return void cb({error: 'NO_ROSTER'}); }
if (data.metadata) { delete data.metadata.offline; }
team.roster.metadata(data.metadata, function (err) {
if (err) { return void cb({error: err}); }
var localTeam = ctx.store.proxy.teams[teamId];

@ -428,6 +428,11 @@ define([
if (handleFileState.inProgress) { return void handleFileState.queue.push([file, e, defaultOptions]); }
handleFileState.inProgress = true;
var type = file.type;
if (!file.type && /\.md$/.test(file.name)) {
type = "text/markdown";
}
var thumb;
var file_arraybuffer;
var name = file.name;
@ -438,7 +443,7 @@ define([
if (!abort) {
var metadata = {
name: name,
type: file.type,
type: type,
};
if (thumb) { metadata.thumbnail = thumb; }
queue.push({

@ -1741,7 +1741,7 @@ define([
var cpNfCfg = {
sframeChan: sframeChan,
channel: secret.channel,
versionHash: parsed.hashData && parsed.hashData.versionHash,
versionHash: cfg.type !== 'oo' && parsed.hashData && parsed.hashData.versionHash,
padRpc: Cryptpad.padRpc,
validateKey: secret.keys.validateKey || undefined,
isNewHash: isNewHash,

Loading…
Cancel
Save