https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35761

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #15 from David Nind <[email protected]> ---
I had a go at testing, and have a couple of questions - these are probably more
related to the SFTP server I tested with, and how it is configured:

1. I can connect to the SFTP server (see testing notes), but I can't write to
or delete a file in the root directory:

  Testing we can write a test file... Failed
  Error message: Couldn't open remote file '.koha_test_file': Permission denied

  Testing we can delete test file... Failed
  Error message: Couldn't delete remote file: No such file

2. In this case, the root folder for the SFTP user is not writeable. However,
the upload directory is (/upload). I think this is by design in this case with
the atmoz/sftp Docker image.

3. However, if a SFTP server only allows uploads to a specific directory (such
as uploads), should this be configurable?

4. When I refresh the FTP/SFTP servers listing page, there is a browser console
error - this is probably related to 1 and 2 above:

  GET http://127.0.0.1:8081/api/v1/sftp_server//test_connection 404 (Not Found)

5. Should reloading or accessing the page actually try to connect, or should
this be user initiated with the test action?


Testing notes (using KTD):

1. Add these commands to docker-compose-light.yml (before the networks
section):

    sftp:
        image: atmoz/sftp
        command: koha:koha:::upload
        networks:
            - kohanet

2. Do a ktd pull and ktd up.

3. Identify the IP address of the SFTP server (kohadev-sftp-1):

   docker inspect -f '{{printf "====================\n"}}{{.Name}} {{range
$net,$v := .NetworkSettings.Networks}}{{printf "\n"}}{{printf "\n"}}{{printf
"%s\n" $net}}{{.IPAddress}}{{printf "\n"}}{{end}}' $(docker ps -q)

4. Check that you can connect to the server locally (not from the ktd shell,
use koha as the password and the IP address for kohadev-sftp-1), for example:
sftp [email protected] 

5. Check that you can connect to the server from within your ktd shell: sftp
koha@sftp

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to