Skip to content

Syncing from upstream OCA/storage (17.0)#370

Merged
bt-admin merged 61 commits into
brain-tec:17.0from
OCA:17.0
Jun 16, 2026
Merged

Syncing from upstream OCA/storage (17.0)#370
bt-admin merged 61 commits into
brain-tec:17.0from
OCA:17.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

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.
sebastienbeau and others added 27 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.
Signed-off-by lmignon
@bt-admin bt-admin added the 17.0 label Jun 16, 2026
@bt-admin bt-admin merged commit dc27325 into brain-tec:17.0 Jun 16, 2026
4 checks passed
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.36364% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.00%. Comparing base (de99c35) to head (513e440).
⚠️ Report is 109 commits behind head on 17.0.

Files with missing lines Patch % Lines
storage_backend_sftp/components/sftp_adapter.py 71.76% 21 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             17.0     #370      +/-   ##
==========================================
- Coverage   90.11%   90.00%   -0.12%     
==========================================
  Files         104      111       +7     
  Lines        3815     3991     +176     
  Branches      358      363       +5     
==========================================
+ Hits         3438     3592     +154     
- Misses        263      284      +21     
- Partials      114      115       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.