Repository navigation
Closed
Milestone
Description
@Xenopathic please fix the regression
{"reqId":"B1Lu92E5+PPzZTM9IF86","remoteAddr":"127.0.0.1","app":"index","message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\InvalidFieldNameException\",\"Message\":\"An exception occurred while executing 'INSERT INTO `oc_storages` (`id`,`available`) SELECT ?,? FROM `oc_storages` WHERE `id` = ? AND `available` = ? HAVING COUNT(*) = 0' with params [\\\"home::user1\\\", true, \\\"home::user1\\\", true]:\\n\\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'available' in 'where clause'\",\"Code\":0,\"Trace\":\"#0 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(116): Doctrine\\\\DBAL\\\\Driver\\\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(996): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'INSERT INTO `oc...', Array)\\n#2 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): Doctrine\\\\DBAL\\\\Connection->executeUpdate('INSERT INTO `oc...', Array, Array)\\n#3 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/db\\\/adapter.php(93): OC\\\\DB\\\\Connection->executeUpdate('INSERT INTO `*P...', Array)\\n#4 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(242): OC\\\\DB\\\\Adapter->insertIfNotExist('*PREFIX*storage...', Array, NULL)\\n#5 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/storage.php(61): OC\\\\DB\\\\Connection->insertIfNotExist('*PREFIX*storage...', Array)\\n#6 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/cache.php(85): OC\\\\Files\\\\Cache\\\\Storage->__construct(Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#7 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/home.php(74): OC\\\\Files\\\\Cache\\\\Cache->__construct(Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#8 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(390): OC\\\\Files\\\\Storage\\\\Home->getCache('files', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#9 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(390): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('files', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#10 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1166): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('files')\\n#11 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/filesystem.php(861): OC\\\\Files\\\\View->getFileInfo('\\\/', false)\\n#12 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/apps\\\/files\\\/index.php(83): OC\\\\Files\\\\Filesystem::getFileInfo('\\\/', false)\\n#13 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/srv\\\/www\\\/htdocs...')\\n#14 [internal function]: __lambda_func(Array)\\n#15 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func('\\\\x00lambda_289', Array)\\n#16 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/base.php(879): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#17 \\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#18 {main}\",\"File\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractMySQLDriver.php\",\"Line\":71}","level":4,"time":"2015-08-07T15:51:10+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/"}
Looks like all code paths related to oc_storages needs to be tested.
Activity
PVince81 commentedon Aug 7, 2015
Caused by #13641
PVince81 commentedon Aug 7, 2015
Bug on my end.
RobinMcCorkell commentedon Aug 7, 2015
Keyboard
Problem <-------
Chair
😆
PVince81 commentedon Aug 7, 2015
There was no chair involved, only a sofa 😉
oparoz commentedon Aug 10, 2015
I have an acceptance test which says it's still a problem.
Might not have been caused by #13641 only if it can't be reproduce by everybody.
It was still working 3 hours ago, so there are not that many candidates.
oparoz commentedon Aug 10, 2015
This is the one breaking it for me @PVince81
15e16d3
PVince81 commentedon Aug 11, 2015
@oparoz are you sure about the bisect ? There should be no connection with the sidebar and user creation.
The problem I had is that I switched branches and the DB update didn't run as there was no difference of version in version.php.
oparoz commentedon Aug 11, 2015
I think it's wrong because I don't see the relationship, but if I checkout this commit and the one before, then the one before works and this one doesn't. I stayed on master.
On a fresh install, as in in a Travis container, things are broken on master, so I don't think it's a DB update issue. Since scripts are used, I can't select a specific commit to see which one broke.
PVince81 commentedon Aug 11, 2015
Okay, that should be enough of a proof.
What are the reproduction steps ? Just setup OC from scratch and try and create a user ?
6 remaining items
[-]Cannot create user on master[/-][+]Cannot create user on master (1054 Unknown column 'available' in 'where clause)[/+]oparoz commentedon Aug 11, 2015
If somebody is brave enough, you can use @DeepDiver1975 's PR to check the API is working: #18105
Or if you're familiar with codecption, you just need to generate an api suite and add this file: https://github.com/owncloud/gallery/blob/b84508a0b687b91b623c6f81ea99e5fe40daa846/tests/api/CreateUserCept.php
DeepDiver1975 commentedon Aug 11, 2015
Yes - master is 💥
DeepDiver1975 commentedon Aug 11, 2015
did we add a column to oc_storages and not increment the version? (bloody stone age schema-fu 💀 )
PVince81 commentedon Aug 11, 2015
@Xenopathic added a column but he did increase version.php, didn't you?
RobinMcCorkell commentedon Aug 11, 2015
@PVince81 @DeepDiver1975 Yes,
version.phpwas correctly modified. I remember always having to fix the merge conflicts every time there was a master change...oparoz commentedon Aug 11, 2015
When I go to this commit it still works for me:
# git checkout 5590d64612c9dfe59b50108a26621b4feb570d27Am I doing it wrong?
If not, maybe some of the right-sidebar scripts have unexpected side effects?
DeepDiver1975 commentedon Aug 11, 2015
According to the version history the version was not incremented properly
8.2.0.3 as of https://github.com/owncloud/core/pull/13641/files#diff-5bbd3ccd25214f9956eea7e9f714bc08R25
but this is not show in the history of version.php
https://github.com/owncloud/core/commits/master/version.php
DeepDiver1975 commentedon Aug 11, 2015
so something went wrong with one of the rebases ... solution: increment the version now
oparoz commentedon Aug 11, 2015
Yep, changing the version number fixes it for me.
Bump version patch number, fixes #18129
nickvergessen commentedon Aug 11, 2015
The change was already done by:
20cf8ec#diff-5bbd3ccd25214f9956eea7e9f714bc08
So a rebase afterwards should have made it .4, I guess it didn't conflict because it was the same change?
Merge pull request #18207 from owncloud/bump-version