Skip to content

Conversation

@alan196
Copy link

@alan196 alan196 commented Aug 5, 2025

This PR depends on #501

sebastienbeau and others added 30 commits August 5, 2025 07:58
…t with the specifiation of the type of file binary or base64
For the SSH key a text field is required.
The Char field elininates all newline chars
making the key invalid.
OCA-git-bot and others added 25 commits August 5, 2025 07:58
Previous code used the paramiko client open function with explicit binary mode.

But, the explicit binary mode is now ignored by python.
See the `open` function description into the paramiko documentation:
https://docs.paramiko.org/en/stable/api/sftp.html

```
The Python 'b' flag is ignored, since SSH treats all files as binary.
```

But in fact, depending of the SFTP server we have an `OSError`.

Then this PR remove the useless binary mode, and avoid to have errors.
Currently translated at 100.0% (13 of 13 strings)

Translation: storage-16.0/storage-16.0-storage_backend_sftp
Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-storage_backend_sftp/it/
There's no need to depend on the additional lib mock.
@christian-ramos-tecnativa

Can you add a temporary link to the PR #501 ? following the guide:
https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference%28s%29-to-another-pull-request%28s%29
This way the tests can be checked and the runboat will work. Thanks in advance!

@lmignon
Copy link
Contributor

lmignon commented Sep 14, 2025

/ocabot migration storage_backend_sftp

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Sep 14, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Sep 14, 2025
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.