Closed enoch85 closed 6 years ago
In the lastes version (when it's called NextNotes)
Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'UPDATE `oc_ownnote` SET `name` = ?,`grouping` = ?,`mtime` = ?,`deleted` = ?,`uid` = ?,`note` = ? WHERE `id` = ?' with params ["Test1", "", 1499531501, null, "ncadmin", "", 1]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'deleted' cannot be null
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 128: Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php - line 177: Doctrine\DBAL\DBALException driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'UPDATE `oc_ownn...', Array)
/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php - line 247: Doctrine\DBAL\Statement->execute()
/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php - line 187: OCP\AppFramework\Db\Mapper->execute('UPDATE `*PREFIX...', Array)
/var/www/nextcloud/apps/nextnote/lib/Db/NextNoteMapper.php - line 156: OCP\AppFramework\Db\Mapper->update(Object(OCA\NextNote\Db\NextNote))
/var/www/nextcloud/apps/nextnote/lib/Service/NextNoteService.php - line 121: OCA\NextNote\Db\NextNoteMapper->updateNote(Object(OCA\NextNote\Db\NextNote))
/var/www/nextcloud/apps/nextnote/controller/nextnoteapicontroller.php - line 118: OCA\NextNote\Service\NextNoteService->update(Object(OCA\NextNote\Db\NextNote))
[internal function] OCA\NextNote\Controller\NextNoteApiController->update(1, 'Test1', '', '', NULL)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\NextNote\Controller\NextNoteApiController), 'update')
/var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\NextNote\Controller\NextNoteApiController), 'update')
/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OCA\\NextNote\\Co...', 'update', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/nextcloud/lib/base.php - line 1000: OC\Route\Router->match('/apps/nextnote/...')
/var/www/nextcloud/index.php - line 40: OC handleRequest()
{main}
vsprintf(): Too few arguments at /var/www/nextcloud/lib/private/legacy/l10n/string.php#72 | 2017-07-08T18:28:17+0200
Error | index | RuntimeException: image not found: image:app.svg webroot: serverroot:/var/www/nextcloud/var/www/nextcloud/apps/ownnote/lib/AppInfo/Application.php - line 110: OC\URLGenerator->imagePath('nextnote', 'app.svg')/var/www/nextcloud/lib/private/NavigationManager.php - line 108: OCA\NextNote\AppInfo\Application->OCA\NextNote\AppInfo\{closure}()/var/www/nextcloud/lib/private/legacy/app.php - line 645: OC\NavigationManager->getAll()/var/www/nextcloud/lib/private/TemplateLayout.php - line 80: OC_App getNavigation()/var/www/nextcloud/lib/private/legacy/template.php - line 205: OC\TemplateLayout->__construct('user', 'files')/var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php - line 157: OC_Template->fetchPage()/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 113: OCP\AppFramework\Http\TemplateResponse->render()/var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), 'index')/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('ViewController', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)/var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)/var/www/nextcloud/lib/base.php - line 1000: OC\Route\Router->match('/apps/files/')/var/www/nextcloud/index.php - line 40: OC handleRequest(){main}
1
--
RuntimeException: image not found: image:app.svg webroot: serverroot:/var/www/nextcloud/var/www/nextcloud/apps/ownnote/lib/AppInfo/Application.php - line 110: OC\URLGenerator->imagePath('nextnote', 'app.svg')/var/www/nextcloud/lib/private/NavigationManager.php - line 108: OCA\NextNote\AppInfo\Application->OCA\NextNote\AppInfo\{closure}()/var/www/nextcloud/lib/private/legacy/app.php - line 645: OC\NavigationManager->getAll()/var/www/nextcloud/lib/private/TemplateLayout.php - line 80: OC_App getNavigation()/var/www/nextcloud/lib/private/legacy/template.php - line 205: OC\TemplateLayout->__construct('user', 'files')/var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php - line 157: OC_Template->fetchPage()/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 113: OCP\AppFramework\Http\TemplateResponse->render()/var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), 'index')/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('ViewController', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)/var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)/var/www/nextcloud/lib/base.php - line 1000: OC\Route\Router->match('/apps/files/')/var/www/nextcloud/index.php - line 40: OC handleRequest(){main}
cc @brantje
^_ At what action does this happen?
At what action does this happen?
Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'UPDATE `oc_ownnote` SET `name` = ?,`grouping` = ?,`mtime` = ?,`deleted` = ?,`uid` = ?,`note` = ? WHERE `id` = ?' with params ["wvqev", "", 1499533741, null, "ncadmin", "", 5]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'deleted' cannot be null
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 128: Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php - line 177: Doctrine\DBAL\DBALException driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'UPDATE `oc_ownn...', Array)
/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php - line 247: Doctrine\DBAL\Statement->execute()
/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php - line 187: OCP\AppFramework\Db\Mapper->execute('UPDATE `*PREFIX...', Array)
/var/www/nextcloud/apps/nextnote/lib/Db/NextNoteMapper.php - line 156: OCP\AppFramework\Db\Mapper->update(Object(OCA\NextNote\Db\NextNote))
/var/www/nextcloud/apps/nextnote/lib/Service/NextNoteService.php - line 121: OCA\NextNote\Db\NextNoteMapper->updateNote(Object(OCA\NextNote\Db\NextNote))
/var/www/nextcloud/apps/nextnote/controller/nextnoteapicontroller.php - line 118: OCA\NextNote\Service\NextNoteService->update(Object(OCA\NextNote\Db\NextNote))
[internal function] OCA\NextNote\Controller\NextNoteApiController->update(5, 'wvqev', '', '', NULL)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\NextNote\Controller\NextNoteApiController), 'update')
/var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\NextNote\Controller\NextNoteApiController), 'update')
/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OCA\\NextNote\\Co...', 'update', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/nextcloud/lib/base.php - line 1000: OC\Route\Router->match('/apps/nextnote/...')
/var/www/nextcloud/index.php - line 40: OC handleRequest()
{main}
A minor design fix when renaming: http://i.imgur.com/cIEgEhX.png
Changing name results in a blank name and when reloading they are back with their old name.
Renaming groups doesn't work atm, see #17
Fixed 2. Groups not saved in new note.
@brantje 2 isn't completley fixed:
Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'UPDATE `oc_ownnote` SET `name` = ?,`grouping` = ?,`mtime` = ?,`deleted` = ?,`uid` = ?,`note` = ? WHERE `id` = ?' with params ["testasr_ny_grupp", "testar_skapa_ny", 1499537337, null, "ncadmin", "", 11]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'deleted' cannot be null
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 128: Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php - line 177: Doctrine\DBAL\DBALException driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'UPDATE `oc_ownn...', Array)
/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php - line 247: Doctrine\DBAL\Statement->execute()
/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php - line 187: OCP\AppFramework\Db\Mapper->execute('UPDATE `*PREFIX...', Array)
/var/www/nextcloud/apps/nextnote/lib/Db/NextNoteMapper.php - line 156: OCP\AppFramework\Db\Mapper->update(Object(OCA\NextNote\Db\NextNote))
/var/www/nextcloud/apps/nextnote/lib/Service/NextNoteService.php - line 121: OCA\NextNote\Db\NextNoteMapper->updateNote(Object(OCA\NextNote\Db\NextNote))
/var/www/nextcloud/apps/nextnote/controller/nextnoteapicontroller.php - line 118: OCA\NextNote\Service\NextNoteService->update(Object(OCA\NextNote\Db\NextNote))
[internal function] OCA\NextNote\Controller\NextNoteApiController->update(11, 'testasr_ny_grup...', 'testar_skapa_ny', '', NULL)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\NextNote\Controller\NextNoteApiController), 'update')
/var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\NextNote\Controller\NextNoteApiController), 'update')
/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OCA\\NextNote\\Co...', 'update', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/nextcloud/lib/base.php - line 1000: OC\Route\Router->match('/apps/nextnote/...')
/var/www/nextcloud/index.php - line 40: OC handleRequest()
{main}
Also, the note itself (content isn't saved)
@enoch85 When does this happen? Edit or new note?
New note.
This is fixed in current master it seems
Here's a video.
Log
Complete log
2. When editing a groped note, the name of the note in another group is also changedSeems fixed3. The "All" view doesn't show all notes.Seems fixed.4. New groups aren't saved under certain circumstances. I.e when creating a new note, add a new group, and hit save = the note ends up in "All" and group isn't savedSeems fixed