bookmarks in the web interface are wrong / endless spinner

Created on 2 May 2020  Â·  2Comments  Â·  Source: nextcloud/bookmarks

Describe the bug
I checked the bookmarks app at ..../apps/bookmarks/ and there's an endless spinner showing:
image
There are 2 directories listed though - the ones I specified in floccus as Server folder.
However, I had 3 other bookmarks in the root, but they don't show. Only the spinner.
I can go into one of the folders and I see other folders (which is correct), but also bookmarks (which should not be - these bookmarks are actually from a subfolder and don't belong here) and the spinner again.
The bookmarks, which are in the root of the Server folder are also in a sub-sub-folder. So for some reason they are duplicated.

To Reproduce
Steps to reproduce the behavior:

  1. sync a bookmark folder with floccus 4.1 to a server folder /Bookmarks
  2. Go to https://server.com/apps/bookmarks/
  3. check the bookmarks

Expected behavior
It should work as it has until now.

Screenshots

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome, Firefox, Safari, Waterfox
  • Version: all latest versions. I took the logs below with Waterfox 2020.4

Server (please complete the following information):

  • OS: Linux
  • HTTP server: Apache/2.4.43
  • Database MySQL 5.6.25
  • PHP version: 7.3.17
  • Nextcloud version: 17.0.6
  • Bookmarks app version: 3.0.5
  • Activated Nextcloud Apps:
  - accessibility: 1.3.0
  - activity: 2.10.1
  - admin_audit: 1.7.0
  - announcementcenter: 3.6.1
  - apporder: 0.9.0
  - bookmarks: 3.0.4
  - bruteforcesettings: 1.6.0
  - calendar: 2.0.3
  - cloud_federation_api: 1.0.0
  - comments: 1.7.0
  - contacts: 3.3.0
  - dav: 1.13.0
  - federatedfilesharing: 1.7.0
  - federation: 1.7.0
  - files: 1.12.0
  - files_external: 1.8.0
  - files_pdfviewer: 1.6.0
  - files_rightclick: 0.15.1
  - files_sharing: 1.9.0
  - files_trashbin: 1.7.0
  - files_versions: 1.10.0
  - files_videoplayer: 1.6.0
  - firstrunwizard: 2.6.0
  - gallery: 18.4.0
  - issuetemplate: 0.6.0
  - logreader: 2.2.0
  - lookup_server_connector: 1.5.0
  - nextcloud_announcements: 1.6.0
  - notes: 3.2.0
  - notifications: 2.5.0
  - oauth2: 1.5.0
  - password_policy: 1.7.0
  - phonetrack: 0.6.2
  - polls: 1.3.0
  - privacy: 1.1.0
  - provisioning_api: 1.7.0
  - serverinfo: 1.7.0
  - sharebymail: 1.7.0
  - systemtags: 1.7.0
  - tasks: 0.12.2
  - text: 1.1.1
  - theming: 1.8.0
  - twofactor_backupcodes: 1.6.0
  - twofactor_totp: 4.1.3
  - twofactor_u2f: 5.1.0
  - updatenotification: 1.7.0
  - viewer: 1.2.0
  - workflowengine: 1.7.0
  • Nextcloud configuration:
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "17.0.6.2",
        "installed": true,
        "forcessl": true,
        "loglevel": 2,
        "maintenance": false,
        "trusted_domains": [
            "example.com"
        ],
        "share_folder": "\/Shared",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logdateformat": "Y-m-d H:i:s O",
        "logtimezone": "Europe\/Vienna",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "sendmail",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "appstore.experimental.enabled": true,
        "trashbin_retention_obligation": "auto",
        "updater.release.channel": "stable",
        "htaccess.RewriteBase": "\/",
        "overwrite.cli.url": "https:\/\/example.com",
        "auth.bruteforce.protection.enabled": false,
        "simpleSignUpLink.shown": false,
        "upgrade.disable-web": true,
        "theme": "evermeet",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpauth": 1,
        "mail_sendmailmode": "smtp",
        "filesystem_check_changes": 0
    }
}
  • Nextcloud external user backend: none

Additional context

I suspect that one of the upgrades of the bookmarks app went wrong at one point. The fact that I can see random bookmarks in several wrong locations points to a database issue.
I don't have a problem to clean the tables and start from scratch. I only had 3 test bookmarks that were not transferred via floccus.

Web server error log

no errors in the log

Nextcloud log (nextcloud/data/nextcloud.log)
errors like these, but I don't think they have anything to do with the issue

[index] Error: TypeError: Argument 3 passed to OC\AppFramework\Middleware\MiddlewareDispatcher::beforeOutput() must be of the type string, null given, called in /data/projects/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 123 at <<closure>>

