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

Crash when moving file within shared folder #7967

Closed
m0ritz3 opened this issue Jul 16, 2020 · 10 comments
Closed

Crash when moving file within shared folder #7967

m0ritz3 opened this issue Jul 16, 2020 · 10 comments

Comments

@m0ritz3
Copy link

m0ritz3 commented Jul 16, 2020

Expected behaviour

I move a file with a shared folder and the shared folder is updated.

Actual behaviour

The file is moved. Owncloud shows the error symbol with a message "MOVE: file move_location/file

Steps to reproduce

  1. Move file within shared folder.

ownCloud version 2.6.3 (build 2668)
Git revision f28dd97
Using Qt 5.12.7, built against Qt 5.12.7
Using 'OpenSSL 1.1.1 11 Sep 2018'

Operating system: Ubuntu 18.04.0 LTS

OS language: English

Terminal output on crash:

07-16 16:35:31:557 [ fatal default ]: ENFORCE: "instruction == CSYNC_INSTRUCTION_REMOVE || ((*it)->_type == ItemTypeVirtualFile && instruction == CSYNC_INSTRUCTION_NEW) || ((*it)->_isRestoration && instruction == CSYNC_INSTRUCTION_NEW)" in file /usr/src/packages/BUILD/src/libsync/discoveryphase.cpp, line 175

For additional information please tell me how I can provide them.

@michaelstingl
Copy link
Contributor

@m0ritz3 could you post the ID from the crash report window?

@m0ritz3
Copy link
Author

m0ritz3 commented Jul 17, 2020

@michaelstingl There was no crash report window after restarting owncloud. Or do I have to eplicitly report the crash? If yes, how can I do that?

I'm quite sure that I anonymized all sensible information, so here's my log.

@TheOneRing
Copy link
Member

07-17 13:27:34:051 [ fatal default ]: ENFORCE: "instruction == CSYNC_INSTRUCTION_REMOVE || ((*it)->_type == ItemTypeVirtualFile && instruction == CSYNC_INSTRUCTION_NEW) || ((*it)->_isRestoration && instruction == CSYNC_INSTRUCTION_NEW)" in file /usr/src/packages/BUILD/src/libsync/discoveryphase.cpp, line 175
I hate that crash

@TheOneRing
Copy link
Member

Hi are you able to reproduce the bug?
As the crash is bugging me, and the enforce is quite complex I added an extra level of verbosity. b8a4d0c
So from tomorrow on the client should tell me more on what is happening here.
If you are not able to reproduce that one, I wish you the best of luck that it won't happen again to you 🙈

@TheOneRing
Copy link
Member

Should be fixed

@m0ritz3
Copy link
Author

m0ritz3 commented Sep 17, 2020

Sorry, for my late answer.

I could not reproduce that bug anymore, but the permissions in the shared folder have changed in the mean time. When the bug occured, I was not allowed to delete files in the folder. Now I am allowed to do that. This could also be the reason, that the bug did not occur anymore. Thanks for your commitment @TheOneRing .

@TheOneRing
Copy link
Member

Yes the issue occurred in that scenario, to my knowledge only with newly added files or files that where moved multiple times.
That issue should be fixed now.

@jnweiger
Copy link
Contributor

jnweiger commented Oct 19, 2020

Retested with testpilotcloud 2.7.0daily20201019 (build 2311)

Client downloads files from a folder Photos which was shared readonly with the user.
User renames a file locally using e.g. mv Lake-Constance.jpg xxx.jpg

The sync client recreates the original file Lake-Constance.jpg and complains
Photos/xxx.jpg, testpilotcloud4,Not allowed because you don't have permission to add files in that folder

Reasonable behaviour, no crashes. OK

@jnweiger
Copy link
Contributor

Also confirmed fixed in 2.9.0-beta3

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

No branches or pull requests

4 participants