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

Undefined index: extension at /var/www/owncloud/apps/files_versions/lib/storage.php#320 #14408

Closed
enoch85 opened this issue Feb 20, 2015 · 10 comments

Comments

@enoch85
Copy link
Member

enoch85 commented Feb 20, 2015

Just wanted to inform you about an undefined index:

Error   PHP Undefined index: extension at /var/www/owncloud/apps/files_versions/lib/storage.php#320 2015-02-20T08:37:19+00:00

ownCloud 8.0

@PVince81
Copy link
Contributor

I tried creating versions for a file without extension, but couldn't make this warning appear (on stable8).
It must be something else.

@enoch85
Copy link
Member Author

enoch85 commented Feb 24, 2015

@PVince81 Thanks for trying.

@nickvergessen
Copy link
Contributor

@enoch85 any idea how to reproduce this (maybe you can try to find which file was deleted/created/restored/whatever at that time from your access log?

@enoch85
Copy link
Member Author

enoch85 commented Mar 2, 2015

Access.log from the same timespan:

en0ch.se:443 192.168.1.1 - miralluser [20/Feb/2015:08:37:08 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1455 "-" "Mozilla/5.0 (Windows) mirall/1.8.0"
en0ch.se:443 192.168.1.1 - user [20/Feb/2015:08:37:09 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1539 "-" "Mozilla/5.0 (Windows) mirall/1.7.1"
en0ch.se:443 82.44.188.2 - - [20/Feb/2015:08:37:10 +0100] "POST /index.php/heartbeat HTTP/1.1" 200 7271 "https://en0ch.se/index.php/s/jaBcGYB0BkjaVY7?path=%2FownCloud%20pre-installed%20%5BStable%208%5D%20%5BSSL%5D%20%5BUbuntu%20Server%2014.04%5D" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36"
en0ch.se:443 83.253.116.139 - houser [20/Feb/2015:08:37:11 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 7656 "-" "Mozilla/5.0 (Windows) mirall/1.7.1"
en0ch.se:443 192.168.1.1 - user [20/Feb/2015:08:37:17 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 5862 "-" "Mozilla/5.0 (Windows) mirall/1.7.1"
en0ch.se:443 192.168.1.1 - miralluser [20/Feb/2015:08:37:23 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1485 "-" "Mozilla/5.0 (Windows) mirall/1.8.0"
en0ch.se:443 83.253.116.139 - houser [20/Feb/2015:08:37:24 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1752 "-" "Mozilla/5.0 (Windows) mirall/1.7.1"

@enoch85 enoch85 closed this as completed Mar 2, 2015
@enoch85 enoch85 reopened this Mar 2, 2015
@DeepDiver1975
Copy link
Member

Just had the same issue on 8.0.1 while deleting files via webdav using the desktop client

@DeepDiver1975
Copy link
Member

{"reqId":"54fcf1ebeaae2c6b7799ec7fc8a34b7f","remoteAddr":"192.168.178.24","app":"PHP","message":"Undefined index: extension at /home/deepdiver/Development/ownCloud/stable8/apps/files_versions/lib/storage.php#320","level":3,"time":"2015-03-05T15:14:11+00:00"}

@DeepDiver1975 DeepDiver1975 added this to the 8.1-current milestone Mar 5, 2015
@DeepDiver1975
Copy link
Member

And I'm left with two stray version files ... awesome

@PVince81
Copy link
Contributor

PVince81 commented Mar 5, 2015

That could smell like concurrency, but not sure...

@karlitschek karlitschek modified the milestones: 8.2-next, 8.1-current May 4, 2015
@iwurzer
Copy link

iwurzer commented Jun 24, 2015

I have the same messages in our oc.log (OC 8.0.3, Windows Client 1.8.1)

Important: yesterday we had again some "mystic" file deletions. That means that a client, deleted some files/folders without an "user command". Short after this the same user - and only he/she" gets the entry within the log: {"reqId":"9c0cdcd6d6c2be2312cb203f5f6f5433" remoteAddr:"xx.xx.xx.xx" app:"PHP" message:"Undefined index: extension at /var/www/owncloud/apps/files_versions/lib/storage.php#320" level:3 time:"2015-06-23T17:17:55+02:00"}

For us (company) this is a "no go" because there is nearly no trust anymore within owncloud, because you cannot be sure, that your data is safe...

If needed - I have access.log, owncloud.log - but no client.log

@PVince81
Copy link
Contributor

@iwurzer the mystic deletion could have been be #13391 when renaming a huge folder.

@enoch85 also there were issues with the versions app where moving a folder didn't always move the versions with them. This should be fixed in 8.0.6 and 8.1.1

Please reopen if you still see these warnings in 8.1.1.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 9, 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

6 participants