0. /data/projects/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 123
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeOutput(OCA\Bookmarks\Co ... {}, "getBookmarkFavicon", null)
1. /data/projects/nextcloud/lib/private/AppFramework/App.php line 126
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Bookmarks\Co ... {}, "getBookmarkFavicon")
2. /data/projects/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
   OC\AppFramework\App::main("OCA\\Bookmarks\ ... r", "getBookmarkFavicon", OC\AppFramework\ ... {}, {id: "150",_rout ... "})
3. <<closure>>
   OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "150",_rout ... "})
4. /data/projects/nextcloud/lib/private/Route/Router.php line 297
   undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {id: "150",_rout ... "})
5. /data/projects/nextcloud/lib/base.php line 997
   OC\Route\Router->match("/apps/bookmarks/bookmark/150/favicon")
6. /data/projects/nextcloud/index.php line 42
   OC::handleRequest()

GET /apps/bookmarks/bookmark/150/favicon
from xx.xx.xx.xx by xxxxxx at 2020-05-02T04:26:41+02:00

Browser log


XHRGEThttps://example.com/apps/bookmarks/settings/viewMode
[HTTP/2.0 200 OK 660ms]

XHRGEThttps://example.com/apps/bookmarks/settings/limit
[HTTP/2.0 200 OK 1777ms]

XHRGEThttps://example.com/apps/bookmarks/tag?count=true
[HTTP/2.0 200 OK 807ms]

XHRGEThttps://example.com/apps/bookmarks/folder
[HTTP/2.0 200 OK 1328ms]

XHRGEThttps://example.com/apps/bookmarks/folder/-1/count
[HTTP/2.0 200 OK 1505ms]

TypeError: "a.a.get(...).then(...).catch(...).finally is not a function"
    x actions.js:333
    f vuex.esm.js:778
    dispatch vuex.esm.js:457
    dispatch vuex.esm.js:347
    e ViewPrivate.vue:107
    c runtime.js:45
    _invoke runtime.js:274
    e runtime.js:97
    Jn bookmarks.main.js:334
    i bookmarks.main.js:334
    Xn bookmarks.main.js:334
    R es.promise.js:233
    Xn bookmarks.main.js:334
    reloadTags ViewPrivate.vue:106
    e ViewPrivate.vue:69
    c runtime.js:45
    _invoke runtime.js:274
    e runtime.js:97
    Jn bookmarks.main.js:334
    i bookmarks.main.js:334
    Xn bookmarks.main.js:334
    R es.promise.js:233
    Xn bookmarks.main.js:334
    created ViewPrivate.vue:62
    VueJS 28
    <anonymous> main.js:32
    <anonymous> bookmarks.main.js:928
    Webpack 3
vue.runtime.esm.js:1888:12
    VueJS 4
    X es.promise.js:114
    r microtask.js:26
GEThttps://example.com/avatar/tessus/64?v=2
[HTTP/2.0 200 OK 1348ms]

GEThttps://example.com/svg/core/logo/logo?color=fff&v=1
[HTTP/2.0 200 OK 987ms]

GEThttps://example.com/core/img/breadcrumb.svg?v=1
[HTTP/2.0 200 OK 123ms]

Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:48:9
Unknown property ‘user-select’.  Declaration dropped. bookmarks:178:14
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:667:10
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:1044:9
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:1051:9
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:1055:9
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:1307:10
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:175:9
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:182:9
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:186:9
Expected ‘none’, URL, or filter function but found ‘Alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:438:10
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:132:11
Unknown property ‘-moz-border-radius’.  Declaration dropped. bookmarks:136:22
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:146:11
Unknown property ‘-moz-border-radius’.  Declaration dropped. bookmarks:150:22
Unknown property ‘zoom’.  Declaration dropped. bookmarks:9:10
Expected declaration but found ‘*’.  Skipped to next declaration. bookmarks:10:5
Unknown property ‘user-select’.  Declaration dropped. bookmarks:49:27
Expected ‘none’, URL, or filter function but found ‘progid’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:55:13
Expected ‘none’, URL, or filter function but found ‘progid’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:67:13
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:128:13
Expected ‘none’, URL, or filter function but found ‘progid’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:195:13
Expected ‘none’, URL, or filter function but found ‘progid’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:277:13
Expected ‘none’, URL, or filter function but found ‘progid’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:289:13
Unknown property ‘user-select’.  Declaration dropped. bookmarks:350:27
Unknown property ‘user-select’.  Declaration dropped. bookmarks:529:27
Expected ‘none’, URL, or filter function but found ‘progid’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:532:13
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped. bookmarks:15:10
Unknown property ‘line-break’.  Declaration dropped. bookmarks:1:501
Unknown property ‘user-select’.  Declaration dropped. bookmarks:1:362
Unknown property ‘line-break’.  Declaration dropped. 3 bookmarks:1:501
Unknown property ‘user-select’.  Declaration dropped. bookmarks:1:4129
Unknown property ‘line-break’.  Declaration dropped. 4 bookmarks:1:501
XHRGEThttps://example.com/apps/apporder/getOrder
[HTTP/2.0 200 OK 1301ms]

XHRGEThttps://example.com/apps/bookmarks/folder/11/shares
[HTTP/2.0 200 OK 654ms]

XHRGEThttps://example.com/apps/bookmarks/folder/11/publictoken
[HTTP/2.0 404 Not Found 508ms]

XHRGEThttps://example.com/apps/bookmarks/folder/75/shares
[HTTP/2.0 200 OK 353ms]

XHRGEThttps://example.com/apps/bookmarks/folder/75/publictoken
[HTTP/2.0 404 Not Found 798ms]

GEThttps://example.com/svg/core/filetypes/folder?color=0082c9
[HTTP/2.0 200 OK 990ms]

GEThttps://example.com/apps/theming/icon/bookmarks?v=7
[HTTP/2.0 200 OK 489ms]

GEThttps://example.com/apps/theming/favicon/bookmarks?v=7
[HTTP/2.0 200 OK 365ms]
bug

Most helpful comment

Yes, it magically started working with 3.0.9.

Thanks.

All 2 comments

Thanks for the fix, but what do I have to do? Nuke the tables? Which ones? Will it magically start working in the next release? Cleanup script? What's with the mess that is currently shown in my UI?

Yes, it magically started working with 3.0.9.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaffeeringe picture kaffeeringe  Â·  6Comments

bernd-wechner picture bernd-wechner  Â·  4Comments

marcelklehr picture marcelklehr  Â·  6Comments

sunjam picture sunjam  Â·  5Comments

sunjam picture sunjam  Â·  4Comments