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

Attempts to delete record from empty table #453

Closed
rnalrd opened this issue Nov 15, 2012 · 3 comments
Closed

Attempts to delete record from empty table #453

rnalrd opened this issue Nov 15, 2012 · 3 comments

Comments

@rnalrd
Copy link

rnalrd commented Nov 15, 2012

Hi,

after a brand new setup, I tried uploading something and I get this error in web server log:

2012-11-15 13:44:24: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42703]: Undefined column: 7 ERROR: column "/Shared" does not exist
LINE 1: DELETE FROM "oc_properties" WHERE "propertypath" = "/Shared"
^' in /usr/share/webapps/owncloud/lib/db.php:738
Stack trace:
#0 /usr/share/webapps/owncloud/lib/db.php(738): PDOStatement->execute()
#1 /usr/share/webapps/owncloud/lib/connector/sabre/node.php(283): PDOStatementWrapper->execute(Array)
#2 /usr/share/webapps/owncloud/lib/filesystem.php(569): OC_Connector_Sabre_Node::removeETagPropertyForPath('/Shared')
#3 [internal function]: OC_Filesystem::removeETagHook(Array)
#4 /usr/share/webapps/owncloud/lib/hook.php(62): call_user_func(Array, Array)
#5 /usr/share/webapps/owncloud/lib/filecache/update.php(104): OC_Hook::emit('OC_Filesystem', 'post_write', Array)
#6 /usr/share/webapps/owncloud/lib/filecache/update.php(89): OC_FileCache_Update::updateFolder('/Shared', false)
#7 /usr/share/webapps/owncloud/lib/filecache.php(25 in /usr/share/webapps/owncloud/lib/db.php on line 738

The table "oc_properties" is empty, and therefore throws an error. Is it supposed to have some data? Did I do a bad setup? I got no error during initial setup. Backend is PGSQL 9.1 with 4.5.2.

Thanks

@DeepDiver1975
Copy link
Member

@eMerzh Your pull request #430 fixes this - right?

@voidzero
Copy link

Nice, it (#430) did fix this issue for me. :-)

@DeepDiver1975
Copy link
Member

Will be fixed in the next ownCloud bug release - THX for reporting

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

3 participants