Skip to content

Commit

Permalink
Cherry-pick #823 (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Dec 16, 2022
1 parent 23cd0d9 commit f7e5fa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private LabelsPath uploadLabelProviderToConfiguration(MultipartFormDataInput dat
customLabelsPath = this.webPathUtil.getCustomLabelsPath(projectId.toString());
}

File file = this.fileUploadService.uploadFile(data, customLabelsPath, fileName, true);
File file = this.fileUploadService.uploadFile(data, customLabelsPath, fileName, false);

ScopeType scopeType = configuration.isGlobal() ? ScopeType.GLOBAL : ScopeType.PROJECT;
LabelsPath labelsPathEntity = new LabelsPath(file.getPath(), PathType.USER_PROVIDED, scopeType, RegistrationType.UPLOADED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private RulesPath uploadRuleProviderToConfiguration(MultipartFormDataInput data
customRulesPath = this.webPathUtil.getCustomRulesPath(projectId.toString());
}

File file = this.fileUploadService.uploadFile(data, customRulesPath, fileName, true);
File file = this.fileUploadService.uploadFile(data, customRulesPath, fileName, false);

ScopeType scopeType = configuration.isGlobal() ? ScopeType.GLOBAL : ScopeType.PROJECT;
RulesPath rulesPathEntity = new RulesPath(file.getPath(), PathType.USER_PROVIDED, scopeType, RegistrationType.UPLOADED);
Expand Down

0 comments on commit f7e5fa0

Please sign in to comment.