Skip to content

Commit

Permalink
[bug] For bug 49716
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Apr 27, 2021
1 parent 9cb1188 commit 98ae4f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Common/sources/commondefines.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function InputCommand(data, copyExplicit) {
this['inline'] = data['inline'];
this['password'] = data['password'];
this['savepassword'] = data['savepassword'];
this['withoutPassword'] = data['withoutPassword'];
this['outputurls'] = data['outputurls'];
this['closeonerror'] = data['closeonerror'];
this['serverVersion'] = data['serverVersion'];
Expand Down Expand Up @@ -143,6 +144,7 @@ function InputCommand(data, copyExplicit) {
this['inline'] = undefined;//content disposition
this['password'] = undefined;
this['savepassword'] = undefined;
this['withoutPassword'] = undefined;
this['outputurls'] = undefined;
this['closeonerror'] = undefined;
this['serverVersion'] = undefined;
Expand Down Expand Up @@ -377,6 +379,12 @@ InputCommand.prototype = {
setSavePassword: function(data) {
this['savepassword'] = data;
},
getWithoutPassword: function() {
return this['withoutPassword'];
},
setWithoutPassword: function(data) {
this['withoutPassword'] = data;
},
setOutputUrls: function(data) {
this['outputurls'] = data;
},
Expand Down
2 changes: 1 addition & 1 deletion DocService/sources/canvasservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ exports.downloadAs = function(req, res) {
}
var selectRes = yield taskResult.select(docId);
var row = selectRes.length > 0 ? selectRes[0] : null;
if (row && row.password) {
if (row && row.password && !cmd.getWithoutPassword()) {
cmd.setSavePassword(row.password);
}
cmd.setData(req.body);
Expand Down

0 comments on commit 98ae4f7

Please sign in to comment.