Skip to content

Commit

Permalink
[bug] Use deterministic(not random) lockId to fix issues with forgott…
Browse files Browse the repository at this point in the history
…en openings due to integrator failures; For bug 68424
  • Loading branch information
konovalovsergey committed Jun 10, 2024
1 parent d644a44 commit 96a5d76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DocService/sources/wopiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ function getEditorHtml(req, res) {
if (!shutdownFlag) {
//save common info
if (undefined === lockId) {
lockId = crypto.randomBytes(16).toString('base64');
//Use deterministic(not random) lockId to fix issues with forgotten openings due to integrator failures
lockId = docId;
let commonInfo = JSON.stringify({lockId: lockId, fileInfo: fileInfo});
yield canvasService.commandOpenStartPromise(ctx, docId, utils.getBaseUrlByRequest(ctx, req), commonInfo, fileType);
}
Expand Down

0 comments on commit 96a5d76

Please sign in to comment.