Android: [BUG] Just created folder disappears when synchronizing parent folder

Created on 6 May 2019  路  7Comments  路  Source: owncloud/android

Actual behaviour

Just created folder disappears when synchronizing parent folder and reappears during the next synchronization

Expected behaviour

Just created folder should not disappear

Steps to reproduce

  1. Create new folder
  2. Just created folder is shown successfully
  3. Pull down to sync the parent folder
  4. Just created folder disappears
  5. Pull down again to sync the parent folder
  6. Just created folder reappears

Environment data

Android version: 8.1

Device model: Nexus 5X

Stock or customized system: Stock

ownCloud app version: 2.10

ownCloud server version: 10.0.10 (stable)

PR

App: https://github.com/owncloud/android/pull/2559

Estimation - 3 (M) bug

Most helpful comment

@jesmrec Yes, I have already started working on it.

All 7 comments

@jesmrec Can I work on this?

of course!! we have scheduled this one into 2.11, do you think you can finish it within the next 2-3 weeks?

@jesmrec Yes, I have already started working on it.

@davigonz @jesmrec I have an issue. As you can see from the attached screenshot:-
Screenshot 2019-05-17 at 5 23 16 PM
(The screenshot is the debugger output at this line I have just added an additional line(No. 1017):-
image
to check the contents of FileDataStorageManager)
The RefreshFolderOperation result shows that there are 7 files(counting the parent directory) but just after receiving the result if we fetch the folder content using FileDataStorageManager the no. of files is 5 (it should ideally be 6 as we the FileDataStorageManager does not return the parent directory). I am unable to understand why the FileDataStorageManager does not provide the same response even when the new directory being created is being saved in the local db as can be seen here. Please advise.

@davigonz @jesmrec I have an issue. As you can see from the attached screenshot:-
Screenshot 2019-05-17 at 5 23 16 PM
(The screenshot is the debugger output at this line I have just added an additional line(No. 1017):-
image
to check the contents of FileDataStorageManager)
The RefreshFolderOperation result shows that there are 7 files(counting the parent directory) but just after receiving the result if we fetch the folder content using FileDataStorageManager the no. of files is 5 (it should ideally be 6 as we the FileDataStorageManager does not return the parent directory). I am unable to understand why the FileDataStorageManager does not provide the same response even when the new directory being created is being saved in the local db as can be seen here. Please advise.

@sd1998 Yes, you need to find out why that's happening 馃槈 , try to research a little more and if you do not progress at all, I will help you

@sd1998 did you get any finding? do you need some help with the issue?

@sd1998 In the end I'll take care of this since it should be included for 2.11 version, please continue with other features, thanks

Was this page helpful?
0 / 5 - 0 ratings