Skip to content

[17.0] [MIG] storage_backend_sftp#634

Merged
OCA-git-bot merged 58 commits into
OCA:17.0from
BinhexTeam:17.0-mig-storage_backend_sftp
Jun 15, 2026
Merged

[17.0] [MIG] storage_backend_sftp#634
OCA-git-bot merged 58 commits into
OCA:17.0from
BinhexTeam:17.0-mig-storage_backend_sftp

Conversation

@rrebollo

Copy link
Copy Markdown

We've been using #502 in production, but it never got merged. Let's try again.

#300

@BinhexTeam T22451

sebastienbeau and others added 30 commits June 13, 2026 11:11
…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-ci and others added 11 commits June 13, 2026 11:11
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.

@arielbarreiros96 arielbarreiros96 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The migration itself looks pretty straightforward, LGTM. The pre-commit is failing because of dependencies, once that is fixed i think it should be good to go 👌🏻

@rrebollo rrebollo force-pushed the 17.0-mig-storage_backend_sftp branch from 4f61827 to 304eaaf Compare June 14, 2026 22:30
@lmignon

lmignon commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

/ocabot mege nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @lmignon. Your command failed:

Invalid command: mege.

Ocabot commands

  • ocabot merge major|minor|patch|nobump
  • ocabot rebase
  • ocabot migration {MODULE_NAME}

More information

@rrebollo

Copy link
Copy Markdown
Author

@lmignon I think you mean "merge"

@lmignon

lmignon commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-634-by-lmignon-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit da98b6c into OCA:17.0 Jun 15, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 513e440. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.