Skip to content
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

SMB sync client local rename redownloads after second sync #23373

Closed
PVince81 opened this issue Mar 17, 2016 · 10 comments
Closed

SMB sync client local rename redownloads after second sync #23373

PVince81 opened this issue Mar 17, 2016 · 10 comments

Comments

@PVince81
Copy link
Contributor

Steps

  1. Setup a SMB mount as "/smb"
  2. Setup desktop client
  3. Let it sync
  4. Create a local folder "/smb/test" and put a few files inside
  5. Let it sync
  6. Locally, rename "/smb/test2"
  7. Let it sync
  8. Wait, let it sync again (second pass)

Expected result

Second pass doesn't do anything

Actual result

Second pass redownloads the contents of "test2", you can see the notification

Note: I also set a favorite flag on one of the files inside and it was kept on rename, so there is no file id change. Probably something wrong with etags/mtimes/update detection.

Versions

ownCloud 8.2.3
Also observed with the new SMB lib on this PR #23363

@icewind1991

@PVince81 PVince81 added this to the 9.0.2-next-maintenance milestone Mar 17, 2016
@PVince81
Copy link
Contributor Author

Samba server: samba-4.3.5-2.1.x86_64
All running on the same openSUSE Tumbleweed machine

@PVince81
Copy link
Contributor Author

Possibly related bug but with worse outcome: #23376

@PVince81
Copy link
Contributor Author

CC @MorrisJobke in case this popped up in other cases

@PVince81
Copy link
Contributor Author

Only happens in 8.2.3.
The 9.0.0 version works properly.
Adjusting milestone.

Forgot to mention that this is with owncloud-client-2.1.1-1.1.x86_64

@PVince81 PVince81 modified the milestones: 8.2.5-next-maintenance, 9.0.2-next-maintenance Mar 18, 2016
@PVince81
Copy link
Contributor Author

I tried on 9.0.0 to use the "apps/files_external/lib/smb.php" from v8.2.3 due to minor changes, but it still works fine. So I suspect this has something to do with the library.

Let me try if it still happens after the lib update: #23363

@PVince81
Copy link
Contributor Author

On stable8.2 even with the library update from #23363, the problem still exists.

This means that the problem is not with files_external's SMB or Icewind/SMB but rather with etag handling. Note that etag propagation has been reworked in 9.0.0 so it is likely that it got fixed that way.

@PVince81
Copy link
Contributor Author

I tried the same scenario in v8.2.3 with SFTP and there is no redownload.

So it looks like OC <= 8.2.3 requires the storage to do something for rename/etag to work properly. SFTP does it right but SMB does it wrong.

@PVince81
Copy link
Contributor Author

I also tried WND on stable8.2, and the redownload doesn't happen. So this means WND is doing propertly something that SMB doesn't...

@MorrisJobke MorrisJobke modified the milestones: 8.2.5, 8.2.6-current-maintenance May 17, 2016
@PVince81 PVince81 modified the milestones: 8.2.7-next-maintenance, 8.2.6-current-maintenance Jun 2, 2016
@PVince81
Copy link
Contributor Author

As this works fine in OC >= 9.0, closing.

@lock
Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants