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

FileCache: parent is always -1, entries are duplicated #544

Closed
blizzz opened this issue Nov 21, 2012 · 2 comments
Closed

FileCache: parent is always -1, entries are duplicated #544

blizzz opened this issue Nov 21, 2012 · 2 comments
Assignees

Comments

@blizzz
Copy link
Contributor

blizzz commented Nov 21, 2012

I was looking at bugs #543 and #325 with Klaas and found following with most recent stable45 and a fresh and clean user:

After first login and running the filescan, we have of coure an empty file system. Thus, the file cache table for this user looks like:

select id,path,parent,name,size,mimetype,mimepart,writable from oc_fscache  where  user = 'leon';
+-----+-------------+--------+-------+------+----------------------+----------+----------+
| id  | path        | parent | name  | size | mimetype             | mimepart | writable |
+-----+-------------+--------+-------+------+----------------------+----------+----------+
| 193 | /leon/files |     -1 | files |    0 | httpd/unix-directory | httpd    |        1 |
+-----+-------------+--------+-------+------+----------------------+----------+----------+

Then I create a new folder. In the file cache table it will appear, but with -1 as parent instead of 193. Plus, the home folder is doubled:

select id,path,parent,name,size,mimetype,mimepart,writable from oc_fscache  where  user = 'leon';
+-----+-------------------+--------+-------+------+----------------------+----------+----------+
| id  | path              | parent | name  | size | mimetype             | mimepart | writable |
+-----+-------------------+--------+-------+------+----------------------+----------+----------+
| 193 | /leon/files       |     -1 | files |    0 | httpd/unix-directory | httpd    |        1 |
| 194 | /leon/files       |     -1 | files |    0 | httpd/unix-directory | httpd    |        1 |
| 195 | /leon/files/leaks |     -1 | leaks |    0 | httpd/unix-directory | httpd    |        1 |
+-----+-------------------+--------+-------+------+----------------------+----------+----------+

→ On a refresh of "Files", it appears empty.

→This also happens for existing user accounts.

→ I believe it clings together with the bug reports referenced to in the beginning.

@ghost ghost assigned icewind1991 Nov 21, 2012
@schiessle
Copy link
Contributor

I think this was caused by my pull request yesterday. Sorry for the trouble. I now merged the fix #525 which should solve this issue. Please test it again, but it should be solved now.

@blizzz
Copy link
Contributor Author

blizzz commented Nov 21, 2012

Yep, seems to solve it, thanks.

@blizzz blizzz closed this as completed Nov 21, 2012
@lock lock bot locked as resolved and limited conversation to collaborators Aug 16, 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

4 participants