Skip to content

setKeystoreFile for a resource file in class path #78

Description

@maruixiang

org.apache.ftpserver.ssl.SslConfigurationFactory#loadStore support file or resource.

but org.apache.ftpserver.ssl.SslConfigurationFactory#setKeystoreFile only support file , it will check file length:

public void setKeystoreFile(File keyStoreFile) {
       if (keyStoreFile != null && keyStoreFile.length() != 0L) {
           this.keystoreFile = keyStoreFile;
       } else {
           throw new FtpServerConfigurationException("KeystoreFile must not be null or zero length");
       }
   }

resolve this is to remove the check :

 public void setKeystoreFile(File keyStoreFile) {
        
            this.keystoreFile = keyStoreFile;
      
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions