Skip to content

[Bug]: FTP with SSL/TLS password overwrites when using multiple servers #2272

@Krullet

Description

@Krullet

Operating system

Ubuntu 22 & Windows 10

Publii version

0.46.5, but I've been able to reproduce the issue with earlier versions as well for many years.

Post editor

None

Bug description

I have around 10 different websites in My Publii instance. Those are deployed to multiple different servers, using Publii's FTP with SSL/TLS feature. Some websites are hosted on the same server, but under different remote paths.

Problem: Only the most recent used server will have a correct password when it is stored in the "server settings" page of Publii. When I use multiple servers and update the password on one server, older server connections will no longer connect.

Steps to reproduce

Steps to reproduce:

  1. Create a website (site A) in Publii and configure it to deploy at Host A, using FTP with SSL/TLS. Let Publii save the password and deploy the site.
  2. Create a second website (Site B) in Publii and configure it to deploy at Host B, using FTP with SSL/TLS. Let Publii save the password and deploy the site.
  3. Go back to site A and try to deploy

Expected result:
Site should deploy with the saved password

Actual result:
Site will not deploy and error is given:

  • An error occurred while connecting to the server: "Login Authentication failed"

If one does update the password of Host A, then then you will instead get the error with Host B.

So to summarize, one will always need to put the password in when using multiple hosts. When multiple sites use the same server, it works just fine. But when different servers are used, then the "Login Authentication failed" issue occurs.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions