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 on sync .ini files (virtual file system) #8298

Closed
efrenbg1 opened this issue Dec 12, 2020 · 5 comments
Closed

Crash on sync .ini files (virtual file system) #8298

efrenbg1 opened this issue Dec 12, 2020 · 5 comments

Comments

@efrenbg1
Copy link

Constant crash on new client 2.7.3 with virtual file system (.ini files causing crash?).

Expected behaviour

Client should sync all files.

Actual behaviour

When syncing client stops working and crashes. Last file synced is .ini and removing it makes it possible to advance the sync process until another .ini files is synced. Both x86 and x86_64 clients crash.

Steps to reproduce

  1. Place .ini file in owncloud server
  2. Sync client with virtual file system
  3. Wait until client crash

Server configuration

Operating system: debian 10 (Linux 4.19.0 - amd64)

Web server: nginx/1.14.2

Database: 10.3.25-MariaDB

PHP version: 7.2.34

ownCloud version: 10.5.0

Storage backend (external storage): none

Client configuration

Client version: 2.7.3

Operating system: Windows 10 Pro 20H2

OS language: Spanish

Qt version used by client package (Linux only, see also Settings dialog): none

Client package (From ownCloud or distro) (Linux only): none

Installation path of client: C:\Program Files (x86)\ownCloud

Logs

  1. Client logfile:
    12-12 11:08:36:078 [ debug sync.networkjob ] [ OCC::AbstractNetworkJob::slotFinished ]: Network job OCC::GETFileJob finished for "/10_TRABAJOS/00_ARCHIVAR/1000. TCSD - {sensible data ommited}/Documentación técnica/190906_DOC PARA 5.1, 5.2/5.2.3_Documentación técnica/desktop.ini"
    12-12 11:08:36:079 [ debug sync.networkjob.get ] [ OCC::GETFileJob::slotReadyRead ]: Actually finished!

  2. Web server error log: none

  3. Server logfile: ownCloud log (data/owncloud.log): none

@jnweiger
Copy link
Contributor

jnweiger commented Dec 12, 2020

The name desktop.ini is hardcoded as an excluded file: https://github.com/owncloud/client/blob/master/src/csync/csync_exclude.cpp#L203
when it sits in the top folder. In subfolders it syncs just fine for me. Is the exact contents of you desktop.ini file critical to reproduce the crash?

@jnweiger
Copy link
Contributor

When /Photos/desktop.ini was already synced, and I add Photos/Desktop.ini on the server, we get an error (maybe unrelated to your crash):

12.12.2020 04:06:09, Photos/Desktop.ini, ownCloud2,CfCreatePlaceholders error WindowsError: ffffffff80070780: Das System kann auf die Datei nicht zugreifen. : WindowsError: ffffffff80070780: Das System kann auf die Datei nicht zugreifen. for Photos/Desktop.ini

@dragotin
Copy link
Contributor

@efrenbg1 could you add the term desktop.ini to your sync ignore list please? That will be a workaround for you.

I am up to propose a PR to fix this. I think we never should sync the desktop.ini.

@efrenbg1
Copy link
Author

The name desktop.ini is hardcoded as an excluded file: https://github.com/owncloud/client/blob/master/src/csync/csync_exclude.cpp#L203
when it sits in the top folder. In subfolders it syncs just fine for me. Is the exact contents of you desktop.ini file critical to reproduce the crash?

The owncloud instance, while updated not so long ago, is somewhat old (maybe the exclude was hardcoded afterwards?). I will write back as soon as I've tested everything proposed (will take a while to sync everything).

Many thanks for your quick responses!

@efrenbg1
Copy link
Author

efrenbg1 commented Dec 12, 2020

Indeed both suggestions fix the problem. I've tried to:

  1. Remove al desktop.ini and add the filename to 'blacklisted_files'
  2. Add the desktop.ini to the sync ignore list

am up to propose a PR to fix this. I think we never should sync the desktop.ini.

That would be the right thing to do. Even though the client app should not crash, this filename should be avoided both at the client and backend sides.

@jnweiger jnweiger mentioned this issue Jan 12, 2021
42 tasks
TheOneRing added a commit that referenced this issue Jan 21, 2021
…8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See #8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
@gabi18 gabi18 mentioned this issue Mar 11, 2021
43 tasks
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 11, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 11, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 11, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 12, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 12, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 13, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 16, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Aug 23, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
mgallien pushed a commit to nextcloud/desktop that referenced this issue Nov 30, 2021
…(#8299)

* Ignore the desktop.ini file in every directory, not only in top dir.

See owncloud/client#8298  for reasons.

* Fix test for ignoring desktop.ini everywhere.

Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
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

3 participants