Исправлены баги с рассылкой и размножением сообщений.
This commit is contained in:
2025-03-08 15:56:34 +03:00
parent e123600e06
commit f3747a359b
11 changed files with 203 additions and 152 deletions

View File

@@ -26,8 +26,7 @@ public class ArchivesBackupPass extends ConnectionPass<File> {
}
@Override
protected void ServerAction() throws Exception {
String workspace_path = Utils_.toU(Paths.get(user.connection.sftpChannel.getHome(), Global.componentsServerProperties.BackupWorkspace).toString());
RemoteFile workspace = new RemoteFile(workspace_path, true);
RemoteFile workspace = new RemoteFile(user.connection.sftpChannel.getHome(), "_sapfor_x64_backups", true);
user.connection.MKDIR(workspace);
RemoteFile dst = new RemoteFile(workspace.full_name, src.getName());
user.connection.putSingleFile(src, dst);

View File

@@ -90,7 +90,6 @@ public class PublishComponent extends ComponentsServerPass<Component> {
if (f.fields.cbForceMail.isSelected())
message.addAttachement(target.getFile());
//--
//todo потом сделать красивее. на сторону сервера это безобразие
Pass unsafeEmail = new Email(){
@Override
public String getDescription() {