-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't believe sftp when it tells us the mtime is less than we know it is #40105
Open
icewind1991
wants to merge
1
commit into
master
Choose a base branch
from
sftp-known-mtime
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+22
−3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -413,14 +427,13 @@ | |||
return false; | |||
} | |||
if (!$this->file_exists($path)) { | |||
$this->getConnection()->put($this->absPath($path), ''); | |||
return $this->getConnection()->put($this->absPath($path), ''); |
Check notice
Code scanning / Psalm
InternalMethod
The method phpseclib\Net\SFTP::put is internal to phpseclib but called from OCA\Files_External\Lib\Storage\SFTP::touch
icewind1991
force-pushed
the
sftp-known-mtime
branch
from
August 30, 2023 17:42
81cc406
to
4d6d716
Compare
use phpseclib\Net\SFTP\Stream; | ||
|
||
/** | ||
* Uses phpseclib's Net\SFTP class and the Net\SFTP\Stream stream wrapper to | ||
* provide access to SFTP servers. | ||
*/ | ||
class SFTP extends \OC\Files\Storage\Common { | ||
class SFTP extends \OC\Files\Storage\Common { |
Check notice
Code scanning / Psalm
DeprecatedInterface
OCP\Files\Storage is marked deprecated
icewind1991
force-pushed
the
sftp-known-mtime
branch
from
August 31, 2023 12:02
4d6d716
to
847f6f5
Compare
This was referenced Mar 12, 2024
Merged
Merged
Merged
Merged
icewind1991
force-pushed
the
sftp-known-mtime
branch
2 times, most recently
from
December 6, 2024 17:51
c6c07c0
to
cdc4fa4
Compare
icewind1991
force-pushed
the
sftp-known-mtime
branch
from
December 12, 2024 17:40
cdc4fa4
to
b8019e6
Compare
…ow it is Signed-off-by: Robin Appelman <robin@icewind.nl>
icewind1991
force-pushed
the
sftp-known-mtime
branch
from
December 16, 2024 14:09
b8019e6
to
7aeabc9
Compare
icewind1991
requested review from
a team,
ArtificialOwl,
nfebe and
come-nc
and removed request for
a team
December 20, 2024 17:53
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
work around misbehaving sftp servers by keeping track of when we modify